/**
 * AURA GROUP - KNOCK (knock.at)
 * Design System Tokens & Base Theme
 * Ultra-Clean Luxury Glossy Glassmorphism Design System with Natural, High-Legibility Typography
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Background Hierarchy */
  --bg-base: #06070a;
  --bg-surface: #0c0e18;
  --bg-surface-elevated: #131728;
  
  /* Glossy Glassmorphic Surfaces */
  --bg-glass: rgba(14, 17, 29, 0.75);
  --bg-glass-card: rgba(20, 24, 42, 0.7);
  --bg-glass-card-elevated: rgba(26, 31, 56, 0.75);
  --bg-glass-glossy: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 40%, rgba(0, 0, 0, 0.25) 100%);
  --bg-glass-specular: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(0, 0, 0, 0.25) 100%);
  
  /* Glass Borders & Specular Highlights */
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glass-hover: rgba(255, 255, 255, 0.22);
  --border-glass-glossy: rgba(255, 255, 255, 0.18);
  --border-focus: rgba(56, 189, 248, 0.6);
  --glass-inset-shine: inset 0 1px 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.4);
  --glass-inset-subtle: inset 0 1px 0 0 rgba(255, 255, 255, 0.2);

  /* Curated Vivid Non-Pink Palette */
  --accent-primary: #0284c7;       /* Electric Sapphire */
  --accent-primary-hover: #0369a1;
  --accent-purple-glow: #38bdf8;
  --accent-cyan: #06b6d4;          /* Cyan */
  --accent-emerald: #10b981;       /* Active / Safe */
  --accent-emerald-bright: #34d399;
  --accent-amber: #f59e0b;         /* Warning / Star */
  --accent-rose: #f43f5e;          /* Danger / Panic */
  --accent-gradient: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  --accent-gradient-glossy: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 50%), linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  --accent-gradient-subtle: linear-gradient(135deg, rgba(2, 132, 199, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
  --accent-emerald-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --accent-rose-gradient: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);

  /* Clean, Balanced, Non-Glaring Soothing Grey Typography */
  --text-main: #94a3b8;
  --text-primary: #94a3b8;
  --text-muted: #64748b;
  --text-subtle: #475569;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Neon Ambient Glows */
  --glow-primary: 0 0 28px rgba(2, 132, 199, 0.4);
  --glow-cyan: 0 0 28px rgba(6, 182, 212, 0.4);
  --glow-emerald: 0 0 28px rgba(16, 185, 129, 0.4);
  --glow-rose: 0 0 28px rgba(244, 63, 94, 0.4);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px -4px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-glass), var(--glass-inset-subtle);
  --shadow-lg: 0 20px 50px -8px rgba(0, 0, 0, 0.75), 0 0 0 1px var(--border-glass-glossy), var(--glass-inset-shine);
  --shadow-glossy-card: 0 16px 40px -8px rgba(0, 0, 0, 0.65), 0 0 30px -5px rgba(2, 132, 199, 0.2), var(--glass-inset-shine);

  /* Radii */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --radius-full: 9999px;
  --transition-smooth: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(2, 132, 199, 0.12) 0px, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(6, 182, 212, 0.1) 0px, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.06) 0px, transparent 65%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.05) 0px, transparent 35%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Luxury Glassmorphic Panel */
.glass-panel {
  background: var(--bg-glass-card);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--border-glass-glossy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glossy-card);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  pointer-events: none;
}

.glass-panel:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 20px 50px -6px rgba(0, 0, 0, 0.75), 0 0 35px -5px rgba(2, 132, 199, 0.25), var(--glass-inset-shine);
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-main);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-main);
  line-height: 1.25;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(2, 132, 199, 0.3));
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glossy Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-inset-subtle), 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
  font-family: var(--font-main);
}

.badge-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(5, 150, 105, 0.15) 100%);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.badge-violet {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22) 0%, rgba(124, 58, 237, 0.15) 100%);
  color: #d8b4fe;
  border: 1px solid rgba(192, 132, 252, 0.35);
}

.badge-cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22) 0%, rgba(8, 145, 178, 0.15) 100%);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.badge-amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.15) 100%);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.badge-rose {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.22) 0%, rgba(225, 29, 72, 0.15) 100%);
  color: #fb7185;
  border: 1px solid rgba(251, 113, 133, 0.35);
}

/* High-Gloss Luxury Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-main);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition-bounce);
  text-decoration: none;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-radius: inherit;
  pointer-events: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35), var(--glass-inset-shine);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.5), var(--glass-inset-shine);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-glass-glossy);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), var(--glass-inset-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px) scale(1.02);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

.btn-danger {
  background: var(--accent-rose-gradient);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.4), var(--glass-inset-shine);
}

.btn-danger:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.6), var(--glass-inset-shine);
}

.btn-danger:active {
  transform: translateY(0) scale(0.98);
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Floating Control Pill Bar */
.floating-control-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(14, 17, 30, 0.88);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), var(--glass-inset-shine);
}

.control-pill-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition-bounce);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), var(--glass-inset-subtle);
  position: relative;
  overflow: hidden;
}

.control-pill-btn:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.06) 100%);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px) scale(1.06);
}

.control-pill-btn.active {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.5), var(--glass-inset-shine);
}

.control-pill-btn.btn-hangup {
  background: var(--accent-rose-gradient);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.45), var(--glass-inset-shine);
}

.control-pill-btn.btn-hangup:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 0 28px rgba(244, 63, 94, 0.7), var(--glass-inset-shine);
}

/* Glossy Form Controls */
.input-control, .select-control {
  width: 100%;
  background: rgba(10, 12, 20, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass-glossy);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-main);
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), var(--glass-inset-subtle);
  transition: var(--transition-smooth);
}

.input-control:focus, .select-control:focus {
  border-color: var(--border-focus);
  background: rgba(15, 18, 30, 0.9);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

/* Glowing Pulse Indicator */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  animation: pulseRipple 1.8s infinite cubic-bezier(0, 0.2, 0.8, 1);
}

@keyframes pulseRipple {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* Slide-out Side Drawer Component */
.side-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 10, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.side-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 94vw);
  background: rgba(14, 17, 30, 0.94);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-left: 1px solid var(--border-glass-glossy);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.85), var(--glass-inset-shine);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-drawer.open {
  transform: translateX(0);
}

.side-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-glass);
}

.side-drawer-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-glass);
}

.side-drawer-tab {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.side-drawer-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.side-drawer-tab.active {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4), var(--glass-inset-subtle);
}

.side-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Glossy Toggle Switches */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-glass-glossy);
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: var(--radius-full);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), var(--glass-inset-subtle);
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  transition: 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

input:checked + .slider {
  background: var(--accent-gradient);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.5), var(--glass-inset-shine);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Settings & Admin Feature Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 500px;
  background: rgba(14, 17, 30, 0.95);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid var(--border-glass-glossy);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(2, 132, 199, 0.25), var(--glass-inset-shine);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-backdrop.open .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.feature-toggle-row:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(56, 189, 248, 0.4);
}

.feature-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 12px;
}

.feature-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}
