/* ============================================================================
   AI HOSPITAL RECEPTIONIST KIOSK - MASTER DESIGN SYSTEM & AESTHETICS
   Color Palette: Deep Slate (#090d16), Healthcare Emerald/Teal (#0d9488, #14b8a6),
   Luminous Accents (#06b6d4, #3b82f6), Clean Surfaces (#0f172a, #1e293b, #ffffff)
   ============================================================================ */

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

:root {
    --bg-kiosk: #080d1a;
    --bg-surface: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --border-card: rgba(255, 255, 255, 0.12);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --teal-glow: #0d9488;
    --teal-bright: #14b8a6;
    --cyan-glow: #06b6d4;
    --amber-badge: #f59e0b;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-kiosk);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

/* ============================================================================
   KIOSK FULLSCREEN SHELL
   ============================================================================ */
.kiosk-shell {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 50% 0%, #134e4a 0%, #090d1a 60%, #050811 100%);
    position: relative;
    overflow: hidden;
}

/* ============================================================================
   WHITE / LIGHT THEME STYLING
   ============================================================================ */
.kiosk-shell.theme-white, .kiosk-shell.theme-light {
    --bg-kiosk: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.95);
    --border-card: rgba(203, 213, 225, 0.8);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    background: radial-gradient(circle at 50% 0%, #ccfbf1 0%, #f1f5f9 60%, #e2e8f0 100%);
    color: #0f172a;
}

.kiosk-shell.theme-white .ambient-glow, .kiosk-shell.theme-light .ambient-glow {
    background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, rgba(14, 165, 233, 0.08) 50%, transparent 70%);
}

.kiosk-shell.theme-white .kiosk-header, .kiosk-shell.theme-light .kiosk-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.kiosk-shell.theme-white .hospital-title, .kiosk-shell.theme-light .hospital-title {
    color: #0f172a;
}

.kiosk-shell.theme-white .ai-voice-assistant-bar, .kiosk-shell.theme-light .ai-voice-assistant-bar {
    background: #ffffff;
    border-color: rgba(13, 148, 136, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 20px rgba(13, 148, 136, 0.1);
}

.kiosk-shell.theme-white .speech-bubble-text, .kiosk-shell.theme-light .speech-bubble-text {
    color: #0f172a;
}

.kiosk-shell.theme-white .speech-bubble-sub, .kiosk-shell.theme-light .speech-bubble-sub {
    color: #64748b;
}

.kiosk-shell.theme-white .glass-card, .kiosk-shell.theme-light .glass-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.kiosk-shell.theme-white .language-card, .kiosk-shell.theme-light .language-card {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.kiosk-shell.theme-white .lang-native, .kiosk-shell.theme-light .lang-native {
    color: #0f172a;
}

.kiosk-shell.theme-white .doctor-item-card, .kiosk-shell.theme-light .doctor-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.kiosk-shell.theme-white .doctor-name, .kiosk-shell.theme-light .doctor-name {
    color: #0f172a;
}

.kiosk-shell.theme-white .btn-secondary-dark, .kiosk-shell.theme-light .btn-secondary-dark {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.kiosk-shell.theme-white .btn-secondary-dark:hover, .kiosk-shell.theme-light .btn-secondary-dark:hover {
    background: #e2e8f0;
}

.kiosk-shell.theme-white .kiosk-footer, .kiosk-shell.theme-light .kiosk-footer {
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid #e2e8f0;
}

.kiosk-shell.theme-white h2, .kiosk-shell.theme-white h3, .kiosk-shell.theme-white h4,
.kiosk-shell.theme-light h2, .kiosk-shell.theme-light h3, .kiosk-shell.theme-light h4 {
    color: #0f172a !important;
}

.kiosk-shell.theme-white .bg-dark, .kiosk-shell.theme-light .bg-dark {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.kiosk-shell.theme-white .text-white, .kiosk-shell.theme-light .text-white {
    color: #0f172a !important;
}

.kiosk-shell.theme-white .text-slate-300, .kiosk-shell.theme-light .text-slate-300 {
    color: #334155 !important;
}

/* Color Accent Variations */
.accent-blue {
    --teal-glow: #2563eb;
    --teal-bright: #3b82f6;
}
.accent-blue .btn-primary-teal {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45) !important;
}
.accent-blue .btn-primary-teal:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
}
.accent-blue .hospital-logo-badge, .accent-blue .ai-avatar-circle {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
}
.accent-blue .wave-bar {
    background: #3b82f6 !important;
}
.accent-blue.theme-white {
    background: radial-gradient(circle at 50% 0%, #dbeafe 0%, #f1f5f9 60%, #e2e8f0 100%) !important;
}
.accent-blue.theme-dark {
    background: radial-gradient(circle at 50% 0%, #1e3a8a 0%, #090d1a 60%, #050811 100%) !important;
}

.accent-purple {
    --teal-glow: #7c3aed;
    --teal-bright: #8b5cf6;
}
.accent-purple .btn-primary-teal {
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.45) !important;
}
.accent-purple .btn-primary-teal:hover {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
}
.accent-purple .hospital-logo-badge, .accent-purple .ai-avatar-circle {
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
}
.accent-purple .wave-bar {
    background: #8b5cf6 !important;
}
.accent-purple.theme-white {
    background: radial-gradient(circle at 50% 0%, #ede9fe 0%, #f1f5f9 60%, #e2e8f0 100%) !important;
}
.accent-purple.theme-dark {
    background: radial-gradient(circle at 50% 0%, #4c1d95 0%, #090d1a 60%, #050811 100%) !important;
}

.accent-rose {
    --teal-glow: #e11d48;
    --teal-bright: #f43f5e;
}
.accent-rose .btn-primary-teal {
    background: linear-gradient(135deg, #e11d48, #be123c) !important;
    box-shadow: 0 4px 18px rgba(225, 29, 72, 0.45) !important;
}
.accent-rose .btn-primary-teal:hover {
    background: linear-gradient(135deg, #f43f5e, #e11d48) !important;
}
.accent-rose .hospital-logo-badge, .accent-rose .ai-avatar-circle {
    background: linear-gradient(135deg, #e11d48, #be123c) !important;
}
.accent-rose .wave-bar {
    background: #f43f5e !important;
}
.accent-rose.theme-white {
    background: radial-gradient(circle at 50% 0%, #ffe4e6 0%, #f1f5f9 60%, #e2e8f0 100%) !important;
}
.accent-rose.theme-dark {
    background: radial-gradient(circle at 50% 0%, #881337 0%, #090d1a 60%, #050811 100%) !important;
}

.accent-cyan {
    --teal-glow: #0891b2;
    --teal-bright: #06b6d4;
}
.accent-cyan .btn-primary-teal {
    background: linear-gradient(135deg, #0891b2, #0e7490) !important;
    box-shadow: 0 4px 18px rgba(8, 145, 178, 0.45) !important;
}
.accent-cyan .btn-primary-teal:hover {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
}
.accent-cyan .hospital-logo-badge, .accent-cyan .ai-avatar-circle {
    background: linear-gradient(135deg, #0891b2, #0e7490) !important;
}
.accent-cyan .wave-bar {
    background: #06b6d4 !important;
}
.accent-cyan.theme-white {
    background: radial-gradient(circle at 50% 0%, #cffafe 0%, #f1f5f9 60%, #e2e8f0 100%) !important;
}
.accent-cyan.theme-dark {
    background: radial-gradient(circle at 50% 0%, #164e63 0%, #090d1a 60%, #050811 100%) !important;
}

.accent-amber {
    --teal-glow: #d97706;
    --teal-bright: #f59e0b;
}
.accent-amber .btn-primary-teal {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    box-shadow: 0 4px 18px rgba(217, 119, 6, 0.45) !important;
}
.accent-amber .btn-primary-teal:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}
.accent-amber .hospital-logo-badge, .accent-amber .ai-avatar-circle {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
}
.accent-amber .wave-bar {
    background: #f59e0b !important;
}
.accent-amber.theme-white {
    background: radial-gradient(circle at 50% 0%, #fef3c7 0%, #f1f5f9 60%, #e2e8f0 100%) !important;
}
.accent-amber.theme-dark {
    background: radial-gradient(circle at 50% 0%, #78350f 0%, #090d1a 60%, #050811 100%) !important;
}

.accent-green {
    --teal-glow: #059669;
    --teal-bright: #10b981;
}
.accent-green .btn-primary-teal {
    background: linear-gradient(135deg, #059669, #047857) !important;
    box-shadow: 0 4px 18px rgba(5, 150, 105, 0.45) !important;
}
.accent-green .btn-primary-teal:hover {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}
.accent-green .hospital-logo-badge, .accent-green .ai-avatar-circle {
    background: linear-gradient(135deg, #059669, #047857) !important;
}
.accent-green .wave-bar {
    background: #10b981 !important;
}
.accent-green.theme-white {
    background: radial-gradient(circle at 50% 0%, #d1fae5 0%, #f1f5f9 60%, #e2e8f0 100%) !important;
}
.accent-green.theme-dark {
    background: radial-gradient(circle at 50% 0%, #064e3b 0%, #090d1a 60%, #050811 100%) !important;
}

/* White Theme Button Text Safety Overrides */
.kiosk-shell.theme-white .btn-primary-teal,
.kiosk-shell.theme-white .btn-primary-teal span,
.kiosk-shell.theme-white .btn-primary-teal * {
    color: #ffffff !important;
}

.kiosk-shell.theme-white .bg-slate-900,
.kiosk-shell.theme-white .bg-slate-800 {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.kiosk-shell.theme-white .text-slate-400 {
    color: #64748b !important;
}

.kiosk-shell.theme-white .border-secondary {
    border-color: #cbd5e1 !important;
}

/* Ambient glow orb behind AI visualizer */
.ambient-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(20, 184, 166, 0.25) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 70%);
    pointer-events: none;
    filter: blur(50px);
    z-index: 1;
}

/* Kiosk Header */
.kiosk-header {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    border-bottom: 1px solid var(--border-card);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    z-index: 10;
}

.hospital-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hospital-logo-badge {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0d9488, #0284c7);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.4);
}

.hospital-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.hospital-subtitle {
    font-size: 0.8rem;
    color: var(--teal-bright);
    font-weight: 600;
}

/* Kiosk Live Status Bar */
.kiosk-status-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #34d399;
}

.status-dot-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
}

/* Kiosk Main Content Area */
.kiosk-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 2.5rem;
    overflow-y: auto;
    position: relative;
    z-index: 5;
}

/* Kiosk Footer */
.kiosk-footer {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    border-top: 1px solid var(--border-card);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    z-index: 10;
}

/* ============================================================================
   ORGANIC ALIVE AI ACOUSTIC RECEPTIONIST & RADIAL CIRCLE WAVES
   ============================================================================ */
.ai-acoustic-stage {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding: 1.25rem 2rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 25px rgba(13, 148, 136, 0.12);
    backdrop-filter: blur(20px);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 5;
    transition: all 0.3s ease;
}

.kiosk-shell.theme-white .ai-acoustic-stage {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(203, 213, 225, 0.9);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06), 0 0 20px rgba(13, 148, 136, 0.08);
}

/* Acoustic Ripple Emitter */
.ai-acoustic-emitter {
    position: relative;
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.acoustic-wave-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    border: 1.5px solid var(--teal-bright);
    opacity: 0;
    transform: scale(0.9);
}

/* Continuous breathing ripple waves */
.acoustic-wave-ring.ring-1 {
    animation: acousticPulse1 3.2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}
.acoustic-wave-ring.ring-2 {
    animation: acousticPulse2 3.2s cubic-bezier(0.25, 1, 0.5, 1) infinite 0.75s;
}
.acoustic-wave-ring.ring-3 {
    animation: acousticPulse3 3.2s cubic-bezier(0.25, 1, 0.5, 1) infinite 1.5s;
}
.acoustic-wave-ring.ring-4 {
    animation: acousticPulse4 3.2s cubic-bezier(0.25, 1, 0.5, 1) infinite 2.25s;
}
.acoustic-wave-ring.ring-5 {
    animation: acousticPulse5 3.2s cubic-bezier(0.25, 1, 0.5, 1) infinite 2.75s;
}

/* Energetic acceleration when speaking or listening */
.ai-acoustic-stage.is-speaking .acoustic-wave-ring.ring-1,
.ai-acoustic-stage.is-listening .acoustic-wave-ring.ring-1 {
    animation-duration: 1.3s;
    border-color: #38bdf8;
}
.ai-acoustic-stage.is-speaking .acoustic-wave-ring.ring-2,
.ai-acoustic-stage.is-listening .acoustic-wave-ring.ring-2 {
    animation-duration: 1.3s;
    animation-delay: 0.25s;
    border-color: var(--teal-bright);
}
.ai-acoustic-stage.is-speaking .acoustic-wave-ring.ring-3,
.ai-acoustic-stage.is-listening .acoustic-wave-ring.ring-3 {
    animation-duration: 1.3s;
    animation-delay: 0.5s;
}
.ai-acoustic-stage.is-speaking .acoustic-wave-ring.ring-4,
.ai-acoustic-stage.is-listening .acoustic-wave-ring.ring-4 {
    animation-duration: 1.3s;
    animation-delay: 0.75s;
}
.ai-acoustic-stage.is-speaking .acoustic-wave-ring.ring-5,
.ai-acoustic-stage.is-listening .acoustic-wave-ring.ring-5 {
    animation-duration: 1.3s;
    animation-delay: 1.0s;
}

.acoustic-wave-ring.ring-shockwave {
    animation: absorbRingBurst 0.55s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
    border: 2.5px solid #38bdf8;
    box-shadow: 0 0 25px #38bdf8;
}

@keyframes absorbRingBurst {
    0% { transform: scale(0.85); opacity: 1; }
    50% { transform: scale(2.2); opacity: 0.7; }
    100% { transform: scale(3.5); opacity: 0; }
}

@keyframes acousticPulse1 {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.35); opacity: 0.35; }
    100% { transform: scale(1.7); opacity: 0; }
}

@keyframes acousticPulse2 {
    0% { transform: scale(0.95); opacity: 0.6; }
    50% { transform: scale(1.55); opacity: 0.25; }
    100% { transform: scale(2.05); opacity: 0; }
}

@keyframes acousticPulse3 {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.75); opacity: 0.15; }
    100% { transform: scale(2.4); opacity: 0; }
}

@keyframes acousticPulse4 {
    0% { transform: scale(0.95); opacity: 0.4; }
    50% { transform: scale(1.95); opacity: 0.08; }
    100% { transform: scale(2.75); opacity: 0; }
}

@keyframes acousticPulse5 {
    0% { transform: scale(0.95); opacity: 0.35; }
    50% { transform: scale(2.2); opacity: 0.05; }
    100% { transform: scale(3.1); opacity: 0; }
}

/* Core Holographic Sphere */
.ai-orb-core {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #38bdf8 0%, var(--teal-glow) 50%, #042f2e 100%);
    box-shadow: 0 0 28px rgba(20, 184, 166, 0.5), inset 0 2px 6px rgba(255, 255, 255, 0.4), inset 0 -4px 10px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    animation: orbFloat 4s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 16px var(--teal-glow)); }
    50% { transform: scale(1.04) translateY(-2px); filter: drop-shadow(0 0 28px var(--teal-bright)); }
}

.orb-specular-glow {
    position: absolute;
    top: 6px;
    left: 12px;
    width: 22px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), transparent);
    transform: rotate(-30deg);
    pointer-events: none;
}

.orb-aperture {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    z-index: 2;
}

.orb-spectrum-bars {
    display: flex;
    align-items: center;
    gap: 2.5px;
    height: 10px;
    margin-top: 3px;
    z-index: 2;
}

.spectrum-bar {
    width: 2.5px;
    height: 4px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 99px;
    animation: barOscillate 1.2s ease-in-out infinite alternate;
}

.sb-1 { animation-delay: 0.1s; }
.sb-2 { animation-delay: 0.3s; }
.sb-3 { animation-delay: 0.5s; }
.sb-4 { animation-delay: 0.2s; }
.sb-5 { animation-delay: 0.4s; }

@keyframes barOscillate {
    0% { height: 3px; opacity: 0.5; }
    100% { height: 9px; opacity: 1; }
}

/* Dialogue Cloud */
.ai-dialogue-cloud {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ai-dialogue-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-presence-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    background: rgba(20, 184, 166, 0.12);
    color: #2dd4bf;
    border: 1px solid rgba(20, 184, 166, 0.25);
}

.ai-presence-badge.speaking {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.35);
}

.ai-presence-badge.listening {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border-color: rgba(244, 63, 94, 0.35);
}

.presence-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
    animation: pulseDot 1.4s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.ai-lang-pill {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
}

.ai-spoken-prompt {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    transition: color 0.2s ease;
}

.kiosk-shell.theme-white .ai-spoken-prompt {
    color: #0f172a;
}

.ai-interaction-hint {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
}

.kiosk-shell.theme-white .ai-interaction-hint {
    color: #64748b;
}

/* Voice Action Toggle Button */
.kiosk-voice-action-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.4rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #0d9488, #059669);
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(13, 148, 136, 0.35);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.kiosk-voice-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(20, 184, 166, 0.5);
}

.kiosk-voice-action-btn.listening-active {
    background: linear-gradient(135deg, #e11d48, #be123c);
    box-shadow: 0 4px 20px rgba(225, 29, 72, 0.5);
    animation: voiceActivePulse 1.2s infinite;
}

@keyframes voiceActivePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.6); }
    50% { box-shadow: 0 0 0 10px rgba(225, 29, 72, 0); }
}

/* Springy Fluid Stage Pop-up Transition */
.kiosk-stage-container {
    animation: kioskStagePop 0.44s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: center top;
}

@keyframes kioskStagePop {
    0% {
        opacity: 0;
        transform: translateY(32px) scale(0.94);
        filter: blur(5px);
    }
    60% {
        transform: translateY(-5px) scale(1.012);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* User interaction absorption into central acoustic circle */
.absorbing-to-orb,
.kiosk-absorbed {
    animation: absorbIntoCircle 0.38s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    pointer-events: none;
}

@keyframes absorbIntoCircle {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }
    35% {
        transform: translateY(-22px) scale(0.85);
        opacity: 0.92;
        box-shadow: 0 0 35px var(--teal-glow);
    }
    100% {
        transform: translateY(-100px) scale(0.12);
        opacity: 0;
        filter: blur(10px);
    }
}

/* Acoustic Orb Reaction when ingesting input */
.ai-acoustic-stage.is-ingesting .ai-orb-core,
.orb-absorb-pulse {
    animation: orbAbsorbPulse 0.48s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes orbAbsorbPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 16px var(--teal-glow)); }
    30% { transform: scale(0.85); }
    60% { transform: scale(1.24); filter: drop-shadow(0 0 50px #38bdf8); }
    100% { transform: scale(1); filter: drop-shadow(0 0 20px var(--teal-glow)); }
}

.speech-bubble-sub {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.2rem;
}

/* ============================================================================
   GLASSMORPHIC CARDS & BUTTONS
   ============================================================================ */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    backdrop-filter: blur(14px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Doctor Avatar & Card Enhancements */
.doctor-avatar-circle {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0d9488 0%, #1e293b 100%);
    border: 2px solid rgba(20, 184, 166, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.doctor-avatar-circle-sm {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0d9488 0%, #1e293b 100%);
    border: 1.5px solid rgba(20, 184, 166, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.doctor-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.doctor-initials-fallback,
.doctor-initials-fallback-sm {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
}

.doctor-initials-fallback { font-size: 1.15rem; }
.doctor-initials-fallback-sm { font-size: 0.8rem; }

.doctor-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #10b981;
    border: 2.5px solid #0f172a;
    box-shadow: 0 0 6px #10b981;
}

.status-dot-green {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 5px #10b981;
    display: inline-block;
}

.hover-lift {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 20px rgba(13, 148, 136, 0.15) !important;
    border-color: rgba(20, 184, 166, 0.45) !important;
}

.min-w-0 {
    min-width: 0;
}

.glass-card:hover {
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(13, 148, 136, 0.2);
}

.kiosk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    min-height: 60px;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease-out;
    text-decoration: none;
}

.kiosk-btn:active {
    transform: scale(0.96);
}

.btn-primary-teal {
    background: linear-gradient(135deg, #0d9488, #059669);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(13, 148, 136, 0.35);
}

.btn-primary-teal:hover {
    background: linear-gradient(135deg, #14b8a6, #10b981);
    box-shadow: 0 6px 24px rgba(20, 184, 166, 0.5);
}

.btn-secondary-dark {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
}

.btn-secondary-dark:hover {
    background: rgba(51, 65, 85, 0.95);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-danger-soft {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.btn-danger-soft:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ffffff;
}

/* ============================================================================
   LANGUAGE SELECTION CARDS
   ============================================================================ */
.language-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
    margin: auto;
}

.language-card {
    background: rgba(30, 41, 59, 0.7);
    border: 2px solid var(--border-card);
    border-radius: 24px;
    padding: 2.2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-height: 180px;
}

.language-card:hover {
    transform: translateY(-4px);
    border-color: var(--teal-bright);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(20, 184, 166, 0.3);
    background: rgba(30, 41, 59, 0.95);
}

.language-card:active {
    transform: scale(0.97);
}

.lang-native {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.lang-english {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ============================================================================
   CAMERA HUD & FACE SCANNING OVERLAY
   ============================================================================ */
.camera-scanner-wrapper {
    position: relative;
    width: 480px;
    height: 360px;
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    background: #020617;
    border: 3px solid rgba(20, 184, 166, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(13, 148, 136, 0.25);
}

.camera-scanner-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

/* Hologram Scanning Target HUD */
.hud-target-oval {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 280px;
    border-radius: 50% 50% 45% 45%;
    border: 2px dashed rgba(20, 184, 166, 0.8);
    pointer-events: none;
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.3);
}

.hud-scan-beam {
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #2dd4bf, #38bdf8, transparent);
    box-shadow: 0 0 15px #2dd4bf;
    animation: scanbeam 2.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes scanbeam {
    0% { top: 15%; opacity: 0.2; }
    50% { top: 85%; opacity: 1; }
    100% { top: 15%; opacity: 0.2; }
}

/* ============================================================================
   DOCTOR CARDS GRID
   ============================================================================ */
.doctor-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    width: 100%;
}

.doctor-item-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.doctor-item-card:hover {
    border-color: var(--teal-bright);
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 20px rgba(13, 148, 136, 0.25);
}

.doctor-item-card:active {
    transform: scale(0.98);
}

.doctor-avatar-box {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    background: #0f172a;
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    flex-shrink: 0;
}

.doctor-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-info-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.doctor-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.doctor-specialty {
    font-size: 0.85rem;
    color: var(--teal-bright);
    font-weight: 600;
    margin-top: 0.1rem;
}

.doctor-cabin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    margin-top: 0.4rem;
    width: fit-content;
}

/* ============================================================================
   THERMAL RECEIPT PAPER VISUALIZER
   ============================================================================ */
.receipt-paper-container {
    background: #ffffff;
    color: #0f172a;
    border-radius: 4px;
    width: 380px;
    margin: 1.5rem auto;
    padding: 2rem 1.5rem;
    font-family: var(--font-mono);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.2);
    position: relative;
    border-top: 6px solid #0d9488;
}

/* Zigzag tear perforation at top and bottom */
.receipt-paper-container::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: radial-gradient(circle, transparent, transparent 50%, #ffffff 50%, #ffffff 100%);
    background-size: 14px 14px;
}

/* ============================================================================
   ELDERLY MODE (ACCESSIBILITY HIGH CONTRAST)
   ============================================================================ */
.elderly-mode {
    --text-primary: #ffffff;
}

.elderly-mode .speech-bubble-text {
    font-size: 1.5rem !important;
    line-height: 1.5 !important;
}

.elderly-mode .kiosk-btn {
    min-height: 80px !important;
    font-size: 1.35rem !important;
    border-width: 3px !important;
}

.elderly-mode .lang-native {
    font-size: 2.8rem !important;
}

.elderly-mode .doctor-name {
    font-size: 1.4rem !important;
}

.elderly-mode .doctor-specialty {
    font-size: 1.1rem !important;
}

/* ============================================================================
   ADMIN & SUPERADMIN DASHBOARDS
   ============================================================================ */
.admin-shell {
    min-height: 100vh;
    display: flex;
    background: #090d16;
    color: #f1f5f9;
}

/* ============================================================================
   ENTERPRISE CLINICAL ADMIN WORKSPACE & DESIGN SYSTEM
   ============================================================================ */
.lucide-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.admin-shell {
    width: 100vw;
    height: 100vh;
    display: flex;
    overflow: hidden;
    background: #0b0f19;
    font-family: var(--font-sans);
    color: #f1f5f9;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    min-width: 260px;
    background: #0f172a;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
    z-index: 20;
}

.admin-brand-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0d9488, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.admin-brand-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.admin-brand-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: #14b8a6;
    letter-spacing: 0.08em;
}

.admin-nav-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.75rem 0.5rem 0.35rem;
}

.admin-nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
}

.admin-nav-link.active {
    background: rgba(20, 184, 166, 0.12);
    color: #2dd4bf;
    font-weight: 600;
}

.admin-nav-link .nav-icon {
    color: inherit;
    opacity: 0.85;
}

.admin-sidebar-footer {
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-kiosk-launch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 8px;
    color: #2dd4bf;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.admin-kiosk-launch-btn:hover {
    background: rgba(20, 184, 166, 0.22);
    color: #5eead4;
    border-color: rgba(20, 184, 166, 0.5);
}

.admin-version-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #64748b;
    font-family: var(--font-mono);
}

.status-indicator-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

/* Workspace Container & Top Bar */
.admin-content-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #090e17;
}

.admin-topbar {
    height: 56px;
    min-height: 56px;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
    z-index: 10;
}

.admin-search-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    width: 380px;
    transition: border-color 0.15s ease;
}

.admin-search-wrapper:focus-within {
    border-color: #0d9488;
    background: rgba(255, 255, 255, 0.07);
}

.admin-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #f8fafc;
    font-size: 0.82rem;
    width: 100%;
}

.search-shortcut-badge {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-system-health-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.health-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.topbar-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
}

.topbar-icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.unread-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f43f5e;
}

.topbar-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0.25rem;
}

.admin-profile-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.admin-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d9488, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
}

.admin-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.1;
}

.admin-role {
    font-size: 0.68rem;
    color: #94a3b8;
}

/* Page Viewport & Elements */
.admin-main-viewport {
    flex: 1;
    overflow-y: auto;
    padding: 1.75rem 2.25rem;
}

.admin-page-container {
    max-width: 1600px;
    margin: 0 auto;
}

.admin-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.breadcrumb-separator {
    color: #475569;
}

.breadcrumb-current {
    color: #cbd5e1;
    font-weight: 600;
}

.admin-page-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.25rem;
}

.admin-page-subtitle {
    font-size: 0.83rem;
    color: #94a3b8;
    margin-bottom: 0;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    border: none;
}

.admin-btn-primary {
    background: #0d9488;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.admin-btn-primary:hover {
    background: #14b8a6;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.4);
}

.admin-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.admin-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.admin-card-header {
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.015);
}

.admin-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
}

.admin-card-desc {
    font-size: 0.77rem;
    color: #94a3b8;
    margin-top: 0.2rem;
}

.admin-card-body {
    padding: 1.35rem;
}

.admin-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.admin-alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.alert-close-btn {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    opacity: 0.7;
}

.alert-close-btn:hover {
    opacity: 1;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-badge-neutral {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* Theme Mode Cards */
.theme-mode-card {
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: #0e1526;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
    position: relative;
}

.theme-mode-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.theme-mode-card.active {
    border-color: #14b8a6;
    background: rgba(20, 184, 166, 0.08);
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.15);
}

.theme-mode-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.theme-mode-icon-wrapper.white-preview {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.theme-mode-icon-wrapper.dark-preview {
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.25);
}

.theme-mode-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
}

.theme-mode-desc {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.2rem;
}

.theme-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    background: #0d9488;
    color: #ffffff;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    margin-top: 0.6rem;
    letter-spacing: 0.05em;
}

/* Color Swatches Grid */
.color-palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.75rem;
}

.color-swatch-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    background: #0e1526;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.color-swatch-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.color-swatch-card.selected {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.swatch-circle-container {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swatch-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.swatch-check {
    position: absolute;
    color: #ffffff;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8));
}

.swatch-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
}

.swatch-hex {
    font-size: 0.68rem;
    color: #94a3b8;
    font-family: var(--font-mono);
}

/* Simulated Kiosk Simulation Frame */
.simulated-kiosk-frame {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    min-height: 380px;
    transition: all 0.3s ease;
}

.simulated-kiosk-frame.sim-white {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

.simulated-kiosk-frame.sim-dark {
    background: #080d1a;
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.12);
}

.sim-ambient-aura {
    position: absolute;
    width: 300px;
    height: 150px;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.15;
    filter: blur(40px);
    pointer-events: none;
}

.sim-kiosk-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-logo-badge {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sim-brand-title {
    font-size: 0.78rem;
    font-weight: 700;
}

.sim-brand-subtitle {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.sim-status-pill {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.sim-status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
}

.sim-ai-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sim-ai-text {
    font-size: 0.75rem;
    font-weight: 600;
}

.sim-ai-sub {
    font-size: 0.65rem;
    color: #64748b;
}

.sim-doctor-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-doc-name {
    font-size: 0.8rem;
    font-weight: 700;
}

.sim-doc-spec {
    font-size: 0.7rem;
    font-weight: 600;
}

.sim-cabin-badge {
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    color: #94a3b8;
}

.sim-fee {
    font-size: 0.75rem;
    font-weight: 700;
}

.sim-primary-btn {
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.sim-secondary-btn {
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sim-white .sim-brand-title { color: #0f172a; }
.sim-white .sim-ai-bar { background: #ffffff; border-color: #e2e8f0; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.sim-white .sim-ai-text { color: #0f172a; }
.sim-white .sim-doctor-card { background: #ffffff; border-color: #e2e8f0; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.sim-white .sim-doc-name { color: #0f172a; }
.sim-white .sim-secondary-btn { background: #e2e8f0; color: #334155; }
.sim-white .sim-fee { color: #0f172a; }
.sim-white .sim-kiosk-header { border-bottom-color: #e2e8f0; }

.sim-dark .sim-brand-title { color: #ffffff; }
.sim-dark .sim-ai-bar { background: #0f172a; border-color: rgba(255, 255, 255, 0.1); }
.sim-dark .sim-ai-text { color: #f1f5f9; }
.sim-dark .sim-doctor-card { background: rgba(30, 41, 59, 0.7); border-color: rgba(255, 255, 255, 0.12); }
.sim-dark .sim-doc-name { color: #ffffff; }
.sim-dark .sim-secondary-btn { background: rgba(51, 65, 85, 0.8); color: #cbd5e1; }
.sim-dark .sim-fee { color: #ffffff; }
.sim-dark .sim-kiosk-header { border-bottom-color: rgba(255, 255, 255, 0.08); }

/* Stats & Data Tables */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-metric-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
}

.data-table-wrapper {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}

.custom-table th {
    background: #0f172a;
    padding: 0.85rem 1rem;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.custom-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

.custom-table tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

/* ============================================================================
   PROFESSIONAL UI REFRESH - PATIENT KIOSK + ADMIN CONSOLE
   ============================================================================ */

:root {
    --clinical-ink: #14213d;
    --clinical-muted: #65758b;
    --clinical-line: #d8e0ea;
    --clinical-panel: #ffffff;
    --clinical-soft: #f5f8fb;
    --clinical-action: #0f766e;
    --clinical-action-strong: #115e59;
    --clinical-info: #2563eb;
    --clinical-success: #15803d;
    --clinical-warning: #b45309;
}

#blazor-error-ui {
    display: none;
}

#blazor-error-ui.show,
#blazor-error-ui[style*="display: block"] {
    display: block;
}

.kiosk-shell {
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.22), rgba(37, 99, 235, 0.12) 42%, rgba(20, 33, 61, 0.02)),
        #eef5f8;
    color: var(--clinical-ink);
}

.kiosk-shell.theme-dark {
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.24), rgba(37, 99, 235, 0.14) 42%, rgba(7, 10, 19, 0.86)),
        #0b1220;
}

.kiosk-header,
.kiosk-footer {
    height: auto;
    min-height: 74px;
    padding: 0.85rem 1.5rem;
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(216, 224, 234, 0.9);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.kiosk-shell.theme-dark .kiosk-header,
.kiosk-shell.theme-dark .kiosk-footer {
    background: rgba(11, 18, 32, 0.88);
    border-color: rgba(148, 163, 184, 0.16);
}

.hospital-logo-badge {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--clinical-line);
    box-shadow: 0 8px 22px rgba(20, 33, 61, 0.08);
}

.kiosk-shell.theme-dark .hospital-logo-badge {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.hospital-title {
    color: var(--clinical-ink);
    font-size: 1.1rem;
    letter-spacing: 0;
}

.kiosk-shell.theme-dark .hospital-title {
    color: #f8fafc;
}

.hospital-subtitle {
    color: var(--clinical-action);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.kiosk-status-pill {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
    border-radius: 8px;
}

.kiosk-main {
    padding: 0.9rem 1.5rem;
    gap: 0.85rem;
}

.ai-acoustic-stage {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 0.35rem;
    padding: 0.9rem 1.05rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(216, 224, 234, 0.92);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(20, 33, 61, 0.10);
    backdrop-filter: blur(18px);
}

.kiosk-shell.theme-dark .ai-acoustic-stage {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.ai-acoustic-emitter {
    width: 64px;
    height: 64px;
}

.acoustic-wave-ring {
    display: none;
}

.ai-orb-core {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    background: #e6fffb;
    color: var(--clinical-action);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.18);
    animation: none;
}

.kiosk-shell.theme-dark .ai-orb-core {
    background: rgba(20, 184, 166, 0.14);
    color: #5eead4;
}

.orb-specular-glow,
.orb-spectrum-bars {
    display: none;
}

.ai-dialogue-cloud {
    gap: 0.45rem;
    min-width: 0;
}

.ai-presence-badge,
.ai-lang-pill {
    border-radius: 6px;
    letter-spacing: 0.02em;
    text-transform: none;
}

.ai-spoken-prompt {
    color: var(--clinical-ink);
    font-size: 1.16rem;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0;
}

.kiosk-shell.theme-dark .ai-spoken-prompt {
    color: #f8fafc;
}

.ai-interaction-hint,
.ai-user-transcript {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--clinical-muted);
    font-size: 0.88rem;
}

.ai-user-transcript {
    width: fit-content;
    max-width: 100%;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    background: #f1f5f9;
    color: #334155;
}

.kiosk-shell.theme-dark .ai-user-transcript {
    background: rgba(255, 255, 255, 0.07);
    color: #cbd5e1;
}

.kiosk-voice-action-btn {
    min-height: 58px;
    border-radius: 8px;
    padding: 0.9rem 1.15rem;
    background: var(--clinical-ink);
    color: #ffffff;
    box-shadow: none;
    white-space: nowrap;
}

.kiosk-voice-action-btn:hover {
    transform: translateY(-1px);
    background: #1f2f55;
}

.kiosk-voice-action-btn.listening-active {
    background: #b91c1c;
    animation: none;
}

.glass-card,
.language-card,
.doctor-item-card,
.stat-metric-card,
.data-table-wrapper,
.admin-card {
    border-radius: 8px !important;
}

.glass-card {
    background: rgba(255, 255, 255, 0.96);
    color: var(--clinical-ink);
    border: 1px solid rgba(216, 224, 234, 0.95);
    box-shadow: 0 18px 42px rgba(20, 33, 61, 0.10);
}

.glass-card:hover {
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: 0 22px 48px rgba(20, 33, 61, 0.12);
}

.kiosk-shell.theme-dark .glass-card {
    background: rgba(15, 23, 42, 0.94);
    border-color: rgba(148, 163, 184, 0.18);
}

.language-grid {
    max-width: 880px;
    gap: 1rem;
}

.language-card {
    min-height: 142px;
    padding: 1.35rem 1.1rem;
    background: #ffffff;
    border: 1px solid var(--clinical-line);
    box-shadow: 0 12px 30px rgba(20, 33, 61, 0.08);
}

.language-card:hover,
.doctor-item-card:hover {
    transform: translateY(-2px);
    border-color: var(--clinical-action);
    box-shadow: 0 18px 38px rgba(20, 33, 61, 0.13);
}

.lang-native,
.doctor-name {
    color: var(--clinical-ink);
    letter-spacing: 0;
}

.kiosk-shell.theme-dark .language-card,
.kiosk-shell.theme-dark .doctor-item-card {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.18);
}

.kiosk-shell.theme-dark .lang-native,
.kiosk-shell.theme-dark .doctor-name {
    color: #f8fafc;
}

.kiosk-btn {
    border-radius: 8px;
    min-height: 56px;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    letter-spacing: 0;
    box-shadow: none !important;
}

.btn-primary-teal,
.btn-teal,
.admin-btn-primary {
    background: var(--clinical-action) !important;
    border-color: var(--clinical-action) !important;
    color: #ffffff !important;
}

.btn-primary-teal:hover,
.btn-teal:hover,
.admin-btn-primary:hover {
    background: var(--clinical-action-strong) !important;
    border-color: var(--clinical-action-strong) !important;
}

.btn-secondary-dark {
    background: #ffffff;
    border: 1px solid var(--clinical-line);
    color: var(--clinical-ink);
}

.btn-secondary-dark:hover {
    background: #f1f5f9;
    border-color: #bcc8d7;
    color: var(--clinical-ink);
}

.kiosk-shell.theme-dark .btn-secondary-dark {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.16);
    color: #f8fafc;
}

.doctor-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
}

.doctor-item-card {
    background: #ffffff;
    border: 1px solid var(--clinical-line);
    padding: 1rem;
    box-shadow: 0 12px 26px rgba(20, 33, 61, 0.07);
}

.doctor-avatar-box {
    width: 76px;
    height: 76px;
    border-radius: 8px;
    border: 1px solid var(--clinical-line);
    background: #f8fafc;
}

.doctor-specialty,
.doctor-cabin-badge,
.text-teal-300,
.text-teal-400 {
    color: var(--clinical-action) !important;
}

.doctor-cabin-badge {
    background: #eff6ff;
    border-color: #bfdbfe;
    border-radius: 6px;
}

.camera-scanner-wrapper {
    border-radius: 8px;
    border: 2px solid rgba(15, 118, 110, 0.45);
    box-shadow: 0 16px 36px rgba(20, 33, 61, 0.18);
}

.kiosk-stage-container {
    min-height: 0;
    animation: none !important;
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.kiosk-main > .kiosk-stage-container {
    justify-content: flex-start !important;
    padding-top: 0.45rem !important;
    padding-bottom: 0.75rem !important;
}

.kiosk-stage-container .display-5 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.05;
}

.kiosk-stage-container .fs-5 {
    font-size: 1.05rem !important;
}

.kiosk-stage-container .mb-4 {
    margin-bottom: 0.9rem !important;
}

.form-control,
.form-select,
.input-group-text {
    border-radius: 8px !important;
}

.kiosk-shell .form-control.bg-dark,
.kiosk-shell .form-select.bg-dark {
    background: #ffffff !important;
    color: var(--clinical-ink) !important;
    border-color: var(--clinical-line) !important;
}

.kiosk-shell.theme-dark .form-control.bg-dark,
.kiosk-shell.theme-dark .form-select.bg-dark {
    background: rgba(2, 6, 23, 0.55) !important;
    color: #f8fafc !important;
    border-color: rgba(148, 163, 184, 0.26) !important;
}

.kiosk-shell .bg-dark,
.kiosk-shell .bg-slate-900,
.kiosk-shell .bg-slate-800 {
    background-color: #f8fafc !important;
    border-color: var(--clinical-line) !important;
}

.kiosk-shell.theme-dark .bg-dark,
.kiosk-shell.theme-dark .bg-slate-900,
.kiosk-shell.theme-dark .bg-slate-800 {
    background-color: rgba(2, 6, 23, 0.46) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
}

.kiosk-shell .text-white {
    color: var(--clinical-ink) !important;
}

.kiosk-shell.theme-dark .text-white {
    color: #f8fafc !important;
}

.kiosk-shell .text-secondary,
.kiosk-shell .text-slate-300,
.kiosk-shell .text-slate-400 {
    color: var(--clinical-muted) !important;
}

.kiosk-shell.theme-dark .text-secondary,
.kiosk-shell.theme-dark .text-slate-300,
.kiosk-shell.theme-dark .text-slate-400 {
    color: #cbd5e1 !important;
}

.receipt-paper-container {
    border-radius: 8px;
    border-top: 5px solid var(--clinical-action);
    box-shadow: 0 18px 42px rgba(20, 33, 61, 0.16);
}

/* ============================================================================
   ENTERPRISE CLINICAL ADMIN DESIGN SYSTEM & THEMES
   ============================================================================ */

/* Light Mode: Clean Clinical Enterprise UI */
.admin-shell,
.admin-shell.theme-light {
    --adm-bg: #f4f5f7;
    --adm-sidebar: #ffffff;
    --adm-topbar: #ffffff;
    --adm-card-bg: #ffffff;
    --adm-border: #dfe1e6;
    --adm-border-subtle: #ebecf0;
    --adm-text-main: #091e42;
    --adm-text-sub: #5e6c84;
    --adm-text-muted: #8993a4;
    --adm-surface-alt: #fafbfc;
    --adm-row-hover: #f4f5f7;
    --adm-primary: #0052cc;
    --adm-primary-hover: #0747a6;
    --adm-teal: #00875a;
    --adm-teal-bg: #e3fcef;
    --adm-blue-bg: #deebff;
    --adm-amber-bg: #fff0b3;
    --adm-purple-bg: #eae6ff;
    --adm-shadow: 0 1px 3px rgba(9, 30, 66, 0.08), 0 0 1px rgba(9, 30, 66, 0.31);
    --adm-shadow-hover: 0 4px 12px rgba(9, 30, 66, 0.12);
    --adm-input-bg: #ffffff;
    background-color: var(--adm-bg);
    color: var(--adm-text-main);
}

/* Dark Mode: Modern Sleek Slate UI */
.admin-shell.theme-dark {
    --adm-bg: #0b0f19;
    --adm-sidebar: #0f172a;
    --adm-topbar: #0f172a;
    --adm-card-bg: #1e293b;
    --adm-border: #334155;
    --adm-border-subtle: rgba(255, 255, 255, 0.08);
    --adm-text-main: #f8fafc;
    --adm-text-sub: #94a3b8;
    --adm-text-muted: #64748b;
    --adm-surface-alt: #162032;
    --adm-row-hover: #26354a;
    --adm-primary: #0d9488;
    --adm-primary-hover: #14b8a6;
    --adm-teal: #14b8a6;
    --adm-teal-bg: rgba(20, 184, 166, 0.15);
    --adm-blue-bg: rgba(59, 130, 246, 0.15);
    --adm-amber-bg: rgba(245, 158, 11, 0.15);
    --adm-purple-bg: rgba(168, 85, 247, 0.15);
    --adm-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    --adm-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.35);
    --adm-input-bg: #0f172a;
    background-color: var(--adm-bg);
    color: var(--adm-text-main);
}

.admin-sidebar {
    background: var(--adm-sidebar) !important;
    border-right: 1px solid var(--adm-border) !important;
}

.admin-brand-header {
    border-bottom: 1px solid var(--adm-border-subtle) !important;
}

.admin-brand-title {
    color: var(--adm-text-main) !important;
}

.admin-brand-badge {
    color: var(--adm-primary) !important;
}

.admin-nav-section-title {
    color: var(--adm-text-muted) !important;
}

.admin-nav-link {
    color: var(--adm-text-sub) !important;
}

.admin-nav-link:hover {
    background: var(--adm-surface-alt) !important;
    color: var(--adm-text-main) !important;
}

.admin-nav-link.active {
    background: var(--adm-blue-bg) !important;
    color: var(--adm-primary) !important;
    font-weight: 600 !important;
}

.admin-sidebar-footer {
    border-top: 1px solid var(--adm-border-subtle) !important;
}

.admin-content-shell {
    background: var(--adm-bg) !important;
}

.admin-topbar {
    background: var(--adm-topbar) !important;
    border-bottom: 1px solid var(--adm-border) !important;
}

.admin-search-wrapper {
    background: var(--adm-surface-alt) !important;
    border: 1px solid var(--adm-border) !important;
}

.admin-search-input {
    color: var(--adm-text-main) !important;
}

.admin-name {
    color: var(--adm-text-main) !important;
}

.admin-role {
    color: var(--adm-text-muted) !important;
}

.topbar-icon-btn {
    background: var(--adm-surface-alt) !important;
    border: 1px solid var(--adm-border) !important;
    color: var(--adm-text-sub) !important;
}

.topbar-icon-btn:hover {
    background: var(--adm-row-hover) !important;
    color: var(--adm-text-main) !important;
}

.admin-system-health-pill {
    background: var(--adm-teal-bg) !important;
    border: 1px solid var(--adm-teal) !important;
    color: var(--adm-teal) !important;
}

/* Clinical Cards & Containers */
.portal-card,
.admin-card,
.glass-card,
.data-table-wrapper {
    background: var(--adm-card-bg) !important;
    border: 1px solid var(--adm-border) !important;
    box-shadow: var(--adm-shadow) !important;
    border-radius: 8px !important;
    color: var(--adm-text-main) !important;
}

.portal-title {
    color: var(--adm-text-main) !important;
    font-weight: 700;
}

.portal-sub {
    color: var(--adm-text-sub) !important;
}

/* Metric KPI Card */
.portal-metric-card {
    background: var(--adm-card-bg);
    border: 1px solid var(--adm-border);
    box-shadow: var(--adm-shadow);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    transition: all 0.15s ease;
}

.portal-metric-card:hover {
    box-shadow: var(--adm-shadow-hover);
    transform: translateY(-1px);
}

.portal-metric-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--adm-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.portal-metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--adm-text-main);
    line-height: 1.2;
}

/* Clinical Buttons */
.btn-portal-primary {
    background: var(--adm-primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--adm-primary) !important;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.42rem 0.95rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.btn-portal-primary:hover {
    background: var(--adm-primary-hover) !important;
    border-color: var(--adm-primary-hover) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 82, 204, 0.25);
}

.btn-portal-secondary {
    background: var(--adm-surface-alt) !important;
    color: var(--adm-text-main) !important;
    border: 1px solid var(--adm-border) !important;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.42rem 0.95rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.btn-portal-secondary:hover {
    background: var(--adm-row-hover) !important;
    border-color: var(--adm-text-sub) !important;
    color: var(--adm-text-main) !important;
}

/* Filter Chips (No scrollbar!) */
.portal-filter-chip {
    background: var(--adm-surface-alt);
    border: 1px solid var(--adm-border);
    color: var(--adm-text-sub);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35rem 0.85rem;
    transition: all 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
}

.portal-filter-chip:hover {
    background: var(--adm-row-hover);
    color: var(--adm-text-main);
    border-color: var(--adm-text-sub);
}

.portal-filter-chip.active {
    background: var(--adm-primary);
    border-color: var(--adm-primary);
    color: #ffffff;
    font-weight: 600;
}

/* Doctor Card Styles */
.doc-avatar-initials {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    position: relative;
    flex-shrink: 0;
}

.doc-avatar-initials-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    color: #ffffff;
    flex-shrink: 0;
}

.doc-online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 11px;
    height: 11px;
    background: #36b37e;
    border: 2px solid var(--adm-card-bg);
    border-radius: 50%;
}

.doc-meta-box {
    background: var(--adm-surface-alt);
    border: 1px solid var(--adm-border-subtle);
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.doc-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--adm-border-subtle);
    font-size: 0.82rem;
}

.doc-meta-row:last-child {
    border-bottom: none;
}

.doc-meta-label {
    color: var(--adm-text-sub);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-meta-val {
    font-weight: 600;
    color: var(--adm-text-main);
}

/* Clinical Table */
.portal-table {
    width: 100%;
    border-collapse: collapse;
}

.portal-table th {
    background: var(--adm-surface-alt) !important;
    color: var(--adm-text-sub) !important;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--adm-border) !important;
    text-align: left;
}

.portal-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--adm-border-subtle) !important;
    color: var(--adm-text-main) !important;
    font-size: 0.85rem;
    vertical-align: middle;
}

.portal-table tr:hover td {
    background: var(--adm-row-hover) !important;
}

.theme-mode-card,
.color-swatch-card {
    background: var(--adm-card-bg);
    border-color: var(--adm-border);
    border-radius: 8px;
}

.theme-mode-card.active,
.color-swatch-card.selected {
    border-color: var(--adm-primary);
    background: var(--adm-blue-bg);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12);
}

.theme-mode-name,
.swatch-name,
.sim-white .sim-brand-title,
.sim-doc-name {
    color: var(--adm-text-main);
}

@media (max-width: 1024px) {
    .kiosk-header,
    .kiosk-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .ai-acoustic-stage {
        grid-template-columns: auto 1fr;
    }

    .kiosk-voice-action-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .doctor-cards-grid {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        width: 230px;
        min-width: 230px;
    }

    .admin-search-wrapper {
        width: 260px;
    }
}

@media (max-width: 760px) {
    .kiosk-main {
        padding: 0.85rem;
    }

    .ai-acoustic-stage {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .ai-acoustic-emitter {
        display: none;
    }

    .ai-spoken-prompt {
        font-size: 1.05rem;
    }

    .admin-shell {
        display: block;
        overflow: auto;
    }

    .admin-sidebar {
        width: 100%;
        min-width: 0;
    }

    .admin-content-shell {
        overflow: visible;
    }

    .admin-topbar {
        flex-direction: column;
        height: auto;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.85rem;
    }

    .admin-search-wrapper {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .language-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
}

/* ============================================================================
   VIDEO 1 REFERENCE: SCREEN-WIDE BOTTOM-TO-TOP ANGLED SPEAR PULSE ANIMATION
   ============================================================================ */

.kiosk-spear-pulse-track {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1500;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.kiosk-spear-pulse-track.active {
    opacity: 1;
    visibility: visible;
}

.kiosk-spear-ambient-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45vh;
    background: radial-gradient(ellipse at 50% 100%, rgba(20, 184, 166, 0.22), rgba(56, 189, 248, 0.12) 40%, transparent 75%);
    opacity: 0;
    pointer-events: none;
}

.kiosk-spear-pulse-track.active .kiosk-spear-ambient-wave {
    animation: spearWaveWash 480ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes spearWaveWash {
    0% {
        transform: translateY(60px) scaleX(0.8);
        opacity: 0;
    }
    30% {
        opacity: 0.85;
    }
    100% {
        transform: translateY(-55vh) scaleX(1.4);
        opacity: 0;
    }
}

.kiosk-spear-projectile {
    position: absolute;
    top: 0;
    left: 50%;
    width: 24px;
    height: 320px;
    margin-left: -12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: center bottom;
    opacity: 0;
}

.kiosk-spear-pulse-track.active .kiosk-spear-projectile {
    animation: spearAscendAngle 520ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Angled trajectory ascending from bottom towards the top AI orb */
@keyframes spearAscendAngle {
    0% {
        transform: translate3d(var(--spear-offset-x, 15vw), 105vh, 0) rotate(var(--spear-angle, -15deg)) scaleY(0.35) scaleX(0.7);
        opacity: 0;
    }
    15% {
        opacity: 1;
        transform: translate3d(var(--spear-offset-x, 10vw), 75vh, 0) rotate(var(--spear-angle, -14deg)) scaleY(1.2) scaleX(1);
    }
    55% {
        opacity: 1;
        transform: translate3d(calc(var(--spear-offset-x, 10vw) * 0.3), 32vh, 0) rotate(var(--spear-angle, -9deg)) scaleY(1.1) scaleX(1.1);
        filter: drop-shadow(0 0 18px #38bdf8) drop-shadow(0 0 35px #14b8a6);
    }
    88% {
        opacity: 1;
        transform: translate3d(0, 115px, 0) rotate(-2deg) scale(1.35);
        filter: drop-shadow(0 0 28px #ffffff) drop-shadow(0 0 60px #06b6d4);
    }
    100% {
        transform: translate3d(0, 75px, 0) rotate(0deg) scale(0.25);
        opacity: 0;
    }
}

/* Sharp Luminous Spear Head */
.kiosk-spear-head {
    width: 18px;
    height: 38px;
    background: linear-gradient(180deg, #ffffff 0%, #38bdf8 50%, #0d9488 100%);
    clip-path: polygon(50% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    box-shadow: 0 0 15px #ffffff, 0 0 35px #06b6d4, 0 0 65px #14b8a6;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.kiosk-spear-head::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    filter: blur(1px);
}

/* Luminous Angled Spear Shaft Beam */
.kiosk-spear-shaft {
    width: 5px;
    flex: 1;
    background: linear-gradient(180deg, #ffffff 0%, rgba(56, 189, 248, 0.95) 25%, rgba(20, 184, 166, 0.8) 60%, transparent 100%);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.8), 0 0 24px rgba(20, 184, 166, 0.5);
    border-radius: 4px;
    position: relative;
}

.kiosk-spear-energy-core {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 70%;
    background: #ffffff;
    box-shadow: 0 0 8px #ffffff;
}

/* Trailing spark rings */
.kiosk-spear-trail-rings {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(56, 189, 248, 0.6);
    opacity: 0.7;
    animation: spearRingPulse 0.4s ease-out infinite;
}

@keyframes spearRingPulse {
    0% { transform: translateX(-50%) scale(0.3); opacity: 0.9; }
    100% { transform: translateX(-50%) scale(1.6); opacity: 0; }
}

/* ============================================================================
   VIDEO 2 REFERENCE: CSS VOICE EQUALIZE EFFECT AT THE BOTTOM OF KIOSK
   (Static glowing horizon line by default, blooms into continuous chromatic waves when speaking)
   ============================================================================ */

.kiosk-bottom-equalizer {
    position: relative;
    width: 100%;
    height: 8px;
    overflow: visible;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 100;
}

.kiosk-bottom-equalizer.is-speaking {
    height: 58px;
    padding-top: 6px;
    padding-bottom: 6px;
}

/* Default / Idle: Sleek Razor-Thin Glowing Neon Horizon Line */
.eq-static-horizon {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.eq-horizon-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(6, 182, 212, 0.2) 10%, 
        rgba(20, 184, 166, 0.85) 30%, 
        rgba(56, 189, 248, 0.95) 50%, 
        rgba(20, 184, 166, 0.85) 70%, 
        rgba(6, 182, 212, 0.2) 90%, 
        transparent 100%);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6), 0 0 20px rgba(20, 184, 166, 0.35);
}

.eq-horizon-glow {
    width: 60%;
    height: 8px;
    background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.35), rgba(20, 184, 166, 0.15) 50%, transparent 80%);
    filter: blur(4px);
    margin-top: 1px;
}

.kiosk-bottom-equalizer.is-speaking .eq-static-horizon {
    opacity: 0.25;
}

/* Speaking State: Fluid Multi-Layer Chromatic Sine Equalizer */
.eq-speaking-bloom {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    transform: scaleY(0.2);
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    overflow: hidden;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kiosk-bottom-equalizer.is-speaking .eq-speaking-bloom {
    opacity: 1;
    visibility: visible;
    transform: scaleY(1);
}

/* Individual Sine Wave Layer Tracks */
.eq-wave-layer {
    position: absolute;
    width: 200%;
    left: -50%;
    height: 100%;
    display: flex;
    align-items: center;
}

.eq-svg-wave {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.eq-path {
    fill: none;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

/* Layer 1: Aqua / Cyan Sine Ribbon */
.eq-path-cyan {
    stroke: url(#eqGradientCyan);
    stroke-width: 2.8;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.9)) drop-shadow(0 0 16px rgba(20, 184, 166, 0.5));
}

.wave-layer-cyan {
    animation: eqScrollCyan 3.2s linear infinite;
}

@keyframes eqScrollCyan {
    0% { transform: translateX(0) scaleY(1); }
    50% { transform: translateX(-15%) scaleY(1.35); }
    100% { transform: translateX(-30%) scaleY(1); }
}

/* Layer 2: Electric Violet / Magenta Ribbon */
.eq-path-violet {
    stroke: url(#eqGradientViolet);
    stroke-width: 2.4;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.85)) drop-shadow(0 0 20px rgba(236, 72, 153, 0.4));
}

.wave-layer-violet {
    animation: eqScrollViolet 4.4s linear infinite reverse;
}

@keyframes eqScrollViolet {
    0% { transform: translateX(0) scaleY(0.9); }
    50% { transform: translateX(18%) scaleY(1.4); }
    100% { transform: translateX(36%) scaleY(0.9); }
}

/* Layer 3: Warm Amber / Coral Wave */
.eq-path-amber {
    stroke: url(#eqGradientAmber);
    stroke-width: 2;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.8));
}

.wave-layer-amber {
    animation: eqScrollAmber 5.2s linear infinite;
}

@keyframes eqScrollAmber {
    0% { transform: translateX(-10%) scaleY(1.1); }
    50% { transform: translateX(10%) scaleY(0.85); }
    100% { transform: translateX(-10%) scaleY(1.1); }
}

/* Layer 4: Intense Specular White Epicenter Core */
.eq-path-core {
    stroke: #ffffff;
    stroke-width: 2.2;
    filter: drop-shadow(0 0 5px #ffffff) drop-shadow(0 0 12px #38bdf8);
}

.wave-layer-core {
    animation: eqScrollCore 2.4s ease-in-out infinite alternate;
}

@keyframes eqScrollCore {
    0% { transform: translateX(-4%) scaleY(0.85); }
    100% { transform: translateX(4%) scaleY(1.25); }
}

/* Mirrored Floor Reflection below waves */
.eq-reflection-glow {
    position: absolute;
    bottom: -8px;
    left: 10%;
    right: 10%;
    height: 18px;
    background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.4), rgba(168, 85, 247, 0.25) 45%, transparent 75%);
    filter: blur(6px);
    opacity: 0.6;
    animation: eqReflectionBreath 1.8s ease-in-out infinite alternate;
}

@keyframes eqReflectionBreath {
    0% { opacity: 0.35; transform: scaleX(0.85); }
    100% { opacity: 0.75; transform: scaleX(1.1); }
}

/* ============================================================================
   PORTRAIT MODE FOR KIOSK (Totem Display / 9:16 Vertical Orientation)
   ============================================================================ */

/* Interactive or Responsive Portrait Mode */
.kiosk-shell.kiosk-portrait {
    display: flex;
    justify-content: center;
    align-items: stretch;
    min-height: 100vh;
    background: #050811;
    padding: 0;
}

.kiosk-shell.kiosk-portrait .kiosk-totem-chassis {
    width: 100%;
    max-width: 680px;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.22), rgba(37, 99, 235, 0.12) 42%, rgba(20, 33, 61, 0.02)),
        #eef5f8;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.65), 0 0 0 2px rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.kiosk-shell.kiosk-portrait.theme-dark .kiosk-totem-chassis {
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.24), rgba(37, 99, 235, 0.14) 42%, rgba(7, 10, 19, 0.86)),
        #0b1220;
    box-shadow: 0 0 90px rgba(0, 0, 0, 0.95), 0 0 0 2px rgba(148, 163, 184, 0.18);
}

/* Portrait Header */
.kiosk-shell.kiosk-portrait .kiosk-header {
    padding: 0.75rem 1rem;
    min-height: 64px;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.kiosk-shell.kiosk-portrait .hospital-title {
    font-size: 0.98rem;
}

.kiosk-shell.kiosk-portrait .hospital-logo-badge {
    width: 42px;
    height: 42px;
}

/* Portrait AI Stage */
.kiosk-shell.kiosk-portrait .ai-acoustic-stage {
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
}

.kiosk-shell.kiosk-portrait .kiosk-voice-action-btn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 50px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
}

.kiosk-shell.kiosk-portrait .ai-spoken-prompt {
    font-size: 1.05rem;
    line-height: 1.3;
}

/* Portrait Content Stage */
.kiosk-shell.kiosk-portrait .kiosk-main {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    overflow-y: auto;
}

.kiosk-shell.kiosk-portrait .language-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 100%;
}

.kiosk-shell.kiosk-portrait .doctor-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.kiosk-shell.kiosk-portrait .kiosk-footer {
    padding: 0.65rem 1rem;
    min-height: 56px;
    font-size: 0.8rem;
}

/* Native @media orientation: portrait automatic adoption */
@media (orientation: portrait) and (max-width: 900px) {
    .kiosk-shell {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }
    
    .kiosk-shell.kiosk-portrait .kiosk-totem-chassis {
        max-width: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    .language-grid {
        grid-template-columns: 1fr;
    }
    
    .doctor-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-acoustic-stage {
        grid-template-columns: auto 1fr;
    }
    
    .kiosk-voice-action-btn {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* ============================================================================
   SEHHA AI ASSISTANT FEATURES: QUICK ACTION CHIPS & WAYFINDING DIRECTORY
   ============================================================================ */

.sehha-quick-section {
    width: 100%;
    max-width: 860px;
    margin-top: 1.25rem;
    text-align: center;
}

.sehha-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--clinical-action);
    margin-bottom: 0.75rem;
}

.sehha-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.sehha-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    background: #ffffff;
    border: 1px solid var(--clinical-line);
    border-radius: 30px;
    color: var(--clinical-ink);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 4px 12px rgba(20, 33, 61, 0.05);
}

.sehha-chip:hover {
    background: #ffffff;
    border-color: var(--clinical-action);
    color: var(--clinical-action);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(20, 184, 166, 0.16);
}

.sehha-chip.active-chip {
    background: var(--clinical-action);
    border-color: var(--clinical-action);
    color: #ffffff;
}

.sehha-chip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clinical-action);
}

.sehha-chip:hover .sehha-chip-icon {
    color: var(--clinical-action);
}

.sehha-chip.active-chip .sehha-chip-icon {
    color: #ffffff;
}

.kiosk-shell.theme-dark .sehha-chip {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.2);
    color: #f1f5f9;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.kiosk-shell.theme-dark .sehha-chip:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: #14b8a6;
    color: #5eead4;
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.25);
}

.kiosk-shell.theme-dark .sehha-chip-icon {
    color: #5eead4;
}

/* Sehha Wayfinding Directory Modal */
.wayfinding-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 18, 32, 0.78);
    backdrop-filter: blur(12px);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.wayfinding-modal-card {
    background: #ffffff;
    border-radius: 14px;
    max-width: 900px;
    width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(216, 224, 234, 0.95);
    overflow: hidden;
}

.kiosk-shell.theme-dark .wayfinding-modal-card {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.2);
    color: #f8fafc;
}

.wayfinding-modal-header {
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid var(--clinical-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kiosk-shell.theme-dark .wayfinding-modal-header {
    border-bottom-color: rgba(148, 163, 184, 0.16);
}

.wayfinding-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--clinical-ink);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.kiosk-shell.theme-dark .wayfinding-modal-title {
    color: #f8fafc;
}

.wayfinding-floor-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--clinical-line);
    overflow-x: auto;
}

.kiosk-shell.theme-dark .wayfinding-floor-tabs {
    background: rgba(2, 6, 23, 0.5);
    border-bottom-color: rgba(148, 163, 184, 0.16);
}

.floor-tab-btn {
    padding: 0.45rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--clinical-line);
    background: #ffffff;
    color: var(--clinical-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.floor-tab-btn:hover {
    color: var(--clinical-ink);
    border-color: var(--clinical-muted);
}

.floor-tab-btn.active {
    background: var(--clinical-action);
    border-color: var(--clinical-action);
    color: #ffffff;
}

.kiosk-shell.theme-dark .floor-tab-btn {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

.kiosk-shell.theme-dark .floor-tab-btn.active {
    background: #0d9488;
    border-color: #0d9488;
    color: #ffffff;
}

.wayfinding-list-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1rem;
}

.wayfinding-dept-card {
    background: #ffffff;
    border: 1px solid var(--clinical-line);
    border-radius: 10px;
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.15s ease;
}

.wayfinding-dept-card:hover {
    border-color: var(--clinical-action);
    box-shadow: 0 8px 22px rgba(20, 33, 61, 0.08);
}

.kiosk-shell.theme-dark .wayfinding-dept-card {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(148, 163, 184, 0.16);
}

.kiosk-shell.theme-dark .wayfinding-dept-card:hover {
    border-color: #14b8a6;
    background: rgba(30, 41, 59, 0.9);
}

.dept-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--clinical-ink);
}

.kiosk-shell.theme-dark .dept-name {
    color: #f8fafc;
}

.dept-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.kiosk-shell.theme-dark .dept-badge {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.dept-location {
    font-size: 0.8rem;
    color: var(--clinical-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dept-direction {
    font-size: 0.8rem;
    color: var(--clinical-action);
    font-weight: 500;
    background: #f0fdfa;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
    border-left: 3px solid var(--clinical-action);
}

.kiosk-shell.theme-dark .dept-direction {
    background: rgba(20, 184, 166, 0.12);
    color: #5eead4;
}

/* Kiosk Doctor Department Filter Chips */
.kiosk-filter-chip {
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--clinical-line);
    background: #ffffff;
    color: var(--clinical-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
}

.kiosk-filter-chip:hover {
    color: var(--clinical-ink);
    border-color: var(--clinical-action);
}

.kiosk-filter-chip.active {
    background: var(--clinical-action) !important;
    border-color: var(--clinical-action) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
}

.kiosk-shell.theme-dark .kiosk-filter-chip {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

.kiosk-shell.theme-dark .kiosk-filter-chip:hover {
    color: #f8fafc;
    border-color: #14b8a6;
}

.kiosk-shell.theme-dark .kiosk-filter-chip.active {
    background: #0d9488 !important;
    border-color: #0d9488 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
}



/* Admin light theme: headings were hard-coded white (invisible on light cards) */
.admin-shell.theme-light .admin-page-title,
.admin-shell.theme-light .admin-card-title,
.admin-shell.theme-light .admin-name,
.admin-shell.theme-light .admin-main-viewport .text-white {
    color: #0f172a !important;
}
.admin-shell.theme-light .admin-breadcrumbs .breadcrumb-current { color: #334155; }
