/* ============================================================
   GABUDBERSAMA - Custom Stylesheet
   Theme: Wanderlust | Bootstrap 5 + Dark Mode
   ============================================================ */

/* ── Google Font Import ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CSS VARIABLES (Light Mode)
   ============================================================ */
:root {
    --primary:        #7c3aed;
    --primary-light:  #8b5cf6;
    --primary-dark:   #6d28d9;
    --primary-rgb:    124, 58, 237;

    --accent:         #f59e0b;
    --accent-light:   #fbbf24;

    --success:        #10b981;
    --danger:         #ef4444;
    --warning:        #f59e0b;
    --info:           #3b82f6;

    --bg:             #f1f5f9;
    --bg-secondary:   #e2e8f0;
    --surface:        #ffffff;
    --surface-2:      #f8fafc;
    --border:         #e2e8f0;
    --border-light:   #f1f5f9;

    --text:           #1e293b;
    --text-muted:     #64748b;
    --text-light:     #94a3b8;

    --sidebar-bg:     #1e1b4b;
    --sidebar-text:   #c4b5fd;
    --sidebar-hover:  rgba(255,255,255,0.08);
    --sidebar-active: rgba(124, 58, 237, 0.9);
    --sidebar-width:  260px;

    --topbar-bg:      #ffffff;
    --topbar-border:  #e2e8f0;

    --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow:         0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    --shadow-md:      0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
    --shadow-lg:      0 20px 25px -5px rgba(0,0,0,.07), 0 8px 10px -6px rgba(0,0,0,.04);

    --radius-sm:      6px;
    --radius:         12px;
    --radius-lg:      16px;
    --radius-xl:      24px;

    --transition:     all .2s ease;
}

/* ============================================================
   CSS VARIABLES (Dark Mode)
   ============================================================ */
[data-theme="dark"] {
    --bg:            #0f172a;
    --bg-secondary:  #1e293b;
    --surface:       #1e293b;
    --surface-2:     #263044;
    --border:        #334155;
    --border-light:  #1e293b;

    --text:          #e2e8f0;
    --text-muted:    #94a3b8;
    --text-light:    #64748b;

    --sidebar-bg:    #0d1117;
    --sidebar-text:  #c4b5fd;

    --topbar-bg:     #1e293b;
    --topbar-border: #334155;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    background: var(--bg);
    color: var(--text);
    transition: background .3s ease, color .3s ease;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 1050;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }

/* Brand */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.sidebar-brand-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), #a855f7);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(124,58,237,.4);
}

.brand-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}

.brand-tagline {
    display: block;
    font-size: 0.68rem;
    color: var(--sidebar-text);
    opacity: .7;
    letter-spacing: .5px;
}

/* Sidebar user */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.sidebar-user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.sidebar-user-role {
    font-size: 0.7rem;
    color: var(--sidebar-text);
    opacity: .8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.role-dot {
    width: 6px; height: 6px;
    background: var(--success);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px var(--success);
}

/* Nav */
.sidebar-nav {
    flex: 1;
    padding: 12px 12px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0; margin: 0;
}

.nav-section-title {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,.35);
    padding: 10px 8px 6px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text);
    font-size: 0.855rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
}

.sidebar-nav .nav-link i {
    font-size: 1.05rem;
    flex-shrink: 0;
    opacity: .85;
}

.sidebar-nav .nav-link:hover {
    background: var(--sidebar-hover);
    color: #fff;
    transform: translateX(2px);
}

.sidebar-nav .nav-link.active {
    background: var(--sidebar-active);
    color: #fff;
    box-shadow: 0 4px 12px rgba(124,58,237,.35);
}

.sidebar-nav .nav-link.active i { opacity: 1; }

/* Footer */
.sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,.07);
}

.nav-link-logout {
    color: #fca5a5 !important;
}

.nav-link-logout:hover {
    background: rgba(239,68,68,.15) !important;
    color: #ef4444 !important;
}

/* ============================================================
   OVERLAY (mobile)
   ============================================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1049;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active { display: block; }

/* ============================================================
   MAIN WRAPPER
   ============================================================ */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left .3s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 60px;
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--topbar-border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: background .3s ease, border-color .3s ease;
}

.topbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.topbar-toggle:hover { background: var(--bg-secondary); }

.topbar-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    flex: 1;
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--bg-secondary);
    color: var(--text);
    border-color: var(--primary);
    transform: scale(1.05);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 4px 12px 4px 4px;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.topbar-user:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
}

.topbar-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

/* ============================================================
   FLASH / ALERT
   ============================================================ */
.flash-container { padding: 12px 20px 0; }

.flash-alert {
    border-radius: var(--radius);
    border: none;
    font-size: 0.855rem;
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content {
    flex: 1;
    padding: 24px 24px;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}

.page-header .subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.breadcrumb-custom a { color: var(--primary); }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.stat-card-value {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-card-badge {
    position: absolute;
    top: 16px; right: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 50px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 100px; height: 100px;
    border-radius: 50%;
    opacity: .06;
}

/* Stat card color variants */
.stat-primary .stat-card-icon { background: rgba(var(--primary-rgb),.12); color: var(--primary); }
.stat-primary::before { background: var(--primary); }

.stat-success .stat-card-icon { background: rgba(16,185,129,.12); color: var(--success); }
.stat-success::before { background: var(--success); }

.stat-warning .stat-card-icon { background: rgba(245,158,11,.12); color: var(--warning); }
.stat-warning::before { background: var(--warning); }

.stat-info .stat-card-icon { background: rgba(59,130,246,.12); color: var(--info); }
.stat-info::before { background: var(--info); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: background .3s ease, border-color .3s ease;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header i { color: var(--primary); font-size: 1.05rem; }

.card-body { padding: 20px; }

/* ============================================================
   TABLES
   ============================================================ */
.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.845rem;
}

.table-custom thead th {
    background: var(--surface-2);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table-custom thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.table-custom thead th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }

.table-custom tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
    vertical-align: middle;
}

.table-custom tbody tr:last-child td { border-bottom: none; }

.table-custom tbody tr:hover td {
    background: var(--surface-2);
}

.table-responsive { overflow-x: auto; }

/* ============================================================
   BADGES
   ============================================================ */
.badge-custom {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
}

.badge-superadmin { background: rgba(var(--primary-rgb),.12); color: var(--primary); }
.badge-bendahara  { background: rgba(245,158,11,.12); color: #d97706; }
.badge-user       { background: rgba(16,185,129,.12); color: #059669; }

.badge-aktif    { background: rgba(16,185,129,.12); color: #059669; }
.badge-nonaktif { background: rgba(239,68,68,.12); color: #dc2626; }

/* ============================================================
   FORMS
   ============================================================ */
.form-label {
    font-weight: 500;
    font-size: 0.845rem;
    color: var(--text);
    margin-bottom: 6px;
}

.form-control, .form-select {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.855rem;
    padding: 10px 14px;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.form-control:focus, .form-select:focus {
    background: var(--surface);
    border-color: var(--primary);
    color: var(--text);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15);
    outline: none;
}

.form-control::placeholder { color: var(--text-light); }

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: var(--bg-secondary);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background: var(--bg-secondary);
}

[data-theme="dark"] .form-select option {
    background: var(--bg-secondary);
}

.input-group-text {
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    font-size: 0.855rem;
    padding: 10px 14px;
}

[data-theme="dark"] .input-group-text {
    background: var(--bg-secondary);
    border-color: var(--border);
    color: var(--text-muted);
}

/* File upload area */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), .04);
}

.upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%; height: 100%;
}

.upload-preview {
    margin-top: 12px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: none;
}

.upload-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.855rem;
    border-radius: var(--radius-sm);
    padding: 8px 18px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), .35);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.78rem;
}

/* ============================================================
   HERO / WELCOME CARD
   ============================================================ */
.hero-card {
    background: linear-gradient(135deg, var(--primary) 0%, #a855f7 50%, #ec4899 100%);
    border-radius: var(--radius-xl);
    padding: 28px 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(var(--primary-rgb), .3);
    border: none;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}

.hero-card::after {
    content: '';
    position: absolute;
    bottom: -60px; right: 60px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
}

.hero-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.hero-card p {
    font-size: 0.85rem;
    opacity: .85;
    margin: 0;
    position: relative;
    z-index: 1;
}

.hero-card .hero-emoji {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    opacity: .25;
    z-index: 0;
}

/* ============================================================
   TOTAL BANNER
   ============================================================ */
.total-banner {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.total-banner-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.total-banner-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

/* ============================================================
   USER AVATAR (in tables)
   ============================================================ */
.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-cell-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.user-cell-name {
    font-weight: 500;
    font-size: 0.845rem;
    color: var(--text);
}

.user-cell-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ============================================================
   BUKTI (proof image link)
   ============================================================ */
.bukti-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 50px;
    background: rgba(var(--primary-rgb), .08);
    transition: var(--transition);
}

.bukti-link:hover {
    background: rgba(var(--primary-rgb), .15);
    color: var(--primary-dark);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 48px 20px;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.empty-state h5 {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 6px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.845rem;
    margin: 0;
}

/* ============================================================
   IMAGE MODAL (bukti transfer)
   ============================================================ */
.bukti-img-modal .modal-content {
    background: transparent;
    border: none;
}

.bukti-img-modal .modal-body {
    padding: 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.bukti-img-modal img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    background: #000;
}

/* ============================================================
   DROPDOWN (dark mode fix)
   ============================================================ */
[data-theme="dark"] .dropdown-menu {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text);
}

[data-theme="dark"] .dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--text);
}

[data-theme="dark"] .dropdown-header { color: var(--text); }

/* ============================================================
   MODAL (dark mode fix)
   ============================================================ */
[data-theme="dark"] .modal-content {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .modal-header {
    border-color: var(--border);
}

[data-theme="dark"] .modal-footer {
    border-color: var(--border);
}

[data-theme="dark"] .btn-close {
    filter: invert(1);
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4c1d95 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -100px; left: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,.03);
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -100px; right: -100px;
    width: 350px; height: 350px;
    border-radius: 50%;
    background: rgba(255,255,255,.03);
}

.login-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 60px rgba(0,0,0,.3);
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .login-card {
    background: var(--surface);
}

.login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo-icon {
    width: 64px; height: 64px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), #a855f7);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin: 0 auto 14px;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), .35);
}

.login-logo h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
}

.login-logo p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================================
   ACARA (event info) CARD
   ============================================================ */
.acara-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.acara-header {
    background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
    padding: 28px 28px 60px;
    color: #fff;
    text-align: center;
    position: relative;
}

.acara-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.acara-header p {
    opacity: .85;
    font-size: 0.9rem;
}

.acara-body {
    background: var(--surface);
    padding: 24px;
    margin-top: -30px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.acara-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.acara-info-item:last-child { border-bottom: none; }

.acara-info-icon {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.acara-info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 2px;
}

.acara-info-value {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(calc(-1 * var(--sidebar-width)));
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 30px rgba(0,0,0,.25);
    }

    .main-wrapper {
        margin-left: 0;
    }

    .topbar-toggle {
        display: flex;
    }

    .page-content {
        padding: 16px;
    }
}

@media (max-width: 575.98px) {
    .hero-card .hero-emoji { display: none; }
    .total-banner-amount { font-size: 1.4rem; }
    .stat-card-value { font-size: 1.2rem; }
    .login-card { padding: 28px 24px; }
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-primary  { color: var(--primary) !important; }
.text-success  { color: var(--success) !important; }
.text-danger   { color: var(--danger) !important; }
.text-warning  { color: var(--warning) !important; }
.text-muted    { color: var(--text-muted) !important; }

.bg-primary-soft  { background: rgba(var(--primary-rgb),.1) !important; }
.bg-success-soft  { background: rgba(16,185,129,.1) !important; }
.bg-danger-soft   { background: rgba(239,68,68,.1) !important; }
.bg-warning-soft  { background: rgba(245,158,11,.1) !important; }

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.gap-2  { gap: .5rem; }
.gap-3  { gap: 1rem; }

/* Smooth transitions for theme switch */
*, *::before, *::after {
    transition-property: background-color, border-color, color;
    transition-duration: .25s;
    transition-timing-function: ease;
}

/* But don't apply transition to these (causes jank) */
.btn, a, .nav-link, .sidebar-nav .nav-link {
    transition: all .2s ease;
}

/* Scrollbar (Webkit) */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }
