:root {
  --blue1: #5b8bd8;
  --blue2: #3a66b3;
  --bg: #b0c4de;
  --window-bg: #eaf2fb;
  --text: #1d2a35;
  --muted: #7b8a98;
}

* { box-sizing: border-box; }
body {
  margin: 0;

background-image: url("backgroundxp.jpg");
	  background-size: cover; 
	  background-position: center;    /* Keep it centered */
  font-family: Tahoma, Verdana, Geneva, sans-serif;
  color: var(--text);
}
.actions a[href="admin/login.php"] {
  display: none;
}

#app { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }

#msn-window {
  width: 540px;
  max-width: 95vw;
  margin: 20px auto;
  background: var(--window-bg);
  border: 2px solid var(--blue1);
  border-radius: 10px;
  box-shadow: 2px 6px 24px rgba(0,0,0,0.25);
  overflow: hidden;
}

.header {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(var(--blue1), var(--blue2));
  color: #fff; padding: 8px 12px; font-weight: bold;
}
.header .controls .btn { margin-left: 8px; cursor: default; }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: #f2f7ff; border-bottom: 1px solid #d2e1f7;
}
.status .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.status .online { background: #30c24a; box-shadow: 0 0 6px rgba(48,194,74,.6); }

.small { font-size: 12px; padding: 4px 8px; border: 1px solid #c7d4ea; background: #fff; border-radius: 6px; cursor: pointer; }
.small.link { border: none; background: transparent; color: var(--blue2); text-decoration: underline; }

#chat-box {
  height: 380px;
  overflow-y: auto;
  padding: 12px;
  background: #fff url('../img/msn_bg.png') repeat;
}

.message {
  margin: 4px 0; line-height: 1.4;
}
.message .meta { color: var(--muted); font-size: 11px; margin-right: 6px; }
.message .name { font-weight: bold; color: #0b5bd3; }
.message .text { white-space: pre-wrap; word-break: break-word; }

.system { color: #555; font-style: italic; }

#input-area {
  display: grid; grid-template-columns: 1fr auto; gap: 10px;
  padding: 10px; background: #f1f6ff; border-top: 1px solid #d2e1f7;
}
#message {
  width: 100%; min-height: 52px; max-height: 140px; resize: vertical;
  padding: 8px; border: 1px solid #cbd5e1; border-radius: 6px; outline: none;
  font-family: inherit;
  font-size: 16px; /* minimaal! */
}
}
.input-right { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 8px; }
#send {
  background: var(--blue1); color: #fff; border: none;
  padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: bold;
  box-shadow: 0 2px 0 #2f5aa3;
}
#send:active { transform: translateY(1px); box-shadow: 0 1px 0 #2f5aa3; }

.typing { font-size: 12px; color: var(--muted); min-height: 16px; }

.footer {
  text-align: center; color: #223; opacity: .75; font-size: 12px; margin-bottom: 12px;
}
.footer .sep { margin: 0 6px; color: #99a; }
