/* Modern Executive Light Theme & Warm Glassmorphism Utilities */

:root {
  color-scheme: light;
  --bg-primary: #FAF9F6;
  --bg-card: rgba(255, 255, 255, 0.96);
  --bg-surface: #F5F3EF;
  --border-color: #E7E4DC;
  --text-main: #1C1917;
  --text-muted: #78716C;
  --brand-forest: #047857;
  --brand-copper: #C2410C;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(4, 120, 87, 0.035) 0px, transparent 45%),
    radial-gradient(at 100% 100%, rgba(194, 65, 12, 0.025) 0px, transparent 45%);
  background-attachment: fixed;
}

/* Custom Refined Scrollbars for Light Canvas */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface);
}
::-webkit-scrollbar-thumb {
  background: #D6D1C7;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #A8A29E;
}

/* Glass Panels & Surfaces */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.015);
}

.glass-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  box-shadow: 0 10px 24px -4px rgba(28, 25, 23, 0.07);
  transform: translateY(-1.5px);
  border-color: #D6D1C7;
}

/* Glowing Elements */
.glow-emerald {
  box-shadow: 0 0 25px -4px rgba(4, 120, 87, 0.25);
}

.glow-copper {
  box-shadow: 0 0 25px -4px rgba(194, 65, 12, 0.25);
}

/* Audio Visualizer Wave Animation in Forest Emerald */
@keyframes soundwave {
  0%, 100% { height: 4px; }
  50% { height: 24px; }
}

.wave-bar {
  width: 3.5px;
  background: #059669;
  border-radius: 2px;
  animation: soundwave 1.1s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0.0s; }
.wave-bar:nth-child(2) { animation-delay: 0.2s; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; }
.wave-bar:nth-child(4) { animation-delay: 0.1s; }
.wave-bar:nth-child(5) { animation-delay: 0.3s; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; }

/* Pulse Glow */
@keyframes pulse-emerald {
  0%, 100% { border-color: rgba(4, 120, 87, 0.4); box-shadow: 0 0 18px rgba(4, 120, 87, 0.15); }
  50% { border-color: rgba(5, 150, 105, 0.8); box-shadow: 0 0 28px rgba(5, 150, 105, 0.25); }
}

.animate-glow-border {
  animation: pulse-emerald 2.5s infinite ease-in-out;
}

/* Live Transcript Drawer Shadows and Animations */
.drawer-shadow {
  box-shadow: -12px 0 40px -8px rgba(28, 25, 23, 0.14), -4px 0 12px -2px rgba(28, 25, 23, 0.08);
}

@keyframes bounce-dot {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

.typing-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #047857;
  animation: bounce-dot 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

/* ── Live Transcript Slide-Over Drawer (Right Side, Below Navbar) ────────── */
.transcript-drawer {
  position: fixed;
  top: 74px;
  right: 0;
  bottom: 0;
  height: calc(100vh - 74px);
  width: 100%;
  max-width: 480px;
  background-color: #ffffff;
  border-left: 1px solid rgba(231, 229, 228, 0.95);
  box-shadow: -14px 0 35px -8px rgba(28, 25, 23, 0.12), -4px 0 10px -2px rgba(28, 25, 23, 0.06);
  z-index: 50;
  display: flex;
  flex-direction: column;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.transcript-drawer.drawer-open {
  transform: translateX(0);
  pointer-events: auto;
}

.transcript-drawer.drawer-closed {
  transform: translateX(100%);
  pointer-events: none;
}

.transcript-backdrop {
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(28, 25, 23, 0.32);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 45;
  transition: opacity 0.3s ease;
}

/* Floating Tab on Right Edge */
.transcript-edge-tab {
  position: fixed;
  top: 105px;
  right: 0;
  z-index: 40;
  background-color: #065f46;
  color: #ffffff;
  padding: 8px 12px 8px 14px;
  border-radius: 14px 0 0 14px;
  box-shadow: -4px 4px 14px rgba(6, 95, 70, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #047857;
  border-right: none;
}

.transcript-edge-tab:hover {
  background-color: #047857;
  transform: translateX(-3px);
  box-shadow: -6px 6px 18px rgba(6, 95, 70, 0.4);
}

/* ── Status Toggle Switch ─────────────────────────────────────────────────── */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #E7E4DC;
  transition: 0.2s;
  border-radius: 22px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

input:checked + .toggle-slider {
  background-color: #047857;
}

input:checked + .toggle-slider:before {
  transform: translateX(16px);
}

/* ── Login Screen Floating Card ──────────────────────────────────────────── */
.login-bg-pattern {
  background-image: 
    radial-gradient(at 15% 15%, rgba(4, 120, 87, 0.08) 0px, transparent 50%),
    radial-gradient(at 85% 85%, rgba(194, 65, 12, 0.06) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(6, 78, 59, 0.04) 0px, transparent 65%);
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(231, 229, 228, 0.9);
  box-shadow: 0 20px 45px -12px rgba(28, 25, 23, 0.12), 0 4px 16px -2px rgba(28, 25, 23, 0.05);
}
