/* =========================================================
   Base & CSS Variables
   ========================================================= */

:root {
  --zoom-blue: #0e72ed;
  --zoom-blue-hover: #0b5fcc;
  --zoom-gray-bg: #f5f7fa;
  --zoom-border: #dcdfe4;
  --zoom-text: #1f2937;
  --zoom-muted: #6b7280;
}

html, body {
  height: 100%;
  margin: 0;
  background: #000;
}

#meetingSDKElement {
  width: 100%;
  height: 100vh;
}

/* =========================================================
   Theme: Neon (default)
   ========================================================= */

.theme-neon { background: #000; }
.theme-neon html, .theme-neon body { background: #000; }
.theme-neon .panel { background: linear-gradient(180deg, #07090c 0%, #030405 100%); color: #e6e6e6; }
.theme-neon #themeToggleBtn { color: #ffffff; }

/* =========================================================
   Layout & Panel
   ========================================================= */

.panel {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: linear-gradient(180deg, #07090c 0%, #030405 100%);
  color: #e6e6e6;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0;
  border: none;
  box-shadow: none;
  font: 14px system-ui, sans-serif;
}

.panel-header {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 16px;
  cursor: default;
  background: linear-gradient(180deg, #0a0f14, #05070a);
  border-bottom: 1px solid rgba(124,255,178,0.25);
  box-shadow: 0 0 16px rgba(124,255,178,0.12);
}

.panel .panel-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,255,178,0.25), transparent);
  margin: 18px 0;
}

/* =========================================================
   Message layout
   ========================================================= */

.msg-row { display: flex; gap: 24px; align-items: flex-start; }
.msg-col { flex: 1 1 0; min-width: 0; }
.msg-col-head { min-height: 32px; display: flex; align-items: center; }
.msg-col-body { margin-top: 6px; }
.msg-col.col-msg { flex: 2; }
.msg-col.col-grace { flex: 1; }

.warn-preview {
  display: inline-block;
  line-height: 1.5;
  padding: 6px 10px;
  margin: 8px 0 12px 0;
  border-radius: 8px;
  background: rgba(255,193,7,0.08);
  border: 1px solid rgba(255,193,7,0.35);
  color: #ffd966;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  box-shadow: 0 0 10px rgba(255,193,7,0.25);
}

/* =========================================================
   Pills, status & buttons
   ========================================================= */

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #7cffb2;
  border: 1px solid rgba(124,255,178,0.35);
  background: rgba(124,255,178,0.08);
  box-shadow: 0 0 8px rgba(124,255,178,0.15);
}

.status-inline {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(124,255,178,0.12);
  border: 1px solid rgba(124,255,178,0.35);
  color: #7cffb2;
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(124,255,178,0.25);
}

#pauseGuardBtn {
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

#pauseGuardBtn.running {
  background: #dc3545;
  box-shadow: 0 0 14px rgba(220,53,69,0.6);
  color: #fff;
}

#pauseGuardBtn.paused {
  background: linear-gradient(180deg, #00ff9c, #00c97a);
  box-shadow: 0 0 12px rgba(0,255,156,0.8), 0 0 28px rgba(0,255,156,0.45);
  color: #022;
}

/* =========================================================
   Forms & inputs
   ========================================================= */

input, textarea {
  background: #05070a;
  color: #e6e6e6;
  border: 1px solid #1f2933;
}

input:focus, textarea:focus {
  outline: none;
  border-color: rgba(124,255,178,0.6);
  box-shadow: 0 0 0 1px rgba(124,255,178,0.25);
}

input::placeholder, textarea::placeholder { color: #6f7c86; }
input[type="range"] { width: 100%; }
small.note { color: #9aa4ad; }

/* =========================================================
   Join modal & card
   ========================================================= */

#joinModal {
  position: fixed;
  inset: 0;
  background: rgba(5,7,10,0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147483647;
}

#joinCard {
  width: 92%;
  max-width: 540px;
  background: #05070a;
  color: #e6e6e6;
  border: 1px solid rgba(124,255,178,0.25);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 0 24px rgba(124,255,178,0.15), 0 0 80px rgba(0,0,0,0.8);
  font: 14px system-ui, sans-serif;
  box-sizing: border-box;
}

#joinCard h2 { margin: 0 0 8px; font-size: 18px; }
#joinCard .field { margin: 10px 0; }
#joinCard label { display: block; font-weight: 600; margin-bottom: 4px; }
#joinCard input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
}

#joinBtn {
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  color: #022;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #00ff9c, #00c97a);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(0,255,156,0.6);
}

#joinBtn:hover { background: #0056b3; filter: brightness(1.1); }

/* =========================================================
   SDK Overlay
   ========================================================= */

#sdkOverlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7cffb2;
  font: 14px system-ui, sans-serif;
}

/* =========================================================
   Theme: Classic
   ========================================================= */

.theme-classic {
  background: var(--zoom-gray-bg);
  color: var(--zoom-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.theme-classic html, .theme-classic body { background: var(--zoom-gray-bg); }
.theme-classic .panel { background: #ffffff; color: var(--zoom-text); box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.theme-classic .panel-header { background: #ffffff; border-bottom: 1px solid var(--zoom-border); box-shadow: none; }
.theme-classic .panel-header strong { font-weight: 600; }
.theme-classic .panel-header small { color: var(--zoom-muted); }
.theme-classic hr { background: #dee2e6; }

.theme-classic input, .theme-classic textarea {
  background: #ffffff;
  color: var(--zoom-text);
  border: 1px solid var(--zoom-border);
  border-radius: 6px;
}

.theme-classic input:focus, .theme-classic textarea:focus {
  outline: none;
  border-color: var(--zoom-blue);
  box-shadow: 0 0 0 1px rgba(14,114,237,0.25);
}

.theme-classic input::placeholder { color: var(--zoom-muted); }
.theme-classic #attendeesList { background: #ffffff; border: 1px solid var(--zoom-border); }
.theme-classic .attendee { border-bottom: 1px solid #eef0f3; font-size: 13px; }
.theme-classic .tag { border-radius: 999px; font-size: 11px; }
.theme-classic .tag.host { background: rgba(220,53,69,0.1); border-color: rgba(220,53,69,0.4); color: #b02a37; }
.theme-classic .tag.cohost { background: rgba(14,114,237,0.1); border-color: rgba(14,114,237,0.4); color: var(--zoom-blue); }
.theme-classic .tag.exempt { background: rgba(25,135,84,0.1); border-color: rgba(25,135,84,0.4); color: #198754; }

.theme-classic .pill, .theme-classic .status-inline {
  background: #eef2ff;
  color: var(--zoom-blue);
  border: 1px solid #dbe3ff;
  box-shadow: none;
}

.theme-classic .pill { font-size: 12px; font-weight: 500; }
.theme-classic .warn-preview { background: #fffbe6; border: 1px solid #ffe58f; color: #664d03; box-shadow: none; font-family: system-ui, sans-serif; }
.theme-classic #pauseGuardBtn { border-radius: 6px; font-weight: 600; }
.theme-classic #pauseGuardBtn.running { background: #dc3545; color: #fff; box-shadow: none; }
.theme-classic #pauseGuardBtn.paused { background: var(--zoom-blue); color: #fff; box-shadow: none; }
.theme-classic #pauseGuardBtn:hover { filter: brightness(0.95); }
.theme-classic .theme-toggle { border: 1px solid #ced4da; background: #ffffff; color: #212529; }
.theme-classic #sdkOverlay { background: var(--zoom-gray-bg); color: var(--zoom-text); }