/* Base and Theme variables */
:root {
    --bg-primary: #0d1017;
    --bg-secondary: rgba(22, 28, 38, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    
    /* ADHD-tailored clinical palette */
    --accent-sage: #66bb6a; /* Calming sage green */
    --accent-sage-glow: rgba(102, 187, 106, 0.15);
    --accent-blue: #4fc3f7; /* High-performance electric/calming blue */
    --accent-blue-glow: rgba(79, 195, 247, 0.15);
    --accent-purple: #ab47bc; /* Philosophy, deep values */
    --accent-purple-glow: rgba(171, 71, 188, 0.15);
    --accent-gold: #ffb74d; /* Motivation, INCUP */
    --accent-gold-glow: rgba(255, 183, 77, 0.15);
    
    --card-bg: rgba(22, 28, 40, 0.45);
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Background Gradients */
.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(33, 150, 243, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(76, 175, 80, 0.06) 0%, transparent 45%),
                radial-gradient(circle at 50% 50%, rgba(103, 58, 183, 0.04) 0%, transparent 50%);
    background-size: cover;
}

/* Main Header */
.main-header {
    height: 70px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(13, 16, 23, 0.8);
    backdrop-filter: blur(12px);
    z-index: 10;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.glow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent-sage);
    box-shadow: 0 0 12px var(--accent-sage);
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 16px var(--accent-sage); }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.logo-area h1 {
    font-family: var(--font-header);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 99px;
    background-color: rgba(79, 195, 247, 0.12);
    color: var(--accent-blue);
    border: 1px solid rgba(79, 195, 247, 0.2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.btn {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #0d1017;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.3);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-icon {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 8px;
}

.btn-icon:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.w-100 {
    width: 100%;
    justify-content: center;
}

/* Indicators */
.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.indicator.red {
    background-color: #ef5350;
    box-shadow: 0 0 8px #ef5350;
}

.indicator.green {
    background-color: var(--accent-sage);
    box-shadow: 0 0 8px var(--accent-sage);
}

/* App Layout */
.app-layout {
    display: flex;
    flex: 1;
    height: calc(100vh - 70px);
    overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: 320px;
    border-right: 1px solid var(--border-color);
    background-color: rgba(13, 16, 23, 0.45);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    gap: 20px;
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.sidebar-header h2 {
    font-family: var(--font-header);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #ffffff;
}

.sidebar-header p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Mode Switchers */
.council-modes {
    margin-bottom: 8px;
}

.mode-btn {
    width: 100%;
    text-align: left;
    background-color: rgba(79, 195, 247, 0.06);
    color: var(--accent-blue);
    border: 1px solid rgba(79, 195, 247, 0.15);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.mode-btn:hover {
    background-color: rgba(79, 195, 247, 0.12);
}

/* Experts List */
.experts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.expert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.expert-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.05);
}

.expert-item.active {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--active-border-color, var(--accent-blue));
}

.expert-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-header);
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--avatar-bg, #334155);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.expert-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.expert-name {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.expert-role {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hardware Baseline Card */
.device-specs-card {
    background-color: rgba(22, 28, 40, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.device-specs-card h3 {
    font-family: var(--font-header);
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.spec-line {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.spec-line .label {
    color: var(--text-secondary);
}

.spec-line .val {
    color: #ffffff;
    font-weight: 500;
}

.spec-progress-bar {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.spec-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-sage) 100%);
    box-shadow: 0 0 6px rgba(79, 195, 247, 0.4);
}

.spec-status {
    font-size: 10px;
    color: var(--accent-sage);
    text-align: center;
    font-weight: 500;
}

/* Chat Main Layout */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: rgba(13, 16, 23, 0.2);
    border-right: 1px solid var(--border-color);
}

.chat-header {
    height: 70px;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(13, 16, 23, 0.25);
    backdrop-filter: blur(8px);
}

.active-mode-info h3 {
    font-family: var(--font-header);
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.active-mode-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.active-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
    background-color: var(--accent-sage-glow);
    color: var(--accent-sage);
    border: 1px solid rgba(102, 187, 106, 0.20);
}

/* Message Area Scrollports */
.messages-viewport {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.messages-viewport::-webkit-scrollbar {
    width: 6px;
}

.messages-viewport::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

/* Chat Bubble UI */
.message-bubble {
    display: flex;
    gap: 14px;
    max-width: 85%;
    align-self: flex-start;
    animation: fadeInBubble 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInBubble {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-bubble.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-header);
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--avatar-bg, #475569);
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.message-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    border-top-left-radius: 2px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-bubble.user .message-content {
    background-color: rgba(79, 195, 247, 0.08);
    border-color: rgba(79, 195, 247, 0.15);
    border-top-left-radius: 14px;
    border-top-right-radius: 2px;
}

.message-sender {
    font-family: var(--font-header);
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-sender .role-tag {
    font-size: 10px;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.message-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-primary);
}

.message-text p {
    margin-bottom: 8px;
}

.message-text p:last-child {
    margin-bottom: 0;
}

.message-text ul, .message-text ol {
    padding-left: 20px;
    margin-bottom: 8px;
}

.message-text li {
    margin-bottom: 4px;
}

.message-text code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    background-color: rgba(0, 0, 0, 0.25);
    padding: 2px 5px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Typing Indicator */
.typing-indicator-wrapper {
    padding: 0 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-mini-avatar {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background-color: var(--accent-sage);
    font-size: 9px;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typing-indicator-bubble {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.typing-name {
    font-weight: 500;
    color: #ffffff;
}

.dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--text-secondary);
    display: inline-block;
    animation: bounceDot 1.4s infinite ease-in-out both;
}

.dots span:nth-child(1) { animation-delay: -0.32s; }
.dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounceDot {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* Input Area Panel */
.interactive-input-panel {
    border-top: 1px solid var(--border-color);
    background-color: rgba(13, 16, 23, 0.6);
    backdrop-filter: blur(12px);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Option selections (for guided paths) */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: slideUpOptions 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUpOptions {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.option-card {
    background-color: rgba(22, 28, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.2s ease;
}

.option-card:hover {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: var(--option-hover-border, var(--accent-blue));
    transform: translateY(-1px);
}

.option-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.option-card:hover .option-radio {
    border-color: var(--option-hover-border, var(--accent-blue));
}

.option-card.selected .option-radio {
    border-color: var(--option-hover-border, var(--accent-blue));
    background-color: transparent;
}

.option-card.selected .option-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--option-hover-border, var(--accent-blue));
}

.option-text h4 {
    font-family: var(--font-header);
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.option-text p {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Form & Textarea styles */
.chat-form {
    width: 100%;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 6px 12px;
    transition: all 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: rgba(79, 195, 247, 0.3);
    box-shadow: 0 0 12px rgba(79, 195, 247, 0.08);
}

.input-wrapper textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13.5px;
    padding: 8px 0;
    resize: none;
    max-height: 120px;
}

.input-wrapper textarea::placeholder {
    color: var(--text-secondary);
}

.send-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.send-btn:hover {
    color: var(--accent-blue);
    background-color: rgba(79, 195, 247, 0.06);
}

/* Right Spec Panel */
.spec-panel {
    width: 380px;
    border-left: 1px solid var(--border-color);
    background-color: rgba(13, 16, 23, 0.45);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    overflow-y: auto;
}

.panel-header h2 {
    font-family: var(--font-header);
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.panel-header p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Tabs */
.spec-tabs {
    display: flex;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: 8px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background-color: var(--bg-secondary);
    color: var(--accent-blue);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Spec Groups */
.spec-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.spec-group h4 {
    font-family: var(--font-header);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-item {
    background-color: rgba(22, 28, 40, 0.35);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.spec-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spec-item h5 {
    font-family: var(--font-header);
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
}

.spec-status-tag {
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.spec-status-tag.pending {
    background-color: rgba(255, 183, 77, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(255, 183, 77, 0.15);
}

.spec-status-tag.active {
    background-color: rgba(102, 187, 106, 0.1);
    color: var(--accent-sage);
    border: 1px solid rgba(102, 187, 106, 0.15);
}

.spec-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Plan Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-left: 12px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background-color: var(--border-color);
    z-index: 0;
}

.timeline-step {
    display: flex;
    gap: 16px;
    z-index: 1;
}

.step-marker {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 2px solid var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-header);
    font-size: 9px;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.step-marker.active {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: 0 0 6px var(--accent-blue-glow);
}

.step-marker.completed {
    border-color: var(--accent-sage);
    background-color: var(--accent-sage);
    color: #0d1017;
}

.step-details h6 {
    font-family: var(--font-header);
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.step-details p {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Toast styling */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: rgba(22, 28, 40, 0.95);
    border: 1px solid var(--accent-sage);
    border-radius: 8px;
    padding: 12px 20px;
    box-shadow: var(--shadow-premium);
    z-index: 100;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast span {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-sage);
}

/* Mobile responsive scaling */
@media (max-width: 1024px) {
    .app-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        max-height: 250px;
    }
    .spec-panel {
        width: 100%;
        height: auto;
        max-height: 300px;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
}

/* Premium Text-To-Speech Play Button Styles */
.tts-play-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    padding: 3px 10px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tts-play-btn:hover {
    background: rgba(79, 195, 247, 0.12);
    border-color: rgba(79, 195, 247, 0.25);
    color: var(--accent-blue);
    transform: translateY(-0.5px);
}

.tts-play-btn.playing {
    background: rgba(102, 187, 106, 0.15);
    border-color: rgba(102, 187, 106, 0.35);
    color: var(--accent-sage);
    animation: ttsPulseSage 1.5s infinite;
}

.tts-play-btn svg {
    flex-shrink: 0;
}

@keyframes ttsPulseSage {
    0% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); box-shadow: 0 0 8px rgba(102, 187, 106, 0.15); }
    100% { opacity: 0.85; transform: scale(1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Premium Glassmorphic Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
}

.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.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

input:checked + .slider {
    background-color: var(--accent-blue);
    border-color: rgba(96, 165, 250, 0.3);
}

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

/* Hand Raised Indicators and Sidebar Badges */
.expert-item.hand-raised {
    border-color: rgba(245, 158, 11, 0.25) !important;
    background-color: rgba(245, 158, 11, 0.02) !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.04);
}

.hand-raise-badge {
    display: none;
    align-items: center;
    gap: 4px;
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.65rem;
    margin-left: auto;
    font-weight: 600;
    height: fit-content;
    white-space: nowrap;
    animation: bounceHand 0.8s infinite alternate ease-in-out;
}

@keyframes bounceHand {
    0% { transform: translateY(0); }
    100% { transform: translateY(-2px); }
}



