/* ============================================================
   FreeCHAT v2.1 - Classic Internet Stylesheet
   Best viewed in 800x600 with Internet Explorer 5.5
   ============================================================ */

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

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  background-color: #C0C0C0;
  color: #000000;
  min-height: 100vh;
}

a { color: #000099; }
a:hover { color: #CC0000; }

/* ── Login Screen ──────────────────────────────────────────── */

#loginScreen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #C0C0C0 url("data:image/gif;base64,") repeat;
}

#loginBox {
  width: 380px;
  border: 3px outset #FFFFFF;
  background: #C0C0C0;
  box-shadow: 2px 2px 0 #555;
}

.win-titlebar {
  background: #000080;
  color: #FFFFFF;
  font-weight: bold;
  font-size: 12px;
  padding: 3px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.win-titlebar-icons {
  cursor: pointer;
  border: 1px outset #CCC;
  padding: 0 4px;
  font-size: 10px;
  background: #C0C0C0;
  color: #000;
}

.win-body {
  padding: 8px;
}

.login-avatar-box {
  width: 64px;
  height: 64px;
  border: 2px inset #888;
  background: #808080;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  color: #FFF;
}

.welcome-text {
  text-align: center;
  font-size: 13px;
  padding: 4px 0;
  border: 1px inset #888;
  background: #000080;
  color: #FFFFFF;
  padding: 8px;
  margin-bottom: 6px;
}

#nicknameInput {
  width: 180px;
  border: 2px inset #888;
  background: #FFFFFF;
  padding: 3px 4px;
  font-size: 13px;
  font-family: Arial, Helvetica, sans-serif;
}

#nicknameInput:focus {
  outline: none;
  background: #FFFFCC;
}

.btn-connect {
  background: #C0C0C0;
  border: 2px outset #FFFFFF;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
}

.btn-connect:hover { background: #D0D0D0; }
.btn-connect:active { border-style: inset; }

.error-msg {
  color: #CC0000;
  font-size: 11px;
  margin-top: 4px;
  min-height: 14px;
}

.marquee-wrap {
  background: #000080;
  color: #FFFF00;
  font-size: 11px;
  padding: 2px 0;
}

/* ── Top Bar ───────────────────────────────────────────────── */

.topbar {
  background: #000080;
  color: #FFFFFF;
  border-bottom: 2px solid #003;
}

.topbar-logo {
  padding: 4px 10px;
  font-weight: bold;
  font-size: 14px;
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 2px;
  white-space: nowrap;
  color: #FFFFFF;
}

.topbar-status {
  padding: 4px 8px;
  text-align: right;
  font-size: 11px;
  color: #CCCCFF;
}

.status-dot {
  color: #00FF00;
  font-size: 10px;
}

.header-badge {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid #FFF;
  vertical-align: middle;
  margin-right: 2px;
}

.toplink {
  color: #AAAAFF;
  text-decoration: none;
}
.toplink:hover { color: #FFFFFF; text-decoration: underline; }

/* ── Main Layout ───────────────────────────────────────────── */

.main-layout {
  width: 100%;
  height: calc(100vh - 54px);
  background: #C0C0C0;
}

/* ── Panels ────────────────────────────────────────────────── */

.panel {
  border: 2px groove #808080;
  margin-bottom: 4px;
  background: #C0C0C0;
}

.panel-title {
  background: #000080;
  color: #FFFFFF;
  font-weight: bold;
  font-size: 11px;
  padding: 2px 5px;
  cursor: default;
}

.panel-body {
  padding: 3px;
  font-size: 11px;
  background: #C0C0C0;
  min-height: 30px;
}

.panel-footer {
  border-top: 1px solid #808080;
  padding: 3px;
}

.scroll-sm {
  max-height: 120px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ── Sidebar ───────────────────────────────────────────────── */

.sidebar {
  width: 160px;
  padding: 3px 2px 3px 3px;
  vertical-align: top;
}

.sidebar-right {
  width: 150px;
  padding: 3px 3px 3px 2px;
  vertical-align: top;
}

/* ── User list items ───────────────────────────────────────── */

.user-item {
  padding: 2px 3px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px dotted #999;
}

.user-item:hover { background: #000080; color: #FFFFFF; }
.user-item:hover .user-name { color: #FFFFFF; }

.self-user {
  cursor: default;
  background: #E0E0E0;
}
.self-user:hover { background: #E0E0E0; color: #000; }

.user-badge {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid #333;
  vertical-align: middle;
  margin-right: 3px;
}

.user-name {
  vertical-align: middle;
  font-size: 11px;
}

/* ── Room list items ───────────────────────────────────────── */

.room-item {
  padding: 2px 3px;
  cursor: pointer;
  border-bottom: 1px dotted #999;
  display: flex;
  justify-content: space-between;
}

.room-item:hover { background: #000080; color: #FFF; }

.joined-room { background: #E0E0FF; }
.joined-room:hover { background: #000080; color: #FFF; }

.room-name { font-size: 11px; }
.room-meta { font-size: 10px; color: #666; }
.room-item:hover .room-meta { color: #CCC; }

.empty-list {
  color: #666;
  font-style: italic;
  padding: 3px;
  font-size: 11px;
}

/* ── Tab bar ───────────────────────────────────────────────── */

.tab-bar {
  background: #C0C0C0;
  border-bottom: 2px solid #808080;
  padding: 2px 4px 0 4px;
  min-height: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 2px;
}

.tab-bar-label {
  font-size: 10px;
  color: #444;
  padding-bottom: 2px;
  margin-right: 2px;
}

.tab {
  display: inline-block;
  padding: 2px 8px;
  background: #C0C0C0;
  border: 2px outset #FFFFFF;
  border-bottom: none;
  font-size: 11px;
  cursor: pointer;
  margin-bottom: -2px;
  position: relative;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab:hover { background: #D0D0D0; }

.active-tab {
  background: #FFFFFF;
  border-color: #808080 #FFFFFF #FFFFFF #808080;
  font-weight: bold;
  z-index: 1;
}

.unread-tab {
  color: #CC0000;
  font-weight: bold;
}

.tab-close {
  color: #666;
  font-size: 10px;
  text-decoration: none;
  margin-left: 4px;
}
.tab-close:hover { color: #CC0000; }

/* ── Chat area ─────────────────────────────────────────────── */

.chat-area {
  vertical-align: top;
  padding: 2px;
}

.chat-header-bar {
  background: #E0E0E0;
  border: 2px inset #888;
  padding: 3px 8px;
  font-weight: bold;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-right { font-size: 11px; font-weight: normal; color: #444; }

.chat-messages {
  border: 2px inset #888;
  background: #FFFFFF;
  padding: 4px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  overflow-y: scroll;
  height: calc(100vh - 185px);
  word-wrap: break-word;
}

.chat-msg {
  margin: 1px 0;
  line-height: 1.5;
}

.self-msg .msg-sender { text-decoration: underline; }

.sys-msg {
  color: #555555;
  font-style: italic;
  font-size: 11px;
  margin: 2px 0;
  text-align: center;
}

.msg-time {
  color: #888888;
  font-size: 10px;
}

.msg-sender {
  font-weight: bold;
}

.msg-text {
  color: #000000;
}

.input-row {
  display: flex;
  gap: 4px;
  padding: 3px 2px;
  background: #C0C0C0;
  border-top: 1px solid #888;
}

.msg-input {
  flex: 1;
  border: 2px inset #888;
  background: #FFFFFF;
  padding: 3px 5px;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
}

.msg-input:focus { outline: none; background: #FFFFEE; }
.msg-input:disabled { background: #D0D0D0; }

.btn-send {
  background: #C0C0C0;
  border: 2px outset #FFFFFF;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  white-space: nowrap;
}
.btn-send:hover { background: #D0D0D0; }
.btn-send:active { border-style: inset; }
.btn-send:disabled { color: #888; cursor: default; }

.input-hint {
  font-size: 10px;
  color: #555;
  padding: 1px 4px;
}

/* ── Voice panel ───────────────────────────────────────────── */

.voice-user {
  font-size: 11px;
  display: block;
  padding: 1px 2px;
}

.btn-voice {
  background: #C0C0C0;
  border: 2px outset #FFF;
  font-size: 11px;
  cursor: pointer;
  padding: 3px 6px;
  width: 100%;
  margin-top: 4px;
  font-family: Arial, Helvetica, sans-serif;
}
.btn-voice:hover { background: #D0D0D0; }
.btn-voice:active { border-style: inset; }

.btn-voice-active {
  background: #FFAAAA;
  border-color: #CC0000;
  color: #880000;
}
.btn-voice-active:hover { background: #FFbbbb; }

/* ── Member list ───────────────────────────────────────────── */

.member-item {
  padding: 1px 2px;
  font-size: 11px;
  border-bottom: 1px dotted #999;
  display: flex;
  align-items: center;
  gap: 3px;
}

.member-badge {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 1px solid #333;
  flex-shrink: 0;
}

/* ── Tip box ───────────────────────────────────────────────── */

.tip-box {
  font-size: 11px;
  font-style: italic;
  color: #444;
  padding: 4px;
  border-top: 1px solid #888;
  line-height: 1.4;
}

/* ── Buttons ───────────────────────────────────────────────── */

.btn-sm {
  background: #C0C0C0;
  border: 2px outset #FFFFFF;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 6px;
  font-family: Arial, Helvetica, sans-serif;
}
.btn-sm:hover { background: #D0D0D0; }
.btn-sm:active { border-style: inset; }

.btn-full { width: 100%; }

/* ── Status bar ────────────────────────────────────────────── */

.statusbar {
  background: #C0C0C0;
  border-top: 2px solid #808080;
  padding: 2px 8px;
  font-size: 10px;
  color: #333;
  display: flex;
  gap: 8px;
  position: fixed;
  bottom: 0;
  width: 100%;
}

/* ── Help modal ────────────────────────────────────────────── */

#helpModal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-box {
  width: 340px;
  border: 3px outset #FFFFFF;
  background: #C0C0C0;
  box-shadow: 3px 3px 0 #555;
}

.help-table {
  width: 100%;
  font-size: 11px;
  border-collapse: collapse;
}

.help-table tr:nth-child(odd) { background: #E0E0E0; }
.help-key { font-weight: bold; padding: 2px 6px; white-space: nowrap; }

/* ── Misc ──────────────────────────────────────────────────── */

.muted-text {
  color: #666;
  font-size: 10px;
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #FFFFFF;
  margin: 4px 0;
}

/* Scrollbars (classic look where supported) */
::-webkit-scrollbar { width: 16px; height: 16px; }
::-webkit-scrollbar-track { background: #C0C0C0; border: 1px inset #888; }
::-webkit-scrollbar-thumb {
  background: #C0C0C0;
  border: 2px outset #FFF;
}
::-webkit-scrollbar-thumb:hover { background: #D0D0D0; }
::-webkit-scrollbar-button {
  background: #C0C0C0;
  border: 2px outset #FFF;
  height: 16px;
}

/* ── File attach button ────────────────────────────────────── */

.btn-attach {
  background: #C0C0C0;
  border: 2px outset #FFF;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  padding: 3px 7px;
  font-family: Arial, Helvetica, sans-serif;
  white-space: nowrap;
  color: #000080;
}
.btn-attach:hover { background: #D0D0D0; }
.btn-attach:active { border-style: inset; }
.btn-attach:disabled { color: #888; cursor: default; }

/* ── File messages ─────────────────────────────────────────── */

.file-msg { background: #F0F0FF; padding: 2px 3px; border-left: 3px solid #0000AA; margin: 2px 0; }
.file-info { font-size: 11px; }
.file-dl-link {
  color: #000099;
  text-decoration: underline;
  cursor: pointer;
  font-size: 11px;
  padding: 1px 4px;
  border: 1px outset #888;
  background: #C0C0C0;
  margin-left: 4px;
}
.file-dl-link:hover { background: #D0D0D0; color: #CC0000; }
.file-expiry {
  font-size: 10px;
  color: #888;
  font-style: italic;
  margin-left: 4px;
}
body.dark-mode .file-expiry { color: #666; }

.file-preview {
  max-width: 160px;
  max-height: 120px;
  border: 2px inset #888;
  display: block;
  margin-top: 3px;
  cursor: pointer;
}
.file-preview:hover { border-color: #000080; }

/* ── Mute button ───────────────────────────────────────────── */

.btn-mute {
  background: #E8E8C0;
  border-color: #AAAA00;
}
.btn-mute:hover { background: #F0F0B0; }
.btn-muted {
  background: #FFD0D0 !important;
  border-color: #CC0000 !important;
  color: #880000;
}
.btn-muted:hover { background: #FFE0E0 !important; }

.voice-muted-label {
  color: #CC0000;
  font-size: 10px;
  font-style: italic;
}

/* ── Voice notify bar ──────────────────────────────────────── */

.voice-notify-bar {
  background: #FFFFC0;
  border-bottom: 2px solid #AAAA00;
  border-top: 2px solid #888;
  padding: 3px 8px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 50;
}
.vn-icon { font-size: 14px; }
.vn-text { flex: 1; }
.vn-btn { padding: 1px 6px !important; }

/* ── Toast notification ────────────────────────────────────── */

.toast-msg {
  position: fixed;
  bottom: 28px;
  right: 12px;
  background: #000080;
  color: #FFFFFF;
  border: 2px outset #FFF;
  padding: 5px 12px;
  font-size: 11px;
  z-index: 2000;
  box-shadow: 2px 2px 0 #333;
}

/* ── Win close button ──────────────────────────────────────── */

.win-close-btn {
  cursor: pointer;
  border: 1px outset #CCC;
  padding: 0 5px;
  font-size: 11px;
  background: #C0C0C0;
  color: #000;
  font-weight: bold;
}
.win-close-btn:hover { background: #FF8080; color: #FFF; }

/* ── Incoming call popup ───────────────────────────────────── */

#callPopup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
}
.call-popup-box { width: 280px; }
.call-popup-body { padding: 10px; }
.call-popup-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.call-avatar {
  width: 48px;
  height: 48px;
  border: 2px inset #888;
  background: #808080;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  color: #FFF;
  flex-shrink: 0;
}
.call-popup-info { font-size: 12px; line-height: 1.6; }
.call-popup-btns { text-align: center; padding: 4px 0; }
.btn-call-accept {
  background: #AAFFAA;
  border: 2px outset #FFF;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
}
.btn-call-accept:hover { background: #88FF88; }
.btn-call-accept:active { border-style: inset; }
.btn-call-decline {
  background: #FFAAAA;
  border: 2px outset #FFF;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
}
.btn-call-decline:hover { background: #FF8888; }
.btn-call-decline:active { border-style: inset; }

.modal-overlay-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.25);
  z-index: -1;
}

/* ── Settings modal ────────────────────────────────────────── */

#settingsModal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.settings-box { width: 360px; }

.settings-tabs {
  background: #C0C0C0;
  border-bottom: 2px solid #808080;
  padding: 4px 4px 0 4px;
  display: flex;
  gap: 2px;
}

.settings-tab {
  display: inline-block;
  padding: 2px 10px;
  background: #C0C0C0;
  border: 2px outset #FFF;
  border-bottom: none;
  font-size: 11px;
  cursor: pointer;
  margin-bottom: -2px;
}
.settings-tab:hover { background: #D0D0D0; }

.active-stab {
  background: #FFF;
  font-weight: bold;
  border-color: #808080 #FFF #FFF #808080;
  z-index: 1;
}

.settings-content {
  padding: 10px;
  background: #C0C0C0;
  font-size: 11px;
  min-height: 160px;
}

.settings-footer {
  border-top: 1px solid #808080;
  padding: 5px 8px;
  text-align: right;
  background: #C0C0C0;
}

.retro-select {
  border: 2px inset #888;
  background: #FFFFFF;
  padding: 2px 4px;
  font-size: 11px;
  font-family: Arial, Helvetica, sans-serif;
}
.retro-select:focus { outline: none; background: #FFFFEE; }

/* ── Mic level meter ───────────────────────────────────────── */

.level-meter-wrap {
  border: 2px inset #888;
  background: #1A1A1A;
  height: 16px;
  width: 100%;
  margin: 3px 0;
  position: relative;
  overflow: hidden;
}
.level-meter-bar {
  height: 100%;
  width: 0%;
  background: #007700;
  position: absolute;
  top: 0; left: 0;
}
.level-meter-labels {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  pointer-events: none;
}

/* ── Mic status badge ──────────────────────────────────────── */

.mic-status-badge {
  font-size: 10px;
  padding: 1px 5px;
  border: 1px solid #888;
  background: #E0E0E0;
  margin-left: 4px;
}
.mic-status-active { background: #AAFFAA !important; border-color: #007700 !important; }
.mic-status-error  { background: #FFAAAA !important; border-color: #CC0000 !important; }

/* ── Theme preview box ─────────────────────────────────────── */

.theme-preview {
  border: 2px inset #888;
  background: #FFFFFF;
  padding: 6px 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  line-height: 1.6;
  margin-top: 4px;
}

/* ── DM call button ────────────────────────────────────────── */

.btn-dm-call {
  background: #C0FFC0;
  border: 2px outset #FFF;
  font-size: 11px;
  cursor: pointer;
  padding: 3px 6px;
  width: 100%;
  margin-top: 4px;
  font-family: Arial, Helvetica, sans-serif;
}
.btn-dm-call:hover { background: #A0FFA0; }
.btn-dm-call:active { border-style: inset; }

.btn-dm-cancel {
  background: #FFCCCC;
  border: 2px outset #FFF;
  font-size: 11px;
  cursor: pointer;
  padding: 3px 6px;
  width: 100%;
  margin-top: 4px;
  font-family: Arial, Helvetica, sans-serif;
  color: #880000;
}
.btn-dm-cancel:hover { background: #FFBBBB; }

/* ══════════════════════════════════════════════════════════════
   DARK MODE OVERRIDES
   Toggle by adding class "dark-mode" to <body>
   ══════════════════════════════════════════════════════════════ */

body.dark-mode {
  background-color: #2A2A2A;
  color: #E0E0E0;
}
body.dark-mode .panel         { background: #383838; border-color: #555; }
body.dark-mode .panel-body    { background: #383838; color: #E0E0E0; }
body.dark-mode .panel-title   { background: #000066; }
body.dark-mode .panel-footer  { border-color: #555; }

body.dark-mode .chat-messages {
  background: #1A1A1A;
  color: #E0E0E0;
  border-color: #555;
}
body.dark-mode .msg-text      { color: #E0E0E0; }
body.dark-mode .sys-msg       { color: #AAAAAA; }
body.dark-mode .msg-time      { color: #777; }

body.dark-mode .user-item     { border-color: #555; color: #DDD; }
body.dark-mode .user-item:hover { background: #000066; color: #FFF; }
body.dark-mode .self-user     { background: #444; color: #DDD; }
body.dark-mode .self-user:hover { background: #444; color: #DDD; }

body.dark-mode .room-item     { border-color: #555; color: #DDD; }
body.dark-mode .room-item:hover { background: #000066; color: #FFF; }
body.dark-mode .joined-room   { background: #222244; }

body.dark-mode .chat-header-bar { background: #3A3A3A; color: #EEE; border-color: #555; }
body.dark-mode .chat-header-right { color: #AAA; }

body.dark-mode .topbar        { background: #000055; }

body.dark-mode .btn-connect,
body.dark-mode .btn-sm,
body.dark-mode .btn-send,
body.dark-mode .btn-attach,
body.dark-mode .btn-voice     {
  background: #3A3A3A;
  color: #EEE;
  border-color: #666;
}
body.dark-mode .btn-connect:hover,
body.dark-mode .btn-sm:hover,
body.dark-mode .btn-send:hover,
body.dark-mode .btn-attach:hover,
body.dark-mode .btn-voice:hover { background: #505050; }

body.dark-mode .btn-voice-active { background: #5A1A1A; border-color: #AA0000; color: #FFAAAA; }
body.dark-mode .btn-mute         { background: #3A3A1A; border-color: #888800; }
body.dark-mode .btn-muted        { background: #5A1A1A !important; border-color: #AA0000 !important; color: #FFAAAA; }

body.dark-mode .msg-input     { background: #1A1A1A; color: #EEE; border-color: #555; }
body.dark-mode .msg-input:focus { background: #222200; }
body.dark-mode .msg-input:disabled { background: #2A2A2A; }

body.dark-mode .statusbar     { background: #2A2A2A; border-color: #555; color: #CCC; }
body.dark-mode .tab           { background: #383838; color: #CCC; border-color: #555; }
body.dark-mode .active-tab    { background: #505050; color: #FFF; }
body.dark-mode .tab-bar       { background: #2A2A2A; border-color: #555; }
body.dark-mode .tab-bar-label { color: #888; }
body.dark-mode .input-row     { background: #2A2A2A; border-color: #555; }
body.dark-mode .input-hint    { color: #777; }

body.dark-mode .modal-box     { background: #383838; border-color: #666; }
body.dark-mode .win-body      { background: #383838; color: #EEE; }
body.dark-mode #loginBox      { background: #383838; border-color: #666; }
body.dark-mode .login-avatar-box { border-color: #555; }

body.dark-mode .help-table tr:nth-child(odd) { background: #444; }
body.dark-mode .help-key      { color: #CCC; }
body.dark-mode .muted-text    { color: #888; }
body.dark-mode .tip-box       { color: #AAA; border-color: #555; }
body.dark-mode .empty-list    { color: #888; }

body.dark-mode .retro-select  { background: #1A1A1A; color: #EEE; border-color: #555; }
body.dark-mode .level-meter-wrap { background: #0A0A0A; border-color: #555; }
body.dark-mode .mic-status-badge { background: #444; border-color: #555; color: #CCC; }
body.dark-mode .mic-status-active { background: #1A4A1A !important; color: #88FF88 !important; }
body.dark-mode .mic-status-error  { background: #4A1A1A !important; color: #FF8888 !important; }

body.dark-mode .settings-tabs  { background: #2A2A2A; border-color: #555; }
body.dark-mode .settings-tab   { background: #383838; color: #CCC; border-color: #555; }
body.dark-mode .settings-tab:hover { background: #505050; }
body.dark-mode .active-stab    { background: #505050; color: #FFF; border-color: #666 #505050 #505050 #666; }
body.dark-mode .settings-content { background: #383838; color: #EEE; }
body.dark-mode .settings-footer { background: #383838; border-color: #555; }
body.dark-mode .theme-preview  { background: #1A1A1A; color: #CCC; border-color: #555; }

body.dark-mode .file-msg       { background: #1A1A3A; border-left-color: #4444AA; }
body.dark-mode .file-dl-link   { background: #3A3A3A; color: #AAAAFF; border-color: #555; }
body.dark-mode .file-preview   { border-color: #555; }

body.dark-mode .voice-notify-bar { background: #333310; border-color: #666600; color: #EEEE88; }
body.dark-mode .toast-msg { background: #000055; border-color: #555; }

body.dark-mode .call-popup-box { background: #383838; }
body.dark-mode .call-popup-body { background: #383838; color: #EEE; }
body.dark-mode .call-avatar    { border-color: #555; }
body.dark-mode .win-close-btn  { background: #383838; color: #CCC; border-color: #555; }

body.dark-mode hr { border-top-color: #555; border-bottom-color: #222; }

body.dark-mode ::-webkit-scrollbar-track  { background: #2A2A2A; border-color: #555; }
body.dark-mode ::-webkit-scrollbar-thumb  { background: #505050; border-color: #666; }
body.dark-mode ::-webkit-scrollbar-button { background: #3A3A3A; border-color: #666; }
