/* =========================================
   ROOT
========================================= */
:root {
    --bg: #eef6fc;
    --surface: #ffffff;
    --surface-2: #f2f8fd;
    --surface-3: #e3eff9;

    --text: #0a2540;
    --text-2: #4a6a8a;
    --text-3: #8aa2bd;

    --border: #d6e6f3;
    --border-strong: #b8d4e8;

    /* === FAMUKI PALETTE === */
    --primary: #1e5fbf;              /* Royal Blue */
    --primary-2: #22b8ff;            /* Cyan Bright */
    --primary-light: #e0f0ff;        /* Light blue tint */
    --primary-glow: rgba(30, 95, 191, .35);

    --navy: #0a2540;
    --sky: #7fd6f7;
    --cyan: #22b8ff;

    --danger: #ef4444;
    --success: #10b981;

    --shadow-sm: 0 2px 8px rgba(10, 37, 64, .05);
    --shadow: 0 10px 40px rgba(10, 37, 64, .08);
    --shadow-lg: 0 20px 60px rgba(10, 37, 64, .14);

    --ease: cubic-bezier(.4, 0, .2, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);
    --transition: .25s var(--ease);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background .35s var(--ease), color .35s var(--ease);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 10%, rgba(34, 184, 255, .10), transparent 45%),
        radial-gradient(circle at 85% 90%, rgba(30, 95, 191, .08), transparent 45%);
    pointer-events: none;
    z-index: -1;
}

button, input { font: inherit; }
button { border: 0; cursor: pointer; background: transparent; color: inherit; }

/* hide scrollbar (tetap bisa scroll) */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }

.app { min-height: 100vh; }

/* =========================================
   TOPBAR (kecil, rapi, konsisten)
========================================= */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 64px;
    padding: 0 100px 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;   /* ← logo & actions di kiri */
    gap: 14px;                     /* ← jarak antara logo & actions */
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.brand-logo {
    width: 46px; height: 46px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: none;                  /* hapus gradient */
    box-shadow: none;                  /* hapus shadow */
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    transition: transform .35s var(--spring);
}
.brand-logo:hover .brand-logo-img {
    transform: scale(1.08);
}
.brand-logo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .8s var(--ease);
}
.brand-logo:hover::after { transform: translateX(100%); }
.brand-logo:hover { transform: translateY(-1px) scale(1.03); }

.top-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* semua tombol topbar kecil & seragam 36x36 */
.top-btn {
    width: 36px; height: 36px;
    border-radius: 11px;
    display: grid; place-items: center;
    color: var(--text-2);
    font-size: 14px;
    position: relative;
    background: transparent;
    transition: var(--transition);
}
.top-btn:hover {
    background: var(--surface);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(20,25,40,.08);
    transform: translateY(-1px);
}
.top-btn:active { transform: translateY(0) scale(.94); }

.top-btn .dot {
    position: absolute;
    width: 7px; height: 7px;
    background: var(--danger);
    border-radius: 50%;
    top: 5px; right: 5px;
    box-shadow: 0 0 0 2px var(--surface);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: .7; }
}

.top-btn .badge {
    position: absolute;
    top: 1px; right: 0;
    min-width: 15px; height: 15px;
    padding: 0 3px;
    display: grid; place-items: center;
    border-radius: 8px;
    background: var(--danger);
    color: white;
    font-size: 8px; font-weight: 700;
    box-shadow: 0 0 0 2px var(--surface);
}

/* =========================================
   MAIN CONTENT
========================================= */
.content {
    padding: 92px 96px 60px 32px;
    max-width: 1300px;
    margin: auto;
}

/* VIEW (halaman internal) — hanya satu yang aktif */
.view { display: none; animation: fadeUp .35s var(--ease); }
.view.active { display: block; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.view-header { margin-bottom: 24px; }

.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    color: var(--text-3); font-size: 12px;
    margin-bottom: 8px;
}
.breadcrumb i { font-size: 8px; opacity: .6; }
.breadcrumb strong { color: var(--text-2); font-weight: 600; }

h1 {
    font-size: 28px;
    letter-spacing: -.8px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text), var(--text-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle { color: var(--text-2); margin-top: 6px; font-size: 13px; }

/* =========================================
   STAT GRID (beranda)
========================================= */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(99,102,241,.05));
    opacity: 0;
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}
.stat-card:hover::before { opacity: 1; }

.stat-icon {
    width: 46px; height: 46px;
    border-radius: 14px;
    display: grid; place-items: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: var(--transition);
}
.stat-card:hover .stat-icon { transform: scale(1.08) rotate(-4deg); }

.stat-blue    { background: linear-gradient(135deg, #e9ecff, #dfe3ff); color: #5b5ce2; }
.stat-indigo  { background: linear-gradient(135deg, #e8ecff, #d8deff); color: #6366f1; }
.stat-orange  { background: linear-gradient(135deg, #fff4e7, #ffe9d1); color: #f09b42; }
.stat-red     { background: linear-gradient(135deg, #ffe9ec, #ffdde1); color: #ef5b69; }
.stat-green   { background: linear-gradient(135deg, #e5f8ef, #d5f2e4); color: #31a978; }
.stat-purple  { background: linear-gradient(135deg, #d8f1ff, #bfe6ff); color: #22b8ff; }

.stat-card span { display: block; font-size: 11px; color: var(--text-3); font-weight: 500; }
.stat-card strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.5px; margin-top: 2px; }
.stat-card small { display: inline; font-size: 10px; color: var(--text-3); font-weight: 500; margin-left: 3px; }

/* =========================================
   SECTION
========================================= */
.section { margin-bottom: 28px; }
.section-title {
    display: flex; justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.section-title h2 { font-size: 16px; font-weight: 700; letter-spacing: -.3px; }
.section-title span { display: block; color: var(--text-3); font-size: 11px; margin-top: 3px; }

/* =========================================
   WEEKLY CHART
========================================= */
.weekly-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.weekly-chart {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    height: 140px;
    align-items: end;
    margin-bottom: 18px;
}

.bar {
    height: var(--h);
    background: linear-gradient(180deg, #bfe0ff, #7ec7f5);
    border-radius: 10px 10px 6px 6px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: inset 0 -2px 0 rgba(30, 95, 191, .15);
}
.bar::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,.25), transparent 50%);
}
.bar:hover {
    transform: translateY(-3px) scaleY(1.02);
    background: linear-gradient(180deg, #a0d4f8, #4fb0ee);
    box-shadow: 0 8px 20px rgba(34, 184, 255, .35);
}
.bar.active {
    background: linear-gradient(180deg, #22b8ff, #1e5fbf);
    box-shadow: 0 10px 26px rgba(34, 184, 255, .45);
}

.bar span {
    position: absolute;
    bottom: -22px;
    font-size: 10px;
    color: var(--text-3);
    font-weight: 600;
}
.bar.active span { color: var(--primary); }

.weekly-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 30px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.weekly-footer > div { text-align: center; }
.weekly-footer span { display: block; font-size: 10px; color: var(--text-3); font-weight: 500; }
.weekly-footer strong { display: block; font-size: 16px; font-weight: 800; margin-top: 2px; letter-spacing: -.3px; }

/* =========================================
   LIST (A-Z / Terbaru / Kategori)
========================================= */
.list-az { display: flex; flex-direction: column; gap: 6px; }

.list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: var(--transition);
    position: relative;
}
.list-item:hover {
    transform: translateX(3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.list-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: grid; place-items: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: var(--transition);
}
.list-item:hover .list-icon { transform: scale(1.06); }

.folder-blue   { background: linear-gradient(135deg, #e9ecff, #dfe3ff); color: #5b5ce2; }
.folder-purple { background: linear-gradient(135deg, #d8f1ff, #bfe6ff); color: #22b8ff; }
.folder-red    { background: linear-gradient(135deg, #ffe9ec, #ffdde1); color: #ef5b69; }
.folder-green  { background: linear-gradient(135deg, #e5f8ef, #d5f2e4); color: #31a978; }
.pdf           { background: linear-gradient(135deg, #fff0f1, #ffe4e7); color: #ed5961; }
.doc           { background: linear-gradient(135deg, #e9ecff, #d8deff); color: #4a6cf7; }
.xls           { background: linear-gradient(135deg, #e5f8ef, #d5f2e4); color: #1f9d55; }
.image         { background: linear-gradient(135deg, #fff4e7, #ffe9d1); color: #f09b42; }
.video         { background: linear-gradient(135deg, #eeedff, #e3e2ff); color: #6566df; }
.audio         { background: linear-gradient(135deg, #e8f8f0, #d8f2e4); color: #2ca775; }
.chat          { background: linear-gradient(135deg, #f0eaff, #e6dcff); color: #9568ef; }

.list-info { flex: 1; min-width: 0; }
.list-info strong {
    display: block; font-size: 13px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.list-info span { display: block; font-size: 11px; color: var(--text-2); margin-top: 3px; }

.more-btn {
    width: 30px; height: 30px;
    border-radius: 9px;
    color: var(--text-3);
    display: grid; place-items: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.more-btn:hover { background: var(--surface-2); color: var(--primary); }

/* =========================================
   FORMAT GROUP (File / Foto / Video / Audio)
========================================= */
.format-group { margin-bottom: 24px; }

.format-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
    padding-left: 4px;
}
.format-title i { color: var(--primary); font-size: 12px; }

/* =========================================
   RIGHT NAV — hanya nav items
========================================= */
.right-nav {
    position: fixed;
    right: 12px;
    top: 12px;
    /* bottom disesuaikan agar search & plus tetap terlihat */
    bottom: 130px;
    width: 58px;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(20,25,40,.10);
    display: flex; flex-direction: column;
    align-items: center;
    padding: 8px 5px;
    z-index: 200;
    overflow-y: auto;
    overflow-x: visible;
}

.nav-item {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px;
    color: var(--text-3);
    transition: var(--transition);
    margin-bottom: 2px;
    flex-shrink: 0;
}
.nav-item i { font-size: 14px; transition: var(--transition); }
.nav-item span { font-size: 7.5px; font-weight: 600; letter-spacing: -.1px; }

.nav-item:hover {
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
}
.nav-item:hover i { transform: scale(1.15); }

.nav-item.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
    box-shadow: 0 6px 16px var(--primary-glow);
    animation: popIn .35s var(--spring);
}
@keyframes popIn {
    0%   { transform: scale(.85); }
    60%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* =========================================
   SEARCH — FIXED, di bawah right-nav
   Posisi: mengikuti kolom kanan (right: 12px)
   Expand: melebar ke kiri bebas
========================================= */
.nav-search {
    position: fixed;
    right: 12px;
    bottom: 74px;
    width: 56px;
    height: 44px;
    border-radius: 14px;
    background: var(--surface);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    box-shadow:
        0 10px 30px rgba(10, 37, 64, .10),
        0 4px 8px rgba(10, 37, 64, .05);
    overflow: hidden;
    transition:
        width .4s var(--spring),
        box-shadow .3s var(--ease),
        border-color .3s var(--ease),
        background .3s var(--ease);
    z-index: 240;
    padding: 0;
}

.nav-search .search-toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 56px;
    height: 100%;
    display: grid;
    place-items: center;
    color: white;
    font-size: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border: 0;
    border-radius: 13px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .3);
    overflow: hidden;
    transition:
        background .3s var(--ease),
        box-shadow .3s var(--ease);
    z-index: 2;
}
.nav-search .search-toggle::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .25), transparent 55%);
    border-radius: inherit;
    pointer-events: none;
}
.nav-search .search-toggle i {
    position: relative;
    z-index: 1;
    transition: transform .35s var(--spring);
}
.nav-search .search-toggle:hover {
    background: linear-gradient(135deg, var(--primary-2), var(--primary));
    box-shadow:
        0 8px 22px var(--primary-glow),
        inset 0 1px 0 rgba(255, 255, 255, .35);
}
.nav-search .search-toggle:hover i {
    transform: scale(1.15) rotate(-6deg);
}
.nav-search .search-toggle:active i {
    transform: scale(.9);
}

.nav-search input {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 56px;                    /* ✅ sisakan ruang untuk toggle */
    width: auto;
    height: 100%;
    border: 0; outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    padding: 0 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease) .05s;
}
.nav-search input::placeholder { color: var(--text-3); font-weight: 400; }

.nav-search .search-clear {
    order: 3;
    width: 26px; height: 26px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--text-2);
    font-size: 11px;
    display: grid; place-items: center;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(.5);
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .3s var(--spring), background .2s var(--ease);
}
.nav-search .search-clear:hover { background: #ffe4e7; color: var(--danger); }
.nav-search .search-clear.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* EXPANDED */
.nav-search.expanded {
    width: 260px;
    background: var(--surface);
    border-color: var(--primary);
    box-shadow:
        0 10px 30px rgba(10, 37, 64, .14),
        0 4px 10px rgba(10, 37, 64, .08);
}
.nav-search.expanded input {
    opacity: 1;
    pointer-events: auto;
}

/* =========================================
   PLUS BUTTON — FIXED di kanan bawah
========================================= */
.nav-plus {
    position: fixed;
    right: 12px;
    bottom: 12px;
    width: 58px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 250;
}

.plus-button {
    width: 52px; height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
    font-size: 19px;
    display: grid; place-items: center;
    box-shadow:
        0 10px 26px var(--primary-glow),
        0 3px 8px rgba(99,102,241,.22),
        inset 0 1px 0 rgba(255,255,255,.3);
    transition:
        transform .4s var(--spring),
        box-shadow .3s var(--ease),
        background .3s var(--ease),
        border-radius .3s var(--ease);
    position: relative;
    overflow: hidden;
}
.plus-button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,.28), transparent 55%);
    pointer-events: none;
}
.plus-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 16px 34px var(--primary-glow),
        0 4px 10px rgba(99,102,241,.25),
        inset 0 1px 0 rgba(255,255,255,.35);
}
.plus-button:active { transform: translateY(0) scale(.94); }

.nav-plus.open .plus-button {
    transform: rotate(135deg);
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow:
        0 12px 26px rgba(239,68,68,.45),
        0 3px 8px rgba(239,68,68,.25),
        inset 0 1px 0 rgba(255,255,255,.3);
}
.nav-plus.open .plus-button:hover { transform: rotate(135deg) scale(1.08); }

/* MENU — muncul HORIZONTAL di sisi KIRI tombol + */
.plus-menu {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    background: none;
    border: 0;
    box-shadow: none;
    outline: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(14px);
    transform-origin: right center;
    transition:
        opacity .3s var(--ease),
        transform .4s var(--spring);
}

.nav-plus.open .plus-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0) scale(1);
}

.plus-option {
    position: relative;
    width: 62px;
    height: 62px;
    /* ✅ bubble: radius besar relatif ke ukuran */
    border-radius: 22px;
    background: var(--surface);
    color: var(--primary);
    /* ✅ border sangat tipis & soft */
    border: 1px solid var(--border-strong);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px;
    font-family: inherit;
    cursor: pointer;
    /* ✅ shadow sangat halus */
    box-shadow: 0 2px 6px rgba(10, 37, 64, .05);
    opacity: 0;
    transform: translateX(14px) scale(.7);
    transition:
        transform .4s var(--spring),
        background .25s var(--ease),
        color .25s var(--ease),
        border-color .25s var(--ease),
        box-shadow .25s var(--ease);
}
.nav-plus.open .plus-option {
    opacity: 1;
    transform: translateX(0) scale(1);
}
.nav-plus.open .plus-option:nth-child(1) { transition-delay: .05s; }
.nav-plus.open .plus-option:nth-child(2) { transition-delay: .12s; }

.plus-option-icon {
    width: auto;
    height: auto;
    border-radius: 0;
    display: grid;
    place-items: center;
    background: none;
    box-shadow: none;
    color: var(--primary);
    font-size: 24px;                 /* ✅ icon lebih besar */
    line-height: 1;
    transition:
        color .25s var(--ease),
        transform .35s var(--spring);
}

.plus-option-label {
    font-size: 8.5px;                /* ✅ text lebih kecil */
    font-weight: 700;
    color: var(--text);
    transition: color .25s var(--ease);
    white-space: nowrap;
    letter-spacing: -.15px;
    line-height: 1;
}

.plus-option:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
    border-color: transparent;
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 10px 22px var(--primary-glow),
        0 3px 8px rgba(30, 95, 191, .2);
}
.plus-option:hover .plus-option-icon {
    background: none;
    box-shadow: none;
    color: white;
    transform: scale(1.15);
}
.plus-option:hover .plus-option-label {
    color: white;
}
.plus-option:active {
    transform: translateY(-1px) scale(.97);
    box-shadow: 0 4px 10px var(--primary-glow);
}

/* =========================================
   SLIDE PANEL (BILAH dari KIRI)
========================================= */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 20, .32);
    backdrop-filter: blur(3px);
    z-index: 450;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease);
}
.overlay.active { opacity: 1; pointer-events: auto; }

.slide-panel {
    position: fixed;
    top: 0; left: 0;
    width: 360px;
    max-width: 90vw;
    height: 100vh;
    background: var(--surface);
    z-index: 500;
    transform: translateX(-105%);
    transition: transform .4s var(--ease);
    box-shadow: 24px 0 60px rgba(0,0,0,.14);
    padding: 24px 20px;
    overflow-y: auto;
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
}
.slide-panel.active { transform: translateX(0); }

.panel-header {
    display: flex; justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 22px;
}
.panel-header span { color: var(--text-3); font-size: 11px; font-weight: 500; }
.panel-header h2 { font-size: 22px; margin-top: 3px; font-weight: 800; letter-spacing: -.5px; }

.close-panel {
    width: 36px; height: 36px;
    border-radius: 11px;
    background: var(--surface-2);
    color: var(--text-2);
    display: grid; place-items: center;
    transition: var(--transition);
}
.close-panel:hover { background: #ffe4e7; color: var(--danger); transform: rotate(90deg); }

/* =========================================
   PROFILE
========================================= */
.profile-main {
    display: flex; align-items: center; gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
    border-radius: 16px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
}
.profile-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
    display: grid; place-items: center;
    font-weight: 800; font-size: 17px;
    box-shadow: 0 8px 20px var(--primary-glow);
}
.profile-main strong { display: block; font-size: 15px; font-weight: 700; }
.profile-main span { display: block; color: var(--text-3); font-size: 11px; margin-top: 3px; }

.member {
    display: flex; align-items: center; gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: var(--transition);
}
.member:hover { background: var(--surface-2); }

.member-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: grid; place-items: center;
    font-weight: 800; font-size: 14px;
    flex-shrink: 0;
}
.member-info { flex: 1; }
.member-info strong { display: block; font-size: 13px; font-weight: 700; }
.member-info span { display: block; color: var(--text-3); font-size: 10px; margin-top: 2px; }
.member-storage { text-align: right; }
.member-storage strong { display: block; font-size: 12px; font-weight: 700; }
.member-storage span { color: var(--text-3); font-size: 10px; }

/* =========================================
   SETTINGS
========================================= */
.setting-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
}
.setting-item:hover { background: var(--surface-2); }

.setting-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: grid; place-items: center;
    flex-shrink: 0;
    font-size: 14px;
}
.setting-item > div:nth-child(2) { flex: 1; }
.setting-item strong { display: block; font-size: 13px; font-weight: 700; }
.setting-item span { display: block; color: var(--text-3); font-size: 10px; margin-top: 3px; }
.arrow { color: var(--text-3); font-size: 11px; }

.switch input { display: none; }
.switch span {
    display: block;
    width: 42px; height: 24px;
    border-radius: 20px;
    background: #dfe2e8;
    position: relative;
    transition: .3s var(--ease);
    cursor: pointer;
}
.switch span::after {
    content: "";
    width: 18px; height: 18px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px; left: 3px;
    transition: .3s var(--spring);
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.switch input:checked + span { background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.switch input:checked + span::after { transform: translateX(18px); }

/* =========================================
   TRASH
========================================= */
.trash-warning {
    padding: 12px;
    background: linear-gradient(135deg, #fff5e8, #ffe9cc);
    color: #ad7629;
    border-radius: 12px;
    font-size: 11px;
    display: flex; gap: 10px;
    margin-bottom: 16px;
    line-height: 1.5;
    font-weight: 500;
}
.trash-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: var(--transition);
}
.trash-item:hover { background: var(--surface-2); }
.trash-file-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #fff0f1, #ffe4e7);
    color: var(--danger);
    flex-shrink: 0;
    font-size: 15px;
}
.trash-item > div:nth-child(2) { flex: 1; }
.trash-item strong { display: block; font-size: 12px; font-weight: 700; }
.trash-item span, .trash-item small { display: block; font-size: 10px; color: var(--text-3); margin-top: 2px; }
.trash-item button {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: grid; place-items: center;
    transition: var(--transition);
}
.trash-item button:hover { background: var(--primary); color: white; transform: rotate(-180deg); }

/* =========================================
   NOTIFICATIONS
========================================= */
.notification-item {
    display: flex; gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: var(--transition);
}
.notification-item:hover { background: var(--surface-2); }
.notification-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: grid; place-items: center;
    flex-shrink: 0;
    font-size: 15px;
}
.notification-icon.upload { background: var(--primary-light); color: var(--primary); }
.notification-icon.share { background: #e8f8ef; color: var(--success); }
.notification-icon.system { background: #fff4e5; color: #e39b35; }
.notification-item strong { font-size: 12px; font-weight: 700; }
.notification-item p { font-size: 11px; color: var(--text-2); margin-top: 3px; line-height: 1.4; }
.notification-item small { display: block; font-size: 9px; color: var(--text-3); margin-top: 5px; font-weight: 500; }

/* =========================================
   MODAL
========================================= */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 20, .45);
    backdrop-filter: blur(6px);
    z-index: 800;
    display: grid; place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease);
    padding: 20px;
}
.modal.active { opacity: 1; pointer-events: auto; }

.modal-box {
    width: min(400px, 100%);
    background: var(--surface);
    border-radius: 24px;
    padding: 28px;
    text-align: center;
    position: relative;
    transform: translateY(30px) scale(.95);
    transition: transform .4s var(--spring);
    box-shadow: 0 30px 80px rgba(20,25,40,.25);
    border: 1px solid var(--border);
}
.modal.active .modal-box { transform: translateY(0) scale(1); }

.modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text-2);
    display: grid; place-items: center;
    transition: var(--transition);
}
.modal-close:hover { background: #ffe4e7; color: var(--danger); transform: rotate(90deg); }

.modal-icon {
    width: 64px; height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-light), #f5f0ff);
    color: var(--primary);
    display: grid; place-items: center;
    font-size: 26px;
    margin: 0 auto 16px;
}
.folder-modal { background: linear-gradient(135deg, #fff3df, #ffe8c4); color: #e29a37; }

.modal-box h2 { font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.modal-box > p { color: var(--text-2); font-size: 12px; margin: 8px 0 20px; line-height: 1.5; }

.upload-area {
    border: 2px dashed var(--border-strong);
    border-radius: 16px;
    padding: 28px 20px;
    display: flex; flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: var(--text-2);
    transition: var(--transition);
    background: var(--surface-2);
}
.upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-area i { font-size: 24px; color: var(--primary); margin-bottom: 10px; }
.upload-area strong { font-size: 13px; font-weight: 700; }
.upload-area span { font-size: 10px; margin-top: 4px; color: var(--text-3); }
.upload-area input { display: none; }

.folder-input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 13px;
    outline: none;
    padding: 0 14px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 13px;
    margin-bottom: 10px;
    transition: var(--transition);
}
.folder-input:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px var(--primary-light); }

.primary-btn {
    width: 100%;
    height: 46px;
    margin-top: 14px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 8px 20px var(--primary-glow);
    transition: var(--transition);
}
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px var(--primary-glow); }
.primary-btn:active { transform: translateY(0); }

/* =========================================
   DARK MODE
========================================= */
body.dark {
    --bg: #061524;
    --surface: #0d2138;
    --surface-2: #122a46;
    --surface-3: #183354;

    --text: #eaf4ff;
    --text-2: #a4c2de;
    --text-3: #6a8dae;

    --border: #1b3a5c;
    --border-strong: #2a5077;

    --primary: #2d7ce0;
    --primary-2: #22b8ff;
    --primary-light: #10335a;
    --primary-glow: rgba(45, 124, 224, .45);
}

body.dark::before {
    background:
        radial-gradient(circle at 15% 10%, rgba(34, 184, 255, .14), transparent 45%),
        radial-gradient(circle at 85% 90%, rgba(30, 95, 191, .14), transparent 45%);
}
body.dark .topbar { background: rgba(13, 33, 56, .8); }
body.dark .right-nav {
    background: rgba(13, 33, 56, .9);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
body.dark .switch span { background: #1b3a5c; }
body.dark .trash-warning { background: linear-gradient(135deg, #30281d, #3a2f20); }
/* Dark mode — bar chart kontras & jelas */
body.dark .bar {
    background: linear-gradient(180deg, #2d7ce0, #1e5fbf);
    box-shadow:
        0 4px 14px rgba(34, 184, 255, .25),
        inset 0 1px 0 rgba(255, 255, 255, .1);
}
body.dark .bar:hover {
    background: linear-gradient(180deg, #22b8ff, #2d7ce0);
    box-shadow:
        0 6px 20px rgba(34, 184, 255, .45),
        inset 0 1px 0 rgba(255, 255, 255, .15);
}
body.dark .bar.active {
    background: linear-gradient(180deg, #22b8ff, #1e5fbf);
    box-shadow:
        0 8px 24px rgba(34, 184, 255, .55),
        0 0 0 1px rgba(34, 184, 255, .3),
        inset 0 1px 0 rgba(255, 255, 255, .2);
}
body.dark .bar span { color: #a4c2de; }
body.dark .bar.active span { color: #22b8ff; font-weight: 700; }

body.dark .nav-search {
    background: var(--surface-2);
    border-color: var(--border-strong);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, .4),
        0 4px 8px rgba(0, 0, 0, .25);
}
body.dark .nav-search.expanded {
    background: var(--surface);
    border-color: var(--primary);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, .5),
        0 4px 10px rgba(0, 0, 0, .3);
}

/* Wrapper tetap transparan di dark mode */
body.dark .plus-menu {
    background: none;
    border: 0;
    box-shadow: none;
    outline: none;
}

/* Satu border individual di dark mode */
body.dark .plus-option {
    background: #122a46;
    color: #7fd6f7;
    border: 1px solid #1b3a5c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

body.dark .plus-option:hover {
    background: linear-gradient(135deg, #2d7ce0, #22b8ff);
    color: white;
    border-color: #22b8ff;
    box-shadow:
        0 12px 26px rgba(34, 184, 255, .45),
        0 2px 6px rgba(34, 184, 255, .2);
}

body.dark .plus-option-label {
    color: #eaf4ff;
}

body.dark .plus-option:hover .plus-option-label {
    color: white;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1100px) {
    .content { padding-right: 92px; padding-left: 24px; }
}

@media (max-width: 1000px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
    .topbar { height: 60px; padding: 0 88px 0 14px; }
    .brand-logo { width: 46px; height: 46px; border-radius: 50%; }
    .top-actions { gap: 3px; padding: 2px; border-radius: 12px; }
    .top-btn { width: 32px; height: 32px; font-size: 12px; border-radius: 9px; }
    .content { padding: 82px 84px 80px 14px; }
    h1 { font-size: 22px; }

    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 14px; gap: 10px; }
    .stat-icon { width: 40px; height: 40px; font-size: 15px; }
    .stat-card strong { font-size: 17px; }

    .right-nav { width: 60px; right: 8px; top: 8px; bottom: 8px; border-radius: 18px; padding: 10px 5px; }
    .nav-item { width: 50px; height: 48px; }
    .nav-item i { font-size: 14px; }
    .nav-item span { font-size: 7.5px; }

    .nav-search {
        right: 8px; bottom: 68px;
        width: 52px; height: 42px;
        border-radius: 13px;
    }
    .nav-search .search-toggle {
        width: 50px;
        border-radius: 12px;
        font-size: 14px;
    }
    .nav-search input {
        right: 50px;
        font-size: 12px;
        padding: 0 12px;
    }
    .nav-search.expanded { width: 230px; }

    .plus-button { width: 48px; height: 48px; font-size: 18px; }
    .plus-option { width: 44px; height: 44px; font-size: 15px; }

    .slide-panel { width: 88vw; padding: 20px 16px; }

    .weekly-chart { height: 110px; }
    .weekly-footer strong { font-size: 14px; }

    .right-nav {
        width: 52px; right: 8px; top: 8px; bottom: 122px;
        border-radius: 16px; padding: 6px 4px;
    }
    .nav-item { width: 42px; height: 42px; border-radius: 11px; margin-bottom: 2px; }
    .nav-item i { font-size: 13px; }
    .nav-item span { font-size: 7px; }

    .nav-search {
        right: 8px; bottom: 68px;
        width: 52px; height: 42px;
        border-radius: 13px;
    }
    .nav-search .search-toggle { width: 50px; min-width: 50px; height: 40px; font-size: 14px; }
    .nav-search.expanded { width: 250px; }
    .nav-search input { font-size: 12px; }

    .nav-plus { right: 8px; bottom: 8px; width: 52px; height: 48px; }
    .plus-button { width: 48px; height: 48px; font-size: 17px; border-radius: 14px; }

    .plus-menu {
        right: 100%;
        margin-right: 8px;
        gap: 6px;
        max-width: calc(100vw - 70px);
    }
    .plus-option {
        width: 64px;
        height: 72px;
        border-radius: 14px;
        gap: 5px;
        padding: 6px 3px;
    }
    .plus-option-icon { width: 28px; height: 28px; font-size: 13px; border-radius: 9px; }
    .plus-option-label { font-size: 9px; }
}

/* =========================================
   LOADING SCREEN
========================================= */
/* Cegah scroll & background bocor saat loading aktif */
body:has(.loading-screen:not(.hidden)) {
    overflow: hidden;
    background: #061524;      /* warna gelap biar tepi tidak putih/abu */
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;           /* ✅ dynamic viewport — untuk HP modern */
    z-index: 9999;
    display: grid;
    place-items: center;
    background: var(--bg);
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition:
        opacity .6s var(--ease),
        visibility .6s var(--ease);
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Background dengan gradient mengambang */
.loader-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(34, 184, 255, .15), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(30, 95, 191, .15), transparent 45%);
    animation: loaderBgMove 8s ease-in-out infinite;
}
@keyframes loaderBgMove {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50%      { transform: scale(1.15) rotate(8deg); }
}

.loader-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    animation: loaderFadeIn .8s var(--ease);
}
@keyframes loaderFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   LOGO + RINGS
========================================= */
.loader-logo {
    position: relative;
    width: 110px;
    height: 110px;
    display: grid;
    place-items: center;
}

.loader-logo-inner {
    background: none;
    box-shadow: none;
    width: 90px;
    height: 90px;
    border-radius: 22px;
    animation: loaderPulse 2.2s ease-in-out infinite;
}
.loader-logo-inner span {
    background: linear-gradient(135deg, #ffffff, #d4f0ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.loader-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .15));
}
@keyframes loaderPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 16px 40px var(--primary-glow),
            0 6px 14px rgba(30, 95, 191, .25),
            inset 0 2px 0 rgba(255, 255, 255, .3);
    }
    50% {
        transform: scale(1.06);
        box-shadow:
            0 22px 50px var(--primary-glow),
            0 8px 18px rgba(30, 95, 191, .3),
            inset 0 2px 0 rgba(255, 255, 255, .35);
    }
}

/* Ring berputar */
.loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--primary-2);
    animation: loaderRingSpin 1.8s linear infinite;
    z-index: 2;
}
.loader-ring-2 {
    inset: 10px;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: var(--primary-2);
    border-left-color: var(--primary);
    animation-duration: 2.6s;
    animation-direction: reverse;
    opacity: .7;
}
@keyframes loaderRingSpin {
    to { transform: rotate(360deg); }
}

/* =========================================
   BRAND
========================================= */
.loader-brand {
    text-align: center;
    animation: loaderFadeIn .8s var(--ease) .15s both;
}
.loader-brand h1 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}
.loader-brand p {
    font-size: 11px;
    color: var(--text-3);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

/* =========================================
   PROGRESS BAR
========================================= */
.loader-bar {
    width: 220px;
    height: 4px;
    border-radius: 20px;
    background: var(--surface-3);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(10, 37, 64, .08);
}
.loader-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--primary));
    background-size: 200% 100%;
    animation:
        loaderBarFill 2.4s cubic-bezier(.4, 0, .2, 1) forwards,
        loaderBarShimmer 1.6s linear infinite;
    box-shadow: 0 0 12px var(--primary-glow);
}
@keyframes loaderBarFill {
    0%   { width: 0%; }
    40%  { width: 55%; }
    70%  { width: 78%; }
    100% { width: 100%; }
}
@keyframes loaderBarShimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* =========================================
   TIP TEXT
========================================= */
.loader-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-3);
    font-weight: 500;
    animation: loaderFadeIn .8s var(--ease) .3s both;
}
.loader-tip i {
    color: var(--primary-2);
    font-size: 13px;
    animation: loaderTipFloat 2s ease-in-out infinite;
}
@keyframes loaderTipFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}

/* =========================================
   DARK MODE
========================================= */
body.dark .loading-screen { background: var(--bg); }
body.dark .loader-bg {
    background:
        radial-gradient(circle at 20% 20%, rgba(34, 184, 255, .2), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(30, 95, 191, .18), transparent 45%);
}
body.dark .loader-bar {
    background: var(--surface-2);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3);
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 650px) {
    .loader-logo { width: 90px; height: 90px; }
    .loader-logo-inner { width: 60px; height: 60px; border-radius: 18px; font-size: 26px; }
    .loader-brand h1 { font-size: 24px; }
    .loader-bar { width: 180px; }
}

/* =========================================
   TOAST
========================================= */
.toast {
    position: fixed;
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(10, 37, 64, .92);
    color: white;
    padding: 12px 18px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 14px 40px rgba(10, 37, 64, .35);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .4s var(--spring);
    max-width: 80vw;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast i { color: var(--primary-2); font-size: 15px; }
body.dark .toast { background: rgba(34, 184, 255, .95); color: #061524; }
body.dark .toast i { color: #061524; }

/* =========================================
   GENERIC MODAL (untuk file/folder ops)
========================================= */
.modal-box.generic {
    text-align: left;
    max-height: 80vh;
    overflow-y: auto;
}
.modal-box.generic h2 {
    text-align: center;
    margin-bottom: 16px;
}

/* Option list */
.option-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: var(--transition);
}
.option-item:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(3px);
}
.option-item i {
    width: 18px;
    text-align: center;
    color: var(--primary);
    font-size: 14px;
}
.option-item.danger { color: var(--danger); }
.option-item.danger i { color: var(--danger); }
.option-item.danger:hover { background: #ffe4e7; border-color: var(--danger); color: var(--danger); }
.option-item.success { color: var(--success); }
.option-item.success i { color: var(--success); }
.option-item.success:hover { background: #e5f8ef; border-color: var(--success); color: var(--success); }

/* Detail row */
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 12.5px;
    border-bottom: 1px solid var(--border);
}
.detail-row:last-child { border-bottom: 0; }
.detail-row span:first-child { color: var(--text-3); font-weight: 500; }
.detail-row span:last-child { font-weight: 700; color: var(--text); }

/* Modal actions */
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}
.btn-secondary {
    flex: 1;
    height: 46px;
    border-radius: 13px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition);
}
.btn-secondary:hover { background: var(--surface-3); color: var(--text); }

/* =========================================
   LIST-ITEM — state & selected
========================================= */
.list-item.selected {
    background: var(--primary-light);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}
.list-item.selectable { cursor: pointer; user-select: none; }

.bulk-check {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: grid;
    place-items: center;
    font-size: 11px;
    box-shadow: 0 2px 8px var(--primary-glow);
    z-index: 2;
}
.list-item.selected .bulk-check { display: grid; }
.list-item.selectable { padding-left: 40px; }

.file-star-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffc46b;
    color: white;
    display: grid;
    place-items: center;
    font-size: 7px;
    box-shadow: 0 0 0 2px var(--surface);
}
.list-icon { position: relative; }

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-3);
}
.empty-state i { font-size: 40px; margin-bottom: 12px; opacity: .5; }
.empty-state p { font-size: 14px; font-weight: 600; color: var(--text-2); }
.empty-mini { text-align: center; color: var(--text-3); font-size: 12px; padding: 20px; }

mark {
    background: linear-gradient(135deg, #ffe9a8, #ffd66b);
    color: #5a3a00;
    padding: 0 2px;
    border-radius: 3px;
}
body.dark mark { background: #ffd66b; color: #061524; }

/* =========================================
   FOLDER BACK BUTTON
========================================= */
.folder-back {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    transition: var(--transition);
}
.folder-back:hover { transform: translateX(-3px); }

/* =========================================
   BULK TOOLBAR & ACTION BAR
========================================= */
.bulk-toolbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 14px;
    z-index: 900;
    transform: translateY(-100%);
    transition: transform .35s var(--spring);
    box-shadow: 0 6px 24px rgba(10, 37, 64, .2);
}
.bulk-toolbar.show { transform: translateY(0); }
.bulk-toolbar #bulkCount {
    flex: 1;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -.3px;
}
.bulk-close, .bulk-select-all {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .2);
    color: white;
    display: grid;
    place-items: center;
    transition: var(--transition);
}
.bulk-close:hover, .bulk-select-all:hover {
    background: rgba(255, 255, 255, .35);
    transform: scale(1.05);
}

.bulk-action-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 10px 8px 14px;
    z-index: 900;
    transform: translateY(100%);
    transition: transform .35s var(--spring);
    box-shadow: 0 -6px 24px rgba(10, 37, 64, .1);
}
.bulk-action-bar.show { transform: translateY(0); }

.bulk-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 12px;
    background: transparent;
    color: var(--text-2);
    font-size: 10px;
    font-weight: 600;
    transition: var(--transition);
    min-width: 60px;
}
.bulk-action i { font-size: 16px; }
.bulk-action:hover { background: var(--primary-light); color: var(--primary); }
.bulk-action.danger { color: var(--danger); }
.bulk-action.danger:hover { background: #ffe4e7; }
.bulk-action.success { color: var(--success); }
.bulk-action.success:hover { background: #e5f8ef; }

body.bulk-mode .right-nav,
body.bulk-mode .nav-search,
body.bulk-mode .nav-plus { display: none; }

body.modal-open .bulk-toolbar,
body.modal-open .bulk-action-bar { display: none; }

/* =========================================
   TRASH LIST (dinamis)
========================================= */
.trash-list { display: flex; flex-direction: column; gap: 6px; }

/* =========================================
   NOTIFIKASI — unread state
========================================= */
.notification-item.unread {
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
}

/* =========================================
   RESPONSIVE — bulk bar di HP
========================================= */
@media (max-width: 650px) {
    .bulk-action span { font-size: 9px; }
    .bulk-action { min-width: 52px; padding: 6px 8px; }
    .bulk-action i { font-size: 14px; }
}

/* =========================================
   DARK MODE — tambahan
========================================= */
body.dark .bulk-action-bar {
    background: var(--surface);
    border-top-color: var(--border);
}
body.dark .option-item:hover {
    background: var(--primary-light);
}
body.dark .option-item.danger:hover {
    background: rgba(239, 68, 68, .15);
}
body.dark .option-item.success:hover {
    background: rgba(16, 185, 129, .15);
}