        @import url('https://fonts.googleapis.com/css2?family=Balsamiq+Sans:wght@700&display=swap');
        @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');

        body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background-color: #0e1117; color: #fafafa; overflow-x: hidden; }
        #node-bg-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; background: radial-gradient(circle at center, #1e1b4b 0%, #020617 100%); display: block; }

        .title-gradient { font-size: 3.5rem; font-weight: 800; margin-bottom: 10px; background: -webkit-linear-gradient(#38bdf8, #3b82f6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0px 4px 15px rgba(56,189,248,0.3); }
        .login-title { font-family: 'Balsamiq Sans', cursive; color: #FFD166; font-weight: 700; font-size: 4.5rem; text-shadow: 3px 3px 0px #FF9F1C, 0px 5px 15px rgba(0, 0, 0, 0.6); margin: 0; line-height: 1; }
        
        .glass-hover-card { background: rgba(30, 41, 59, 0.6); backdrop-filter: blur(12px); border: 1px solid rgba(56, 189, 248, 0.3); border-radius: 16px; padding: 25px; color: white; height: 100%; transition: transform 0.3s ease; }
        .glass-hover-card:hover { transform: translateY(-5px); }
        
        /* === PRICING CARDS WARNA-WARNI & GLOW === */
        .pricing-card { padding: 30px 20px; border-radius: 20px; height: 100%; min-height: 420px; text-align: center; position: relative; display: flex; flex-direction: column; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
        .pricing-card-sky { background: linear-gradient(180deg, rgba(14, 165, 233, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%); border: 2px solid rgba(14, 165, 233, 0.3); transform: scale(0.98); }
        .pricing-card-sky:hover { transform: translateY(-10px) scale(1); box-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.4); border-color: rgba(14, 165, 233, 0.8); }
        .pricing-card-purple { background: linear-gradient(180deg, rgba(139, 92, 246, 0.15) 0%, rgba(15, 23, 42, 0.9) 100%); border: 2px solid #8b5cf6; box-shadow: 0 15px 35px -5px rgba(139, 92, 246, 0.4); z-index: 10; }
        .pricing-card-purple:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.6); border-color: #a855f7; }
        .pricing-card-rose { background: linear-gradient(180deg, rgba(244, 63, 94, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%); border: 2px solid rgba(244, 63, 94, 0.3); transform: scale(0.98); }
        .pricing-card-rose:hover { transform: translateY(-10px) scale(1); box-shadow: 0 20px 40px -10px rgba(244, 63, 94, 0.4); border-color: rgba(244, 63, 94, 0.8); }

        .stForm-custom { background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(16px) saturate(180%); padding: 40px 35px; border-radius: 24px; box-shadow: 0 0 30px rgba(56, 189, 248, 0.15); border: 1px solid rgba(56, 189, 248, 0.3); }
        .input-custom { width: 100%; padding: 10px 12px; border-radius: 10px; background: rgba(30, 41, 59, 0.7); border: 1px solid rgba(100, 116, 139, 0.5); color: white; outline: none; margin-bottom: 12px; font-size: 14px; }
        .input-custom:focus { border-color: #38bdf8; box-shadow: 0 0 15px rgba(56, 189, 248, 0.4); }

        .btn-primary { width: 100%; background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%); color: white; border: none; border-radius: 10px; font-weight: 700; letter-spacing: 0.5px; padding: 10px; cursor: pointer; transition: all 0.3s ease; }
        .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -5px rgba(14, 165, 233, 0.5); }
        .btn-primary:disabled { background: #64748b; cursor: not-allowed; transform: none; box-shadow: none; }

        @keyframes float-login { 0%, 100% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
        @keyframes signal-login { 0% { transform: scale(0.5); opacity: 0; } 50% { opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
        @keyframes pulse-login { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
        .germic-wrapper { width: 140px; height: 140px; animation: float-login 4s ease-in-out infinite; margin: 0 auto 20px auto; filter: drop-shadow(0px 6px 15px rgba(0,0,0,0.5)); }
        .signal-wave { transform-origin: 50px 12px; animation: signal-login 2s infinite; }
        .signal-wave-2 { transform-origin: 50px 12px; animation-delay: 0.6s; animation: signal-login 2s infinite; }

        /* === TABS NAVIGATION === */
        .stTabs-container { display: flex; justify-content: flex-start; gap: 8px; margin-bottom: 20px; padding: 20px 32px 0 32px; background: #1e293b; border-bottom: 1px solid rgba(255,255,255,0.1); }
        .stTab-btn { border-radius: 12px 12px 0 0; padding: 10px 24px; border: 1px solid rgba(255,255,255,0.1); background: rgba(30, 41, 59, 0.6); color: #f1f5f9; font-weight: bold; cursor: pointer; transition: all 0.3s ease; }
        .stTab-btn.active { background: #3b82f6 !important; color: white !important; box-shadow: 0 0 15px rgba(59, 130, 246, 0.5); }
        .tab-content { display: none; padding: 20px 32px 32px 32px; height: calc(100vh - 110px); overflow-y: auto; }
        .tab-content.active { display: block; animation: fadeIn 0.5s ease; }

        /* App Main Styling */
        .sidebar { background-color: #1e293b; border-right: 1px solid rgba(255,255,255,0.1); width: 320px; height: 100vh; padding: 20px; display: flex; flex-direction: column; overflow-y: hidden; z-index: 20; }
        .main-content { flex: 1; background-color: #0e1117; height: 100vh; overflow-y: auto; color: #f8fafc; }
        
        .profile-card { border-radius: 16px; padding: 20px; color: white; margin-bottom: 20px; background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); box-shadow: 0 0 15px rgba(59, 130, 246, 0.3); flex-shrink: 0;}
        .profile-card.admin { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
        
        .digital-clock { background: linear-gradient(145deg, #0f172a, #1e293b); border: 1px solid rgba(56, 189, 248, 0.4); box-shadow: 0 4px 10px rgba(0,0,0,0.3), inset 0 0 15px rgba(56, 189, 248, 0.1); border-radius: 12px; padding: 15px 10px; text-align: center; margin-top: 5px; flex-shrink: 0;} 
        .time-display { font-family: 'Orbitron', sans-serif; color: #38bdf8; font-size: 24px; font-weight: bold; letter-spacing: 2px; } 
        .date-display { color: #94a3b8; font-size: 11px; text-transform: uppercase; font-weight: 700; margin-top: 6px; }

        /* Admin & Live Capture Styles */
        .metric-card { background: #1e293b; padding: 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); position: relative; overflow: hidden; }
        .controls-wrapper { background: #1e293b; border-radius: 20px; padding: 24px; border: 1px solid rgba(255,255,255,0.1); margin-bottom: 24px; display: flex; flex-direction: column; gap: 16px; }
        .controls-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
        .btn-custom { font-family: inherit; color: white; padding: 10px 20px; border: none; border-radius: 10px; cursor: pointer; font-weight: 600; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
        .btn-custom:disabled { background: #64748b !important; cursor: not-allowed; transform: none; opacity: 0.7; }
        .btn-start { background: #3b82f6; } .btn-stop { background: #ef4444; } .btn-ai { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); } .btn-secondary { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
        .btn-green { background: #10b981; }
        .status-badge { display: flex; align-items: center; gap: 10px; background: #0f172a; padding: 6px 16px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); font-weight: 600; font-size: 13px; color: #94a3b8; }
        .indicator-dot { width: 12px; height: 12px; border-radius: 50%; background: #cbd5e1; transition: all 0.3s; flex-shrink: 0; }
        .indicator-dot.recording { background: #ef4444; box-shadow: 0 0 10px #ef4444; animation: blink 1s infinite; }
        @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

        .visualizer-container { width: 100%; height: 80px; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #0f172a 0%, #020617 100%); position: relative; }
        #visualizer { width: 100%; height: 100%; display: block; }
        .transcript-box { background: #1e293b; border: 1px solid rgba(255,255,255,0.1); padding: 16px 20px; border-radius: 20px; height: 300px; overflow-y: auto; margin-bottom: 16px; color: #f8fafc; scroll-behavior: smooth; }
        .line-final { margin-bottom: 12px; padding: 12px 16px; background: #0f172a; border-radius: 12px; border-left: 5px solid #3b82f6; font-size: 14px; line-height: 1.6; }
        .line-interim { margin-bottom: 12px; padding: 12px 16px; background: rgba(15,23,42,0.5); border-radius: 12px; border-left: 5px solid #94a3b8; font-size: 14px; opacity: 0.7; font-style: italic; }
        .timestamp { font-weight: 700; color: #38bdf8; margin-right: 10px; font-size: 12px; background: rgba(56,189,248,0.1); padding: 2px 8px; border-radius: 6px; display: inline-block; }
        .ai-section { background: #1e293b; border: 1px solid rgba(255,255,255,0.1); padding: 16px 20px; border-radius: 16px; display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
        .instruction-box { background: rgba(245, 158, 11, 0.1); border: 2px solid #f59e0b; padding: 16px; border-radius: 12px; margin-bottom: 16px; font-size: 13px; color: #fcd34d; }
        .fade-in { animation: fadeIn 0.5s ease; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        /* Time Travel Player Styles */
        .player-container { background: #1e293b; padding: 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; }
        .offline-segment { padding: 12px 15px; margin-bottom: 8px; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; border-left: 4px solid transparent; font-size: 14px; color: #cbd5e1; background: #0f172a; }
        .offline-segment:hover { background: #334155; }
        .offline-segment.active { background: #1e3a8a; border-left: 4px solid #3b82f6; color: #ffffff; font-weight: 600; box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3); }

        /* KUNCI JAWABAN FIX WARNA FONT MARKMAP AGAR HITAM PEKAT SECARA AGRESIF */
        svg[id^="markmap"] text, 
        svg[id^="markmap"] tspan, 
        .markmap text, 
        .markmap-node text,
        svg[id^="markmap"] foreignObject * {
            fill: #0f172a !important;
            color: #0f172a !important;
            font-weight: bold !important;
        }

        /* Scrollbar kustom untuk sidebar extra widgets */
        #sidebar-extra-widgets::-webkit-scrollbar { width: 4px; }
        #sidebar-extra-widgets::-webkit-scrollbar-track { background: transparent; }
        #sidebar-extra-widgets::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
        /* Kustomisasi Tema Gelap Driver.js */
        .driver-theme-dark .driver-popover {
            background-color: #1e293b !important;
            color: #f8fafc !important;
            border: 1px solid rgba(56, 189, 248, 0.3) !important;
            border-radius: 16px !important;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
        }
        .driver-theme-dark .driver-popover-title { color: #38bdf8 !important; font-weight: bold !important; }
        .driver-theme-dark .driver-popover-description { color: #cbd5e1 !important; }
        .driver-theme-dark .driver-popover-footer button {
            background-color: #334155 !important; color: white !important; text-shadow: none !important; border: 1px solid #475569 !important; border-radius: 8px !important; transition: 0.2s;
        }
        .driver-theme-dark .driver-popover-footer button:hover { background-color: #3b82f6 !important; border-color: #60a5fa !important; }
        .driver-theme-dark .driver-popover-progress-text { color: #94a3b8 !important; }
   /* =========================================
           RESPONSIVE MOBILE & TABLET DESIGN
           ========================================= */
        @media (max-width: 992px) {
            .sidebar { width: 260px; padding: 15px; }
        }

        @media (max-width: 768px) {
            /* Susun ke bawah */
            #app-view { flex-direction: column; }
            
            /* Sembunyikan sidebar, jadikan Pop-up dari kiri */
            .sidebar { 
                position: fixed; left: -100%; top: 0; bottom: 0; 
                width: 280px; z-index: 999; transition: left 0.3s ease-in-out;
                box-shadow: 5px 0 25px rgba(0,0,0,0.7);
            }
            .sidebar.open { left: 0; }
            
            /* Overlay Gelap saat menu terbuka */
            .sidebar-overlay {
                display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
                z-index: 998; backdrop-filter: blur(3px);
            }
            .sidebar-overlay.open { display: block; }
            
            /* Tampilkan Header Mobile */
            .mobile-header { display: flex !important; }
            
            /* Lebarkan layar utama */
            .main-content { width: 100%; height: 100vh; overflow-x: hidden; }
            .tab-content { padding: 15px 15px 80px 15px; height: calc(100vh - 120px); }
            
            /* Tab Navigasi bisa digeser ke samping (Swipeable) */
            .stTabs-container { 
                overflow-x: auto; white-space: nowrap; flex-wrap: nowrap; 
                padding: 15px 15px 0 15px; -webkit-overflow-scrolling: touch;
                justify-content: flex-start !important; /* Paksa rata kiri di HP */
            }
            .stTab-btn { flex-shrink: 0; font-size: 13px; padding: 10px 15px; }
            
            /* Perbaiki ukuran elemen raksasa di HP */
            .login-title { font-size: 2.5rem; }
            .title-gradient { font-size: 2rem; line-height: 1.2; }
            .germic-wrapper { width: 180px !important; height: 180px !important; margin: 0 auto 20px auto !important; }
            
            /* Live Capture tombol susun ke bawah */
            .controls-row { flex-direction: column; align-items: stretch; }
            .controls-row > * { width: 100%; text-align: center; justify-content: center; }
            
            /* Statistik & Harga */
            .pricing-card { min-height: auto; margin-bottom: 20px; }
            .stat-counter { font-size: 32px !important; }
        }

        /* Header khusus HP (Default: Sembunyi) */
        .mobile-header {
            display: none; align-items: center; justify-content: space-between;
            padding: 15px 20px; background: #1e293b; border-bottom: 1px solid rgba(255,255,255,0.1);
            position: sticky; top: 0; z-index: 40;
        }
        /* =========================================
           EFEK FARMASI MELAYANG & GELEMBUNG AIR
           ========================================= */
     #pharmacy-water-bg {
            position: fixed;
            top: 0; left: 0; width: 100vw; height: 100vh;
            z-index: 0; /* Ubah jadi 0 biar ada di depan background tapi di belakang tombol */
            pointer-events: none; 
            overflow: hidden;
        }

        .floating-med-obj {
            position: absolute;
            bottom: -100px; /* Mulai dari luar layar bawah */
            opacity: 0;
            animation: floatUpWater ease-in infinite;
            
            /* TRIK MENGUBAH EMOJI JADI BAYANGAN SILUET */
            color: transparent; /* Menyembunyikan warna asli emoji */
            text-shadow: 0 0 0 rgba(56, 189, 248, 0.15); /* Membuat siluet warna biru langit yang pudar */
            filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.3)); /* Memberikan sedikit efek glow/kaca */
        }

        @keyframes core-heartbeat {
            0%, 100% { filter: brightness(1); box-shadow: 0 0 15px rgba(255, 255, 255, 0.1); }
            50% { filter: brightness(1.15); box-shadow: 0 0 25px rgba(255, 255, 255, 0.3); }
        }

        .profile-card {
            animation: core-heartbeat 1.8s infinite ease-in-out;
        }

        @keyframes floatUpWater {
            0% {
                transform: translateY(0) scale(0.8) rotate(0deg) translateX(0px);
                opacity: 0;
            }
            15% {
                opacity: 0.6; /* Mulai muncul */
            }
            50% {
                transform: translateY(-50vh) scale(1) rotate(180deg) translateX(20px); /* Melayang & goyang dikit kayak di air */
            }
            85% {
                opacity: 0.4;
            }
            100% {
                transform: translateY(-120vh) scale(1.2) rotate(360deg) translateX(-20px);
                opacity: 0; /* Menghilang di atas layar */
            }
        }
        @keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.animate-marquee {
    display: inline-block;
    animation: marquee 25s linear infinite;
}
  /* === STYLING HALAMAN DEPAN SAMA PERSIS PYTHON ANDA === */
.login-title {
    font-family: 'Balsamiq Sans', cursive; 
    color: #FFD166; font-weight: 700; font-size: 4.5rem;
    text-shadow: 3px 3px 0px #FF9F1C, 0px 5px 15px rgba(0, 0, 0, 0.6); margin: 0; line-height: 1;
}

@keyframes float-login { 0%, 100% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
@keyframes signal-login { 0% { transform: scale(0.5); opacity: 0; } 50% { opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes pulse-login { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.germic-login-wrapper { width: 140px; height: 140px; animation: float-login 4s ease-in-out infinite; margin-right: 20px; filter: drop-shadow(0px 6px 15px rgba(0,0,0,0.5)); }
.signal-wave-login { transform-origin: 50px 12px; animation: signal-login 2s infinite; }
.signal-wave-2-login { transform-origin: 50px 12px; animation-delay: 0.6s; animation: signal-login 2s infinite; }
.animate-pulse-login { animation: pulse-login 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

.glass-hover-card { background: rgba(30, 41, 59, 0.6); backdrop-filter: blur(12px); border: 1px solid rgba(56, 189, 248, 0.3); border-radius: 16px; padding: 25px; color: white; height: 100%; transition: transform 0.3s ease; }
.glass-hover-card:hover { transform: translateY(-5px); }

.pricing-card { background-color: rgba(30, 41, 59, 0.4); padding: 30px 20px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.1); height: 100%; min-height: 420px; text-align: center; position: relative; display: flex; flex-direction: column; transition: transform 0.2s ease; }
.pricing-card:hover { transform: scale(1.02); }

.stForm-custom { background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(16px) saturate(180%); padding: 40px 35px; border-radius: 24px; box-shadow: 0 0 30px rgba(56, 189, 248, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.05); border: 1px solid rgba(56, 189, 248, 0.3); }
/* ========================================================= */
/* EFEK ROBOT LOADING (HANYA GLOW, ANTI-BENTROK MOUSE)       */
/* ========================================================= */
@keyframes robot-thinking-aura {
    0%, 100% { 
        filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.5)); 
    }
    50% { 
        filter: drop-shadow(0 0 30px rgba(250, 204, 21, 1)) brightness(1.2); /* Glow Kuning & Lebih Terang */
    }
}

.robot-is-loading {
    animation: robot-thinking-aura 0.7s infinite ease-in-out !important;
}
/* ========================================================= */
/* EFEK ROBOT LOADING (BERPIKIR / MEMPROSES)                 */
/* ========================================================= */
@keyframes robot-thinking-aura {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6)); }
    50% { filter: drop-shadow(0 0 35px rgba(250, 204, 21, 0.95)) brightness(1.2); }
}

@keyframes robot-eye-loading {
    0%, 100% { transform: scaleY(1); fill: #38bdf8; }
    50% { transform: scaleY(0.2); fill: #facc15; }
}

@keyframes robot-mouth-loading {
    0%, 100% { transform: scaleX(1); fill: #818cf8; }
    50% { transform: scaleX(1.4); fill: #facc15; }
}

/* Terapkan Aura ke Container Robot */
.robot-is-loading {
    animation: robot-thinking-aura 0.7s infinite ease-in-out !important;
}

/* Terapkan Animasi Berkedip Cepat ke Mata & Mulut */
.robot-is-loading #eye-l,
.robot-is-loading #eye-r,
.robot-is-loading .auto-blink {
    transform-origin: center;
    transform-box: fill-box; /* <--- WAJIB DITAMBAHKAN AGAR MATA TIDAK KABUR */
    animation: robot-eye-loading 0.5s infinite ease-in-out !important;
}

.robot-is-loading #mouth,
.robot-is-loading #login-mouth {
    transform-origin: center;
    transform-box: fill-box; /* <--- WAJIB DITAMBAHKAN JUGA DI SINI */
    animation: robot-mouth-loading 0.5s infinite ease-in-out !important;
}
/* --- TEMA WAKTU DINAMIS UNTUK ROBOT DASHBOARD --- */
:root {
    --hero-bg: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
    --hero-grid: rgba(59, 130, 246, 0.05);
    --hero-particle: #3b82f6;
    --hero-text: #1e293b;
    --hero-shadow: rgba(219, 234, 254, 1);
}

.germic-hero-section {
    background: var(--hero-bg) !important;
    box-shadow: 0 15px 25px -5px var(--hero-shadow), 0 8px 10px -6px var(--hero-shadow) !important;
    transition: background 2s ease-in-out, box-shadow 2s ease-in-out;
}

.cyber-grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, var(--hero-grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--hero-grid) 1px, transparent 1px) !important;
    background-size: 30px 30px;
    z-index: 1;
    transition: background-image 2s ease-in-out;
}

.data-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--hero-particle) !important;
    border-radius: 50%;
    opacity: 0.5;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 0 8px var(--hero-particle);
    transition: background 2s ease, box-shadow 2s ease;
}

@keyframes float-bg {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(10px); }
}