:root {
    --sidebar-width: 260px;
    --sidebar-bg: #1a1a2e;
    --sidebar-hover: #16213e;
    --primary-color: #0f3460;
    --accent-color: #e94560;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --info-color: #3498db;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    overflow-x: hidden;
}

#wrapper { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1050;
    transition: transform 0.3s ease;
    overflow-y: auto;
    transform: translateX(0);
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 4px; }

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.user-info {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
}

.avatar-circle {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-menu { list-style: none; padding: 10px 0; margin: 0; }

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    gap: 12px;
}

.sidebar-menu li a i { font-size: 18px; width: 22px; text-align: center; }

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: var(--sidebar-hover);
    color: #fff;
    border-left: 3px solid var(--accent-color);
}

.sidebar-menu li a.active { background: rgba(233,69,96,0.15); }

.menu-divider {
    padding: 15px 20px 5px;
    color: rgba(255,255,255,0.3);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1049;
}

#page-content-wrapper {
    margin-left: var(--sidebar-width);
    width: 100%;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.topbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1020;
}

#menu-toggle {
    background: transparent;
    border: none;
    color: var(--sidebar-bg);
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 5px;
}

#menu-toggle:hover { background: #f0f0f0; }

.stat-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stat-card.primary::before { background: var(--primary-color); }
.stat-card.success::before { background: var(--success-color); }
.stat-card.warning::before { background: var(--warning-color); }
.stat-card.danger::before { background: var(--accent-color); }
.stat-card.info::before { background: var(--info-color); }

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #2d3436;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 13px;
    color: #636e72;
    margin-top: 2px;
}

.card-custom {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.card-custom .card-header {
    background: transparent;
    border-bottom: 1px solid #f0f0f0;
    padding: 18px 20px;
    font-weight: 600;
}

.table-custom th {
    border-top: none;
    color: #636e72;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    white-space: nowrap;
}

.table-custom td { vertical-align: middle; }

.badge-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.btn-rounded {
    border-radius: 10px;
    padding: 8px 20px;
    font-weight: 500;
}

.btn-accent {
    background: var(--accent-color);
    color: #fff;
    border: none;
}

.btn-accent:hover {
    background: #d63851;
    color: #fff;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sidebar-bg) 0%, var(--primary-color) 50%, #16213e 100%);
    padding: 20px;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-card .login-logo { text-align: center; margin-bottom: 30px; }

.login-card .login-logo .logo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-color), #e74c3c);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 32px;
    color: #fff;
}

.login-card .input-group {
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e9ecef;
}
.login-card .input-group:focus-within {
    border-color: var(--accent-color);
}
.login-card .input-group .form-control,
.login-card .input-group .input-group-text,
.login-card .input-group .btn {
    border: none;
    height: 48px;
    font-size: 14px;
}
.login-card .input-group .form-control {
    padding: 10px 15px;
}
.login-card .input-group .form-control:focus {
    box-shadow: none;
}
.login-card .input-group .input-group-text {
    background: transparent;
    padding: 0 12px;
    color: #6c757d;
}
.login-card .input-group .btn {
    padding: 0 14px;
    background: transparent;
    color: #6c757d;
    position: relative;
    z-index: 5;
}
.login-card .input-group .btn:hover {
    background: #f8f9fa;
    color: var(--accent-color);
}

.login-card .btn-login {
    height: 48px;
    border-radius: 10px;
    background: var(--accent-color);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    border: none;
}

.login-card .btn-login:hover { background: #d63851; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #636e72;
}

.empty-state i { font-size: 60px; color: #dfe6e9; margin-bottom: 15px; }

.search-box .input-group { border-radius: 10px; overflow: hidden; }

.search-box .form-control {
    border: 2px solid #e9ecef;
    border-right: none;
}

.search-box .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: none;
}

.search-box .btn {
    border: 2px solid #e9ecef;
    border-left: none;
}

.filter-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 5px;
}

.page-subtitle {
    font-size: 14px;
    color: #636e72;
}

.modal-custom .modal-content {
    border-radius: 15px;
    border: none;
}

.modal-custom .modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 25px;
}

.rekening-card {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: #fff;
    border-radius: 15px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.rekening-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.rekening-card .bank-name {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.rekening-card .bank-number {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    margin: 10px 0;
    word-break: break-all;
}

.rekening-card .bank-holder { font-size: 14px; opacity: 0.9; }

.alert-custom { border-radius: 12px; border: none; }

/* ===== LIGHTBOX BUKTI ===== */
#modalBukti .modal-content { background: transparent; }
#modalBukti .modal-dialog { max-width: 98vw; }
#modalBukti .modal-body { background: #0a0a0a; border-radius: 10px; touch-action: none; }
#modalBukti .modal-body img {
    border-radius: 6px;
    user-select: none; -webkit-user-drag: none; touch-action: none;
    -webkit-touch-callout: none;
}
#modalBukti .btn-dark { background: rgba(255,255,255,0.15); border: none; }
#modalBukti .btn-dark:hover { background: rgba(255,255,255,0.3); }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.mobile-show {
        transform: translateX(0);
    }
    .sidebar-overlay.active { display: block; }
    #page-content-wrapper {
        margin-left: 0;
    }
    .stat-card .stat-value { font-size: 22px; }
    .page-title { font-size: 20px; }
    .login-card { padding: 30px 24px; }
    .login-card .login-logo .logo-icon {
        width: 60px; height: 60px; font-size: 28px;
    }
}

@media (max-width: 576px) {
    .sidebar-header { padding: 15px; }
    .user-info { padding: 12px 15px; }
    .sidebar-menu li a { padding: 10px 15px; font-size: 13px; }
    .stat-card { padding: 15px; }
    .stat-card .stat-icon { width: 40px; height: 40px; font-size: 18px; }
    .stat-card .stat-value { font-size: 20px; }
    .stat-card .stat-label { font-size: 12px; }
    .card-custom .card-header { padding: 14px 16px; font-size: 14px; }
    .topbar { padding: 10px 12px; }
    .page-title { font-size: 18px; }
    .page-subtitle { font-size: 13px; }
    .filter-card { padding: 15px; }
    .filter-card .row > div { margin-bottom: 8px; }
    .btn-rounded { padding: 6px 14px; font-size: 13px; }
    .rekening-card { padding: 18px; }
    .rekening-card .bank-number { font-size: 18px; letter-spacing: 1px; }
    .rekening-card .bank-name { font-size: 10px; }
    .table-custom th { font-size: 10px; }
    .table-custom td { font-size: 12px; }
    .empty-state { padding: 40px 15px; }
    .empty-state i { font-size: 40px; }
    .modal-custom .modal-header { padding: 15px 18px; }
    .modal-custom .modal-body { padding: 18px; }
    .container-fluid.p-4 { padding: 12px !important; }
    .d-flex.justify-content-between.align-items-center.mb-4 {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
    .d-flex.justify-content-between.align-items-center.mb-4 > div:last-child,
    .d-flex.justify-content-between.align-items-center.mb-4 > a,
    .d-flex.justify-content-between.align-items-center.mb-4 > .d-flex {
        width: 100%;
    }
    .d-flex.justify-content-between.align-items-center.mb-4 .btn {
        width: 100%;
    }
    .stat-card .d-flex { gap: 12px; }
}

@media (max-width: 400px) {
    .stat-card .stat-value { font-size: 17px; }
    .page-title { font-size: 16px; }
    .rekening-card .bank-number { font-size: 15px; }
}



