/*! purgecss start ignore */
/**
 * 🎨 RADIM INLINE STYLES
 * Extrahováno z index.html
 * @version 2.1.0 — Desktop sidebar: single source of truth (flex alignment fix)
 * @date 2026-03-08
 */

/* ============================================ */
/* 👴 DESKTOP SIDEBAR — SINGLE SOURCE OF TRUTH  */
/* All desktop sidebar styles live HERE.         */
/* sidebar-fix.css handles mobile/tablet only.   */
/* ============================================ */
@media (min-width: 1025px) {
    /* --- Dashboard layout with sidebar --- */
    .dashboard-layout {
        display: flex !important;
        flex-direction: row !important;
        height: 100vh !important;
        overflow: hidden !important;
    }

    main.main-panel,
    .main-panel {
        flex: 1 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    /* --- Sidebar container --- */
    body aside.sidebar,
    .dashboard-layout aside.sidebar,
    aside.sidebar {
        display: flex !important;
        flex-direction: column !important;
        min-width: 240px !important;
        max-width: 280px !important;
        width: 280px !important;
        height: 100vh !important;
        padding: 12px 10px !important;
        gap: 2px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border-right: 1px solid rgba(91, 168, 160, 0.12) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 140px !important;
    }

    /* FAB mikrofon — na desktopu vpravo, ne přes sidebar */
    .fab-button,
    #fabMicrophone {
        left: auto !important;
        right: 32px !important;
    }

    /* --- Sidebar scrollbar (thin, subtle) --- */
    aside.sidebar::-webkit-scrollbar {
        width: 4px !important;
    }
    aside.sidebar::-webkit-scrollbar-thumb {
        background: rgba(91, 168, 160, 0.2) !important;
        border-radius: 4px !important;
    }
    aside.sidebar::-webkit-scrollbar-track {
        background: transparent !important;
    }
    aside.sidebar {
        scrollbar-width: thin !important;
        scrollbar-color: rgba(91, 168, 160, 0.2) transparent !important;
    }

    /* --- Desktop: Show ALL sidebar items, hide "Více" toggle --- */
    body aside.sidebar .sidebar-more-toggle,
    .dashboard-layout aside.sidebar .sidebar-more-toggle {
        display: none !important;
    }
    body aside.sidebar .sidebar-more-content,
    .dashboard-layout aside.sidebar .sidebar-more-content,
    aside.sidebar > .sidebar-more-content {
        display: block !important;
        overflow: visible !important;
    }

    /* --- Sidebar buttons (FLEX ROW — icon + label) --- */
    body aside.sidebar button,
    .dashboard-layout aside.sidebar button,
    aside.sidebar button {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        min-height: 36px !important;
        font-size: 0.95rem !important;
        padding: 6px 12px !important;
        gap: 10px !important;
        font-weight: 500 !important;
        color: var(--text-primary, #2d3748) !important;
        border-radius: 10px !important;
        border: none !important;
        background: transparent !important;
        transition: all 0.2s ease !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        text-align: left !important;
        width: 100% !important;
    }

    body aside.sidebar button:hover,
    aside.sidebar button:hover {
        background: rgba(91, 168, 160, 0.12) !important;
        transform: translateX(2px) !important;
    }

    body aside.sidebar button.active,
    aside.sidebar button.active {
        background: rgba(91, 168, 160, 0.18) !important;
        color: var(--accent-primary, #5BA8A0) !important;
        border-left: 4px solid var(--accent-primary, #5BA8A0) !important;
        border-radius: 0 12px 12px 0 !important;
    }

    /* --- Icon span --- */
    body aside.sidebar button span:first-child,
    .dashboard-layout aside.sidebar button span:first-child,
    aside.sidebar button span:first-child {
        font-size: 1.4rem !important;
        min-width: 28px !important;
        text-align: center !important;
        flex-shrink: 0 !important;
        line-height: 1 !important;
    }

    /* --- Label span --- */
    body aside.sidebar button span:last-child,
    .dashboard-layout aside.sidebar button span:last-child,
    aside.sidebar button span:last-child {
        font-size: 1.0rem !important;
        line-height: 1.3 !important;
        font-weight: 500 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    aside.sidebar button.active span:last-child {
        font-weight: 600 !important;
    }

    /* --- Visual group separators --- */
    /* Menu: Domů, Chat, Hovory | Zprávy, Úkoly, Kalendář, Cvičení, Nastavení |
       Kvízy, Příběhy, Poznámky | Vzdělávání, Lekce, Knihovna, Email, Galerie */
    aside.sidebar button:nth-child(3),
    aside.sidebar button:nth-child(8),
    aside.sidebar button:nth-child(11) {
        margin-bottom: 6px !important;
        position: relative !important;
    }
    aside.sidebar button:nth-child(3)::after,
    aside.sidebar button:nth-child(8)::after,
    aside.sidebar button:nth-child(11)::after {
        content: '' !important;
        position: absolute !important;
        bottom: -4px !important;
        left: 12px !important;
        right: 12px !important;
        height: 1px !important;
        background: rgba(91, 168, 160, 0.15) !important;
        pointer-events: none !important;
    }
}

/* 📱 MOBILE/TABLET — sidebar-fix.css handles everything ≤1024px */
/* No overrides needed here — sidebar-fix.css is loaded before this file
   and handles bottom nav, hamburger overlay, etc. */

/* 🌤️ WEATHER OVERFLOW FIX — Compact weather in top-bar */
/* Hide expanded weather details on all screens ≤1200px */
@media screen and (max-width: 1200px) {
    .top-bar {
        overflow: hidden !important;
    }

    .top-bar .header-weather {
        display: inline-block !important;
        overflow: hidden !important;
        max-height: 28px !important;
        vertical-align: middle !important;
    }

    .top-bar .header-weather .weather-condition {
        display: none !important;
    }

    .top-bar .header-weather .weather-details {
        display: none !important;
    }

    .top-bar .header-weather .weather-main {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        height: 24px !important;
        line-height: 24px !important;
        font-size: 0.75rem !important;
    }
}

/* Force compact weather icon/temp in top-bar (separate block to avoid parser limits) */
.top-bar .header-weather .weather-icon {
    font-size: 1rem !important;
    line-height: 1 !important;
}

.top-bar .header-weather .weather-temp {
    font-size: 0.75rem !important;
    line-height: 1 !important;
}

/* Audio test button - prominentní (desktop only) */
@media (min-width: 769px) {
    .audio-test-button {
        background: linear-gradient(135deg, var(--radim-teal), var(--radim-teal-light)) !important;
        color: white !important;
        border: none !important;
    }
}


/* ============================================ */
/* 🎭 SPLASH & OVERLAY — Radim Branded          */
/* ============================================ */
/* Activation Overlay — Radim Teal (canonical definition) */
.radim-activation-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--radim-teal) 0%, var(--radim-teal-light) 30%, var(--radim-teal) 60%, var(--radim-teal-dark) 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
    transition: opacity 0.5s ease;
}

.radim-activation-overlay .text-center {
    text-align: center;
    color: white;
}

.radim-activation-overlay h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

/* Splash Screen — Light background for full-color logo */
.radim-splash {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
    transition: opacity 0.5s ease;
}

.radim-splash .text-center {
    text-align: center;
    color: #4a5568;
}

.radim-splash h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--radim-coral) 0%, var(--radim-teal-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-spinner {
    border: 3px solid rgba(91, 168, 160, 0.12);
    border-top: 3px solid var(--radim-teal-light, #5BA8A0);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

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

/* Main Container - Initially Hidden */
.radim-main-container {
    display: none;
    opacity: 0;
}

/* Text utilities */
.text-white { color: white; }
.text-xl { font-size: 1.25rem; }
.text-lg { font-size: 1.125rem; }
.mt-4 { margin-top: 1rem; }


/* ============================================ */
/* 🤫 SILENT SPEECH INDICATOR                   */
/* ============================================ */
.silent-speech-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #666;
    display: none;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.silent-speech-indicator.active {
    display: flex; align-items: center; justify-content: center;
    background: #48bb78;
}
.silent-speech-indicator.active::after { content: '🤫'; font-size: 24px; }

.silent-speech-indicator.listening {
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-primary, #5BA8A0);
    animation: pulse 1.5s infinite;
}
.silent-speech-indicator.listening::after { content: '🎤'; font-size: 24px; }

.silent-speech-indicator.connected {
    display: flex; align-items: center; justify-content: center;
    background: #48bb78;
}
.silent-speech-indicator.connected::after { content: '📡'; font-size: 24px; }

.silent-speech-indicator.emergency {
    display: flex; align-items: center; justify-content: center;
    background: #fc8181;
    animation: emergency-pulse 0.5s infinite;
}
.silent-speech-indicator.emergency::after { content: '🚨'; font-size: 24px; }

.silent-speech-indicator.disconnected {
    display: flex; align-items: center; justify-content: center;
    background: #a0aec0;
}
.silent-speech-indicator.disconnected::after { content: '⚠️'; font-size: 24px; }

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; box-shadow: 0 4px 12px rgba(91, 168, 160, 0.3); }
    50% { transform: scale(1.05); opacity: 1; box-shadow: 0 6px 20px rgba(91, 168, 160, 0.6); }
    100% { transform: scale(0.95); opacity: 0.7; box-shadow: 0 4px 12px rgba(91, 168, 160, 0.3); }
}

@keyframes emergency-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(252, 129, 129, 0.7); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(252, 129, 129, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(252, 129, 129, 0); }
}

/* Silent Speech Button */
.silent-speech-btn {
    margin-left: 10px;
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}
.silent-speech-btn:hover { background: #f0f5f5; border-color: var(--accent-primary, #5BA8A0); }
.silent-speech-btn.active { background: var(--accent-primary, #5BA8A0); color: white; border-color: var(--accent-primary, #5BA8A0); }
.silent-speech-btn.active:hover { background: var(--radim-teal-dark, #4A9690); }


/* ==========================================
   🏥 HEALTH CHECK STATUS INDICATOR
   ========================================== */
.backend-status-badge {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(91, 168, 160, 0.12) !important;
    padding: 6px 12px !important;
    border-radius: 10px !important;
    cursor: default !important;
    transition: all 0.3s ease !important;
}
.backend-status-badge:hover { background: rgba(91, 168, 160, 0.15) !important; }

.status-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
    flex-shrink: 0;
}
.status-dot.status-online { background: #48bb78; box-shadow: 0 0 8px rgba(72, 187, 120, 0.6); animation: pulse-green 2s ease-in-out infinite; }
.status-dot.status-degraded { background: #f6ad55; box-shadow: 0 0 8px rgba(246, 173, 85, 0.6); animation: pulse-yellow 1.5s ease-in-out infinite; }
.status-dot.status-offline { background: #fc8181; box-shadow: 0 0 8px rgba(252, 129, 129, 0.6); animation: pulse-red 1s ease-in-out infinite; }
.status-dot.status-unknown { background: #a0aec0; box-shadow: none; animation: none; }

.backend-status-text {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.75) !important;
    white-space: nowrap;
}

.text-warning { color: #f6ad55 !important; }
.text-danger { color: #fc8181 !important; }

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 4px rgba(72, 187, 120, 0.4); }
    50% { box-shadow: 0 0 12px rgba(72, 187, 120, 0.8); }
}
@keyframes pulse-yellow {
    0%, 100% { box-shadow: 0 0 4px rgba(246, 173, 85, 0.4); }
    50% { box-shadow: 0 0 12px rgba(246, 173, 85, 0.8); }
}
@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 4px rgba(252, 129, 129, 0.4); }
    50% { box-shadow: 0 0 14px rgba(252, 129, 129, 0.9); }
}

/* Hide label on mobile, keep dot */
@media (max-width: 768px) {
    .backend-status-text { display: none !important; }
    .backend-status-badge { padding: 6px 8px !important; }
}


/* ==========================================
   📦 MODULE LOADER UI
   ========================================== */
.module-loader-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(248, 250, 250, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 12px;
    transition: opacity 0.3s ease;
}

.module-loader-spinner { text-align: center; color: var(--text-primary, #2d3748); }
.module-loader-spinner p { margin-top: 12px; font-size: 0.95rem; color: #718096; }

.spinner-dot {
    width: 32px; height: 32px;
    border: 3px solid rgba(91, 168, 160, 0.2);
    border-top-color: var(--accent-primary, #5BA8A0);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin-module 0.8s linear infinite;
}
@keyframes spin-module { to { transform: rotate(360deg); } }

.module-error-banner {
    background: rgba(252, 129, 129, 0.1);
    border: 1px solid rgba(252, 129, 129, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.module-error-banner p { margin: 0; color: #e53e3e; font-size: 0.9rem; }
.module-error-banner button { font-size: 0.85rem; padding: 6px 14px; white-space: nowrap; }


/* ==========================================
   📡 OFFLINE BANNER — Radim Coral
   ========================================== */
.offline-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    background: linear-gradient(90deg, #F07D7E, #F5A3A3);
    color: white;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    box-shadow: 0 2px 12px rgba(240, 125, 126, 0.4);
}
.offline-banner.visible { transform: translateY(0); }
.offline-banner button {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: 12px;
}
.offline-banner button:hover { background: rgba(255,255,255,0.35); }


/* ============================================ */
/* 🎯 RADIM LIGHT OVERRIDES — Final cascade    */
/* ============================================ */

/* Kafánek greeting bubble — light Radim style */
.kafanek-bubble,
.kafanek-bubble:hover {
    background: #ffffff !important;
    border: 1px solid rgba(91, 168, 160, 0.15) !important;
    border-left: 4px solid var(--accent-primary, #5BA8A0) !important;
    border-radius: 16px !important;
    color: var(--text-primary, #2d3748) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
}

.kafanek-bubble p {
    color: var(--text-secondary, #4a5568) !important;
}

/* Search results — light */
.search-results {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(91, 168, 160, 0.12) !important;
    color: var(--text-primary, #2d3748) !important;
}

/* Chat input area — light */
.chat-input-area,
.messenger-input-area,
.input-area {
    background: rgba(248, 250, 250, 0.95) !important;
    border-top: 1px solid rgba(91, 168, 160, 0.12) !important;
}

.chat-input-area input,
.chat-input-area textarea,
.messenger-input-area input,
.messenger-input-area textarea {
    background: #ffffff !important;
    color: var(--text-primary, #2d3748) !important;
    border: 1px solid rgba(91, 168, 160, 0.2) !important;
}

/* Module headers — light */
.module-section h2,
.module-section h3 {
    color: var(--text-primary, #2d3748) !important;
}

/* Any remaining dark backgrounds override */
.glass-card,
.info-card,
.card {
    background: #ffffff !important;
    color: var(--text-primary, #2d3748) !important;
    border: 1px solid rgba(91, 168, 160, 0.1) !important;
}


/* ============================================ */
/* 🔝 HEADER (TOP-BAR) — Radim v4 Mobile Fix   */
/* ============================================ */

/* Force top-bar visible on all screens */
.top-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: linear-gradient(135deg, var(--radim-teal-dark) 0%, var(--radim-teal) 50%, var(--radim-teal-light) 100%) !important;
    border-bottom: 1px solid rgba(91, 168, 160, 0.12) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    padding: 10px 20px !important;
    min-height: 60px !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
}

.top-bar::before {
    display: none !important;
}

/* Logo area — bigger */
.top-bar .logo {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}

.top-bar .logo img,
.top-bar .logo .logo-img {
    height: 52px !important;
    width: auto !important;
    border-radius: 0 !important;
    filter: brightness(0) invert(1) !important;
    box-shadow: none !important;
    object-fit: contain !important;
    background: transparent !important;
    padding: 0 !important;
    margin: -4px 0 !important;
}

/* Weather & time widgets — compact pills */
.top-bar .weather-status,
.top-bar .time-energy {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 1 !important;
}

.top-bar .weather-status span,
.top-bar .time-energy span {
    padding: 5px 10px !important;
    background: rgba(91, 168, 160, 0.15) !important;
    border: 1px solid rgba(91, 168, 160, 0.15) !important;
    border-radius: 20px !important;
    font-size: 0.78rem !important;
    color: white !important;
    white-space: nowrap !important;
    backdrop-filter: blur(8px) !important;
}

.top-bar .weather-status span:hover,
.top-bar .time-energy span:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: none !important;
}

/* 📱 MOBILE + TABLET — Top-bar = compact info strip below mobile-section-header */
@media (max-width: 1024px) {
    .top-bar {
        position: fixed !important;
        top: 48px !important;
        left: 0 !important;
        right: 0 !important;
        height: auto !important;
        min-height: 34px !important;
        max-height: 36px !important;
        z-index: 299 !important;
        padding: 4px 10px !important;
        background: rgba(91, 168, 160, 0.92) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        justify-content: center !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
    .top-bar .logo,
    .top-bar .header-right {
        display: none !important;
    }
    .top-bar .header-info-center {
        display: flex !important;
        gap: 6px !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .top-bar .header-info-center .header-date,
    .top-bar .header-info-center .header-nameday,
    .top-bar .header-info-center .header-weather {
        font-size: 0.72rem !important;
        padding: 2px 8px !important;
        color: white !important;
        background: rgba(255, 255, 255, 0.15) !important;
        border-radius: 12px !important;
        white-space: nowrap !important;
    }
    .top-bar .header-info-center .header-divider {
        display: none !important;
    }
    /* Increase content padding-top to account for info strip */
    .module-section {
        padding-top: 100px !important;
    }
}


/* ============================================ */
/* 🏠 HOME MODULE — Fix heading & subtitle     */
/* ============================================ */

/* "Radim" heading — warm dark, NOT blue/teal */
.kafanek-content h2 {
    color: var(--text-primary, #2d3748) !important;
    -webkit-text-fill-color: var(--text-primary, #2d3748) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    animation: none !important;
    background-size: unset !important;
    letter-spacing: -0.5px !important;
}

/* Also override on mobile */
.kafanek-panel h2 {
    color: var(--text-primary, #2d3748) !important;
    -webkit-text-fill-color: var(--text-primary, #2d3748) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    text-shadow: none !important;
}

/* Subtitle — muted gray, NOT blue/white */
.kafanek-content .subtitle {
    color: #718096 !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    text-shadow: none !important;
    letter-spacing: 0 !important;
}

/* Home logo inline — prominent branding */
.home-logo img {
    height: 120px !important;
    width: auto !important;
}

/* Status display — cleaner light design */
.status-display {
    background: rgba(91, 168, 160, 0.08) !important;
    border: 1px solid rgba(91, 168, 160, 0.2) !important;
    border-radius: 12px !important;
    color: var(--radim-teal-dark, #4A9690) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.status-display.listening {
    background: rgba(72, 187, 120, 0.1) !important;
    border-color: rgba(72, 187, 120, 0.3) !important;
    color: #2F855A !important;
}

.status-display.speaking {
    background: rgba(91, 168, 160, 0.12) !important;
    border-color: rgba(91, 168, 160, 0.3) !important;
    color: var(--radim-teal-dark, #4A9690) !important;
    box-shadow: none !important;
}

.status-display.sleep {
    background: rgba(160, 174, 192, 0.1) !important;
    border-color: rgba(160, 174, 192, 0.3) !important;
    color: #718096 !important;
}

/* Env summary — light */
.env-summary {
    background: rgba(248, 250, 250, 0.8) !important;
    border: 1px solid rgba(91, 168, 160, 0.1) !important;
    border-radius: 12px !important;
    color: var(--text-secondary, #4a5568) !important;
}

.env-summary span {
    color: var(--text-secondary, #4a5568) !important;
}

/* Quick chat input — clean light */
.quick-chat .chat-input-field,
.chat-input-field {
    background: #ffffff !important;
    border: 1px solid rgba(91, 168, 160, 0.2) !important;
    color: var(--text-primary, #2d3748) !important;
    border-radius: 12px !important;
}

.quick-chat .chat-input-field:focus,
.chat-input-field:focus {
    border-color: var(--accent-primary, #5BA8A0) !important;
    box-shadow: 0 0 0 3px rgba(91, 168, 160, 0.1) !important;
    outline: none !important;
}

/* Chat buttons — Radim teal */
.quick-chat .chat-actions button.primary {
    background: linear-gradient(135deg, var(--radim-teal), var(--radim-teal-light)) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
}

.quick-chat .chat-actions button.secondary {
    background: white !important;
    color: var(--accent-primary, #5BA8A0) !important;
    border: 1px solid rgba(91, 168, 160, 0.3) !important;
    border-radius: 10px !important;
}

/* Glow ring — teal instead of purple */
.glow-ring {
    background: radial-gradient(circle, rgba(91, 168, 160, 0.2) 0%, transparent 70%) !important;
    box-shadow: none !important;
}


/* ============================================ */
/* 📜 SCROLLBAR — Thin, teal, not blue         */
/* ============================================ */
*::-webkit-scrollbar {
    width: 5px !important;
    height: 5px !important;
}

*::-webkit-scrollbar-track {
    background: transparent !important;
}

*::-webkit-scrollbar-thumb {
    background: rgba(91, 168, 160, 0.25) !important;
    border-radius: 10px !important;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(91, 168, 160, 0.45) !important;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(91, 168, 160, 0.25) transparent !important;
}

/* Hide scrollbar on mobile (touch scroll) */
@media (max-width: 768px) {
    .main-panel::-webkit-scrollbar,
    .module-section::-webkit-scrollbar {
        width: 0 !important;
        display: none !important;
    }

    .main-panel,
    .module-section {
        scrollbar-width: none !important;
    }
}


/* ============================================ */
/* 🎭 ACTIVATION OVERLAY — Enhanced v4         */
/* ============================================ */

/* Logo — compact brand mark (avatar is the hero) */
.activation-logo-img {
    height: 48px !important;
    width: auto !important;
    filter: brightness(0) invert(1) !important;
    opacity: 0.9 !important;
    margin-bottom: 4px !important;
}
.activation-logo {
    margin-bottom: 8px !important;
}

/* Title — warm and clear */
.activation-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: white !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12) !important;
    letter-spacing: -0.3px !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
}

/* Subtitle */
.activation-subtitle {
    font-size: 1.1rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
}

/* Button — prominent with teal accent */
.radim-activate-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 16px 40px !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    background: white !important;
    color: var(--radim-teal-dark, #4A9690) !important;
    border: none !important;
    border-radius: 60px !important;
    cursor: pointer !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.3px !important;
}

.radim-activate-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.radim-activate-btn:active {
    transform: scale(0.98) !important;
}

/* Feature icons — clean */
.activation-feature-icon {
    font-size: 1.5rem !important;
    background: rgba(255, 255, 255, 0.15) !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    margin: 0 auto 6px !important;
}

.activation-feature-text {
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

/* Hint text */
.activation-hint {
    font-size: 0.82rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-top: 14px !important;
}

/* 📱 Activation overlay mobile */
@media (max-width: 768px) {
    .activation-logo-img {
        height: 64px !important;
    }

    .activation-avatar {
        width: 150px !important;
        height: 150px !important;
        margin-bottom: 12px !important;
    }

    .activation-title {
        font-size: 1.7rem !important;
    }

    .activation-subtitle {
        font-size: 1rem !important;
        margin-bottom: 16px !important;
    }

    .radim-activate-btn {
        padding: 14px 32px !important;
        font-size: 1.15rem !important;
    }

    .activation-feature-icon {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.3rem !important;
    }

    .activation-features {
        margin-top: 16px !important;
        gap: 16px !important;
    }

    .activation-hint {
        margin-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .activation-logo-img {
        height: 54px !important;
    }

    .activation-avatar {
        width: 130px !important;
        height: 130px !important;
        margin-bottom: 10px !important;
    }

    .activation-title {
        font-size: 1.5rem !important;
    }

    .activation-subtitle {
        margin-bottom: 14px !important;
    }

    .radim-activate-btn {
        padding: 14px 28px !important;
        font-size: 1.1rem !important;
        width: 85% !important;
        max-width: 300px !important;
    }

    .activation-feature-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.2rem !important;
    }

    .activation-features {
        margin-top: 14px !important;
        gap: 14px !important;
    }
}

@media (max-height: 700px) {
    .activation-logo-img {
        height: 44px !important;
        margin-bottom: 4px !important;
    }
    .activation-logo {
        margin-bottom: 6px !important;
    }
    .activation-avatar {
        width: 100px !important;
        height: 100px !important;
        margin-bottom: 8px !important;
        padding: 8px !important;
    }
    .activation-title {
        font-size: 1.3rem !important;
        margin-bottom: 2px !important;
    }
    .activation-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 10px !important;
    }
    .radim-activate-btn {
        padding: 10px 24px !important;
        font-size: 1rem !important;
    }
    .activation-features {
        margin-top: 10px !important;
        gap: 10px !important;
    }
    .activation-feature-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 1rem !important;
    }
    .activation-hint {
        margin-top: 8px !important;
        font-size: 0.72rem !important;
    }
}


/* ============================================ */
/* 🧹 REMAINING DARK THEME CLEANUP             */
/* ============================================ */

/* Kafánek panel background overlay — remove dark purple radials */
.kafanek-panel::before,
.kafanek-panel::after {
    display: none !important;
    background: none !important;
    opacity: 0 !important;
}

/* Info cards — light */
.info-card .info-icon {
    background: rgba(91, 168, 160, 0.08) !important;
    border-radius: 12px !important;
}

.info-card .info-label {
    color: #a0aec0 !important;
    font-size: 0.8rem !important;
}

.info-card .info-value {
    color: var(--text-primary, #2d3748) !important;
    font-weight: 600 !important;
}

/* Info cards grid */
.info-cards-grid {
    gap: 12px !important;
}

/* Remove any remaining purple/blue gradients on backgrounds */
.kafanek-content::before,
.kafanek-content::after {
    display: none !important;
    background: none !important;
}

/* Module section backgrounds — clean white */
.module-section {
    background: #f8fafa !important;
    color: var(--text-primary, #2d3748) !important;
}

/* Main panel — light background */
.main-panel {
    background: #f8fafa !important;
    color: var(--text-primary, #2d3748) !important;
}

/* Backend status badge — keep readable on teal header */
.backend-status-badge {
    background: rgba(91, 168, 160, 0.15) !important;
}

/* Dashboard layout background */
.dashboard-layout {
    background: #f8fafa !important;
}


/* ============================================ */
/* 💬 CHAT MODULE — Radim Teal (not blue)      */
/* ============================================ */

/* Chat header — teal gradient instead of blue */
.radim-chat-header {
    background: linear-gradient(135deg, var(--radim-teal-dark), var(--radim-teal)) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(91, 168, 160, 0.2) !important;
}

/* Avatar circle — teal */
.radim-avatar-circle {
    background: linear-gradient(135deg, var(--radim-teal-light), var(--radim-teal)) !important;
    box-shadow: 0 2px 8px rgba(91, 168, 160, 0.3) !important;
}

/* Online status */
.radim-chat-status.connected {
    color: #a5d6a7 !important;
}

/* Input container — light gray instead of dark navy */
.radim-chat-input-container {
    background: #f0f4f4 !important;
    border-top: 1px solid rgba(91, 168, 160, 0.15) !important;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04) !important;
}

/* Input field — teal border */
.radim-chat-input {
    background: #ffffff !important;
    border: 1.5px solid rgba(91, 168, 160, 0.25) !important;
    color: var(--text-primary, #2d3748) !important;
}

.radim-chat-input:focus {
    border-color: var(--accent-primary, #5BA8A0) !important;
    box-shadow: 0 0 0 3px rgba(91, 168, 160, 0.12) !important;
}

.radim-chat-input::placeholder {
    color: #a0aec0 !important;
}

/* Send button — teal */
.radim-send-button {
    background: linear-gradient(135deg, var(--radim-teal), var(--radim-teal-dark)) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(91, 168, 160, 0.35) !important;
}

.radim-send-button:hover {
    box-shadow: 0 4px 12px rgba(91, 168, 160, 0.5) !important;
}

/* Voice button — teal variant */
.radim-voice-button {
    background: linear-gradient(135deg, var(--radim-teal-light), var(--radim-teal)) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(91, 168, 160, 0.3) !important;
}

/* Chat messages area — light background */
.radim-chat-messages {
    background: #f8fafa !important;
}

/* Chat bubble — AI message */
.radim-message.radim-ai .radim-message-bubble {
    background: #ffffff !important;
    color: var(--text-primary, #2d3748) !important;
    border: 1px solid rgba(91, 168, 160, 0.12) !important;
}

/* Chat bubble — User message */
.radim-message.radim-user .radim-message-bubble {
    background: linear-gradient(135deg, var(--radim-teal), var(--radim-teal-light)) !important;
    color: white !important;
}

/* Clear chat button */
.radim-clear-btn {
    background: rgba(91, 168, 160, 0.15) !important;
}

.radim-clear-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Typing indicator */
.radim-typing-indicator {
    color: #718096 !important;
}


/* ============================================ */
/* 🎤 FLOATING MIC BUTTON — Radim Teal         */
/* ============================================ */
.floating-mic-btn,
.fab-btn,
.fab-button,
#floatingMicBtn,
#fabMicrophone {
    background: linear-gradient(135deg, var(--radim-teal), var(--radim-teal-dark)) !important;
    box-shadow: 0 4px 16px rgba(91, 168, 160, 0.4) !important;
    border: none !important;
}

.floating-mic-btn:hover,
.fab-btn:hover,
.fab-button:hover,
#floatingMicBtn:hover,
#fabMicrophone:hover {
    box-shadow: 0 6px 20px rgba(91, 168, 160, 0.5) !important;
}


/* ============================================ */
/* 📱 CHAT MOBILE — Override navy !important    */
/* ============================================ */
/* radim-simple-chat.css uses !important navy backgrounds on mobile */
@media (max-width: 768px) {
    .radim-chat-input-container {
        background: #f0f4f4 !important;
        border-top: 1px solid rgba(91, 168, 160, 0.15) !important;
    }

    .radim-chat-input {
        background: #ffffff !important;
        color: var(--text-primary, #2d3748) !important;
        border: 2px solid rgba(91, 168, 160, 0.25) !important;
    }

    .radim-suggested-buttons {
        background: #f0f4f4 !important;
        border-top: 1px solid rgba(91, 168, 160, 0.1) !important;
    }

    .radim-suggestion-btn {
        background: rgba(91, 168, 160, 0.08) !important;
        color: var(--radim-teal-dark, #4A9690) !important;
        border: 1px solid rgba(91, 168, 160, 0.2) !important;
        border-radius: 20px !important;
    }

    .radim-suggestion-btn:hover {
        background: rgba(91, 168, 160, 0.15) !important;
    }
}

/* Chat welcome heading — teal instead of blue */
.radim-chat-welcome h3 {
    color: var(--radim-teal-dark, #4A9690) !important;
}

/* User message bubble — teal gradient (override .radim-message-user selector) */
.radim-message-user .radim-message-bubble {
    background: linear-gradient(135deg, var(--radim-teal), var(--radim-teal-dark)) !important;
    color: white !important;
}


/* ============================================ */
/* 🔮 FLOATING CHAT — Override purple → teal   */
/* ============================================ */
/* radim-floating-chat.css uses #5BA8A0/#4A9690 purple everywhere */
.kfc-toggle-btn,
.radim-fc-toggle {
    background: linear-gradient(135deg, var(--radim-teal), var(--radim-teal-dark)) !important;
    box-shadow: 0 4px 16px rgba(91, 168, 160, 0.4) !important;
}

.kfc-toggle-btn:focus,
.radim-fc-toggle:focus {
    outline: 3px solid var(--accent-primary, #5BA8A0) !important;
}

.kfc-header,
.radim-fc-header {
    background: linear-gradient(135deg, var(--radim-teal-dark), var(--radim-teal)) !important;
}

.kfc-send-btn,
.radim-fc-send {
    background: var(--accent-primary, #5BA8A0) !important;
    color: white !important;
}

.kfc-send-btn:hover,
.radim-fc-send:hover {
    background: var(--radim-teal-dark, #4A9690) !important;
}

.kfc-message-bubble-sent,
.radim-fc-bubble-sent {
    background: linear-gradient(135deg, var(--radim-teal), var(--radim-teal-dark)) !important;
    color: white !important;
}

.kfc-file-upload-label {
    color: var(--accent-primary, #5BA8A0) !important;
}

.kfc-file-upload-label:hover {
    border-color: var(--accent-primary, #5BA8A0) !important;
}

.kfc-suggested-reply {
    background: linear-gradient(135deg, var(--radim-teal), var(--radim-teal-light)) !important;
    color: white !important;
}

.kfc-suggested-reply:focus {
    outline: 3px solid var(--accent-primary, #5BA8A0) !important;
}


/* ============================================ */
/* 💬 MESSENGER — Override purple CSS vars      */
/* ============================================ */
/* radim-messenger.css uses purple CSS variables throughout */
.radim-messenger,
.radim-messenger-container,
[class*="messenger"] {
    --wa-green: var(--radim-teal, #5BA8A0) !important;
    --rc-primary: var(--radim-teal, #5BA8A0) !important;
    --rc-secondary: var(--radim-coral, #F07D7E) !important;
    --rc-gradient: linear-gradient(135deg, var(--radim-teal) 0%, var(--radim-teal-dark) 100%) !important;
    --wa-sidebar: #f8fafa !important;
    --wa-input: #f0f4f4 !important;
    --rc-bg-card: #ffffff !important;
    --rc-bg-input: #f0f4f4 !important;
    --wa-bubble-out: linear-gradient(135deg, var(--radim-teal), var(--radim-teal-dark)) !important;
    --rc-bubble-sent: linear-gradient(135deg, var(--radim-teal), var(--radim-teal-dark)) !important;
}


/* ============================================ */
/* 📹 VIDEO CALL — Override navy/purple         */
/* ============================================ */
.video-call-start {
    background: linear-gradient(135deg, #f0f4f4 0%, #e8efef 100%) !important;
    color: var(--text-primary, #2d3748) !important;
}

.video-call-contact-avatar {
    background: linear-gradient(135deg, var(--radim-teal-light), var(--radim-teal)) !important;
}

.video-call-btn-start {
    background: linear-gradient(135deg, #48bb78, #38a169) !important;
}

.video-call-btn-end {
    background: linear-gradient(135deg, #F07D7E, #e05252) !important;
}


/* ============================================ */
/* 🧩 WIDGETS MODAL — Override navy             */
/* ============================================ */
.radim-modal {
    background: linear-gradient(135deg, #f8fafa 0%, #ffffff 100%) !important;
    color: var(--text-primary, #2d3748) !important;
}

.radim-modal-header {
    background: linear-gradient(135deg, var(--radim-teal-dark), var(--radim-teal)) !important;
    color: white !important;
}

.radim-modal-content {
    background: #ffffff !important;
    color: var(--text-primary, #2d3748) !important;
}


/* ============================================ */
/* 🧠 CONSCIOUSNESS PANEL — Override dark       */
/* ============================================ */
.consciousness-panel {
    background: linear-gradient(135deg, #f8fafa 0%, #f0f4f4 100%) !important;
    color: var(--text-primary, #2d3748) !important;
    border: 1px solid rgba(91, 168, 160, 0.12) !important;
}

.consciousness-panel h2,
.consciousness-panel h3,
.consciousness-panel .panel-title {
    color: var(--text-primary, #2d3748) !important;
}

.consciousness-panel .metric-value,
.consciousness-panel .stat-value {
    color: var(--radim-teal-dark, #4A9690) !important;
}

.consciousness-panel .metric-label,
.consciousness-panel .stat-label {
    color: #718096 !important;
}


/* ============================================ */
/* 🔢 MATH PANEL — Override dark                */
/* ============================================ */
.radim-math-panel {
    background: linear-gradient(135deg, #f8fafa 0%, #f0f4f4 100%) !important;
    color: var(--text-primary, #2d3748) !important;
}

.radim-math-panel h2,
.radim-math-panel h3 {
    color: var(--text-primary, #2d3748) !important;
}


/* ============================================ */
/* 👥 CLIENT MANAGER — Override dark vars       */
/* ============================================ */
.radim-client-manager,
.client-manager-modal,
[class*="client-manager"] {
    --modal-bg: linear-gradient(135deg, #f8fafa 0%, #ffffff 100%) !important;
}

.radim-client-manager {
    background: #f8fafa !important;
    color: var(--text-primary, #2d3748) !important;
}


/* ============================================ */
/* Base CSS variables now in kolibri-dashboard-v2.css :root */
/* Removed redundant :root override block     */
/* ============================================ */

/* Override any remaining purple gradient utilities */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--radim-teal) 0%, var(--radim-teal-dark) 100%) !important;
}

/* General button overrides — any remaining purple/blue buttons */
.btn-primary,
button.primary {
    background: linear-gradient(135deg, var(--radim-teal), var(--radim-teal-dark)) !important;
    border: none !important;
    color: white !important;
}

.btn-primary:hover,
button.primary:hover {
    background: linear-gradient(135deg, var(--radim-teal-dark, #4A9690), #3d8a84) !important;
}

/* Any remaining blue links/accents inside cards */
.card a,
.info-card a,
.glass-card a {
    color: var(--accent-primary, #5BA8A0) !important;
}

/* Ensure no purple scrollbar leaks */
.main-panel::-webkit-scrollbar-thumb {
    background: rgba(91, 168, 160, 0.25) !important;
}

/* Badge/tag accent colors */
.badge-primary,
.tag-primary {
    background: rgba(91, 168, 160, 0.12) !important;
    color: var(--radim-teal-dark, #4A9690) !important;
}

/* Toggle/Switch accent */
input[type="checkbox"]:checked + .slider,
input[type="checkbox"]:checked + label::before,
.toggle-switch.active {
    background: var(--accent-primary, #5BA8A0) !important;
}

/* Focus rings — teal instead of blue/purple */
*:focus-visible {
    outline-color: var(--accent-primary, #5BA8A0) !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent-primary, #5BA8A0) !important;
    box-shadow: 0 0 0 3px rgba(91, 168, 160, 0.12) !important;
}

/* Selection highlight */
::selection {
    background: rgba(91, 168, 160, 0.25) !important;
    color: var(--text-primary, #2d3748) !important;
}

::-moz-selection {
    background: rgba(91, 168, 160, 0.25) !important;
    color: var(--text-primary, #2d3748) !important;
}
/* ─── MOBILE HEADER LOGO ─── */
.mobile-header-logo {
    height: 28px !important;
    width: auto !important;
    filter: brightness(0) invert(1) !important;
    margin-right: 4px !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
}

/*! purgecss end ignore */
