        /* --- 1. SETUP NEBULA THEME --- */
        :root {
            --bg-deep: #050508;
            --sidebar-bg: #0a0a10;
            --nebula-glow: radial-gradient(circle at 50% 0%, rgba(100, 50, 255, 0.15), transparent 60%);
            --glass-surface: rgba(255, 255, 255, 0.05);
            --glass-border: rgba(255, 255, 255, 0.1);
            --primary-gradient: linear-gradient(135deg, #a78bfa, #2dd4bf);
            --text-main: #f3f4f6;
            --text-muted: #9ca3af;
            --accent-purple: #a78bfa;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Outfit', sans-serif; -webkit-tap-highlight-color: transparent; }
        
/* assets/style.css */

body { 
    background-color: var(--bg-deep); 
    background-image: var(--nebula-glow); 
    background-repeat: no-repeat; 
    background-size: 100% 50%; 
    color: var(--text-main); 
    
    /* GANTI BAGIAN INI: */
    height: 100vh; /* Fallback untuk browser lama */
    height: 100dvh; /* Dynamic Viewport Height (Solusi biar pas di HP) */
    
    width: 100vw; 
    display: flex; 
    overflow: hidden; /* Pastikan body tidak bisa discroll, hanya main yang scroll */
}

        /* --- SIDEBAR --- */
        .sidebar {
            position: fixed; left: -280px; top: 0; width: 280px; height: 100%;
            background: var(--sidebar-bg); border-right: 1px solid var(--glass-border);
            z-index: 50; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 20px; display: flex; flex-direction: column;
        }
        .sidebar.open { left: 0; }
        
        .new-chat-btn {
            background: var(--glass-surface); border: 1px solid var(--glass-border); color: white;
            padding: 12px; border-radius: 12px; cursor: pointer; display: flex; align-items: center; gap: 10px;
            font-size: 14px; transition: all 0.2s; margin-bottom: 20px;
        }
        .new-chat-btn:hover { background: rgba(255,255,255,0.1); }
        .history-label { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
        .history-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
        .history-item {
            padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; color: #d1d5db;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background 0.2s;
            display: flex; align-items: center; gap: 8px;
        }
        .history-item:hover { background: rgba(255,255,255,0.05); }
        .history-item.active { background: rgba(167, 139, 250, 0.15); color: var(--accent-purple); border: 1px solid rgba(167, 139, 250, 0.2); }
        .overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.5); z-index: 40; opacity: 0; visibility: hidden; transition: 0.3s;
            backdrop-filter: blur(2px);
        }
        .overlay.active { opacity: 1; visibility: visible; }

        /* --- MAIN CONTENT --- */
        .app-content { flex: 1; display: flex; flex-direction: column; position: relative; width: 100%; transition: margin-left 0.3s; }

        header { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; z-index: 10; }
        .menu-btn { background: none; border: none; color: white; cursor: pointer; display: flex; align-items: center; }
        .brand { font-size: 20px; font-weight: 600; letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; }
        .brand-icon { font-size: 22px; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        .user-avatar { width: 34px; height: 34px; border-radius: 12px; background: #1f2937; display: flex; align-items: center; justify-content: center; font-size: 12px; border: 1px solid var(--glass-border); }

        main { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    padding: 20px; 
    overflow-y: auto; 
    /* UBAH BAGIAN INI: */
    padding-bottom: 160px; /* Diperbesar supaya chat tidak ketutupan input */
    scroll-behavior: smooth; /* Tambahan biar scroll-nya halus */
}

        /* HERO */
        .hero-section { flex: 1; display: flex; flex-direction: column; justify-content: center; transition: opacity 0.3s ease; }
        .greeting-text { font-size: 36px; line-height: 1.2; font-weight: 500; margin-bottom: 40px; opacity: 0; animation: fadeIn 0.8s ease forwards; }
        .highlight { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 600; }
        .suggestions-grid { display: grid; grid-template-columns: 1fr; gap: 12px; width: 100%; }
        .card { background: var(--glass-surface); border: 1px solid var(--glass-border); padding: 16px; border-radius: 16px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 12px; backdrop-filter: blur(10px); }
        .card:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
        .card-icon { padding: 8px; background: rgba(255,255,255,0.1); border-radius: 10px; color: var(--accent-purple); }
        .card-text { font-size: 14px; color: var(--text-muted); }

        /* CHAT BUBBLES */
        .chat-container { display: none; flex-direction: column; gap: 24px; }
        .msg-container { display: flex; flex-direction: column; max-width: 90%; animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
        .msg-wrapper-user { align-self: flex-end; align-items: flex-end; }
        .msg-wrapper-ai { align-self: flex-start; align-items: flex-start; }
        .msg-bubble { padding: 14px 18px; border-radius: 20px; font-size: 15px; line-height: 1.6; }
        .msg-user { background: #28293d; color: white; border-bottom-right-radius: 4px; }
        .msg-ai { background: transparent; color: #e5e7eb; padding-left: 0; padding-top: 0; }
        .ai-label { color: var(--accent-purple); font-weight: 600; font-size: 12px; margin-bottom: 6px; display: block; }

        /* --- UPDATED: SMALLER ACTION BAR --- */
        .ai-actions {
            display: flex;
            align-items: center;
            gap: 8px; /* Jarak antar tombol diperkecil */
            margin-top: 4px; /* Jarak dari teks diperkecil */
            padding-left: 0;
            opacity: 0;
            animation: fadeIn 0.5s ease forwards 0.5s;
        }

        .action-btn-small {
            background: transparent;
            border: none;
            color: #6b7280; /* Warna lebih soft */
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            padding: 0;
            width: 26px; /* Ukuran tombol lebih kecil */
            height: 26px;
            border-radius: 50%;
        }

        .action-btn-small:hover {
            background: rgba(255,255,255,0.1);
            color: var(--text-main);
        }

        .action-btn-small span {
            font-size: 16px; /* Ukuran Ikon lebih kecil */
        }

        /* States */
        .liked { color: #4ade80 !important; font-variation-settings: 'FILL' 1; }
        .disliked { color: #f87171 !important; font-variation-settings: 'FILL' 1; }
        .speaking { color: var(--accent-purple) !important; animation: pulse-speak 1s infinite; }
        @keyframes pulse-speak { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
        
        /* LOADING */
        .ai-loading span { display: inline-block; width: 6px; height: 6px; background: var(--accent-purple); border-radius: 50%; margin-right: 4px; animation: pulse 1.4s infinite ease-in-out both; }
        .ai-loading span:nth-child(1) { animation-delay: -0.32s; } .ai-loading span:nth-child(2) { animation-delay: -0.16s; }
        @keyframes fadeIn { to { opacity: 1; } } @keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        /* INPUT */
        .input-wrapper { position: fixed; bottom: 24px; left: 20px; right: 20px; z-index: 20; }
        .input-bar { background: rgba(30, 30, 40, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border); border-radius: 24px; display: flex; align-items: center; padding: 8px 12px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); }
        .action-btn { width: 40px; height: 40px; border-radius: 50%; border: none; background: transparent; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: color 0.2s; }
        input { flex: 1; background: transparent; border: none; outline: none; color: white; font-size: 16px; padding: 0 10px; }
        .send-btn { background: var(--text-main); color: var(--bg-deep); display: none; }
        
        /* Responsive */
        @media (min-width: 768px) {
            .sidebar { left: 0; }
            .app-content { margin-left: 280px; }
            .menu-btn { display: none; }
            .overlay { display: none !important; }
            .input-wrapper { left: 300px; }
        }
        
        /* --- SLASH MENU PRO --- */
.slash-menu {
    position: absolute;
    bottom: 85px; /* Sedikit lebih tinggi dari input */
    left: 10px;   /* Margin kiri */
    right: 10px;  /* Margin kanan */
    background: rgba(15, 15, 25, 0.95); /* Background gelap solid semi-transparan */
    backdrop-filter: blur(20px); /* Efek blur kuat */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(167, 139, 250, 0.3); /* Border ungu tipis */
    border-radius: 16px;
    padding: 12px;
    display: none; /* Default hidden */
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.6); /* Bayangan kuat ke atas */
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    animation: popupMenu 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom center;
}

.slash-menu.active {
    display: flex;
}

/* Header kecil di dalam menu (Opsional, ditambahkan via JS nanti) */
.slash-header {
    font-size: 11px;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0 10px 5px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 5px;
}

.slash-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    border: 1px solid transparent;
}

.slash-item:hover {
    background: rgba(167, 139, 250, 0.1); /* Background ungu transparan saat hover */
    border-color: rgba(167, 139, 250, 0.2);
    transform: translateX(5px); /* Efek geser sedikit saat hover */
}

.slash-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #2d2d3a, #1a1a24); /* Gradient tombol */
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa; /* Warna ikon ungu */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.slash-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.slash-name {
    font-weight: 600;
    color: #f3f4f6;
    font-size: 15px;
    margin-bottom: 2px;
}

.slash-desc {
    color: #9ca3af;
    font-size: 12px;
}

@keyframes popupMenu {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
