/* ============================================
   SI GKB AMBARAWA - Enterprise Architecture
   Modern Admin Dashboard Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #6c63ff;
    --primary-dark: #5a52d5;
    --primary-light: #8b83ff;
    --secondary: #1a1c2e;
    --secondary-light: #252840;
    --accent: #ffd700;
    --accent-soft: #ffe066;
    --success: #00c853;
    --success-bg: rgba(0,200,83,0.1);
    --danger: #ff5252;
    --danger-bg: rgba(255,82,82,0.1);
    --warning: #ff9800;
    --warning-bg: rgba(255,152,0,0.1);
    --info: #2196f3;
    --info-bg: rgba(33,150,243,0.1);
    --bg-dark: #0f1123;
    --bg-card: #1a1c2e;
    --bg-card-hover: #252840;
    --text-primary: #ffffff;
    --text-secondary: #a0a3bd;
    --text-muted: #6b7280;
    --border-color: rgba(255,255,255,0.08);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 30px rgba(108,99,255,0.15);
    --glass-bg: rgba(26,28,46,0.8);
    --glass-border: rgba(255,255,255,0.1);
    --gradient-primary: linear-gradient(135deg, #6c63ff 0%, #a855f7 100%);
    --gradient-success: linear-gradient(135deg, #00c853 0%, #00e676 100%);
    --gradient-danger: linear-gradient(135deg, #ff5252 0%, #ff7043 100%);
    --gradient-warning: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
    --gradient-info: linear-gradient(135deg, #2196f3 0%, #03a9f4 100%);
    --gradient-dark: linear-gradient(135deg, #1a1c2e 0%, #252840 100%);
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    --navbar-height: 70px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; font-weight: 700; }

a { text-decoration: none; color: inherit; transition: var(--transition-fast); }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ============ LOGIN PAGE ============ */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(108,99,255,0.15) 0%, transparent 70%);
    top: -200px; right: -200px;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.login-wrapper::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(168,85,247,0.1) 0%, transparent 70%);
    bottom: -100px; left: -100px;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 3rem;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo .logo-icon {
    width: 70px; height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(108,99,255,0.3);
}

.login-logo h2 { font-size: 1.5rem; color: var(--text-primary); margin-bottom: 0.25rem; }
.login-logo p { color: var(--text-secondary); font-size: 0.875rem; }

.form-floating-group {
    position: relative; margin-bottom: 1.5rem;
}

.form-floating-group input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
    font-family: 'Inter', sans-serif;
}

.form-floating-group input:focus {
    border-color: var(--primary);
    background: rgba(108,99,255,0.05);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}

.form-floating-group input::placeholder { color: var(--text-muted); }

.form-floating-group .input-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 1.1rem;
    transition: var(--transition-fast);
}

.form-floating-group input:focus ~ .input-icon { color: var(--primary); }

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108,99,255,0.4);
}

.btn-login:active { transform: translateY(0); }

/* ============ SIDEBAR ============ */
.sidebar {
    position: fixed;
    left: 0; top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--secondary);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: var(--navbar-height);
}

.sidebar-header .logo-sm {
    width: 42px; height: 42px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(108,99,255,0.3);
}

.sidebar-header .brand-text h4 { font-size: 1rem; line-height: 1.2; }
.sidebar-header .brand-text span { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.menu-label {
    padding: 0.75rem 1.5rem 0.5rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.5rem;
    margin: 2px 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: var(--transition-fast);
    position: relative;
}

.menu-item:hover {
    background: rgba(108,99,255,0.1);
    color: var(--text-primary);
}

.menu-item.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(108,99,255,0.3);
}

.menu-item i { font-size: 1.1rem; width: 22px; text-align: center; }

/* ============ MAIN CONTENT ============ */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition-normal);
}

/* ============ NAVBAR ============ */
.navbar-top {
    position: sticky; top: 0;
    height: var(--navbar-height);
    background: rgba(15,17,35,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 999;
}

.navbar-left { display: flex; align-items: center; gap: 1rem; }

.navbar-left h5 { font-size: 1.15rem; }

.btn-toggle-sidebar {
    display: none;
    background: none; border: none;
    color: var(--text-secondary); font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

.navbar-right { display: flex; align-items: center; gap: 1.5rem; }

.user-dropdown {
    display: flex; align-items: center; gap: 0.75rem;
    cursor: pointer; padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.user-dropdown:hover { background: rgba(255,255,255,0.05); }

.user-avatar {
    width: 38px; height: 38px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 0.875rem;
}

.user-info .user-name { font-size: 0.875rem; font-weight: 600; }
.user-info .user-role { font-size: 0.7rem; color: var(--text-muted); }

/* ============ CONTENT AREA ============ */
.content-wrapper {
    padding: 2rem;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============ STAT CARDS ============ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stat-card.primary::before { background: var(--gradient-primary); }
.stat-card.success::before { background: var(--gradient-success); }
.stat-card.warning::before { background: var(--gradient-warning); }
.stat-card.info::before { background: var(--gradient-info); }
.stat-card.danger::before { background: var(--gradient-danger); }

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(108,99,255,0.2);
}

.stat-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.primary { background: rgba(108,99,255,0.15); color: var(--primary); }
.stat-icon.success { background: var(--success-bg); color: var(--success); }
.stat-icon.warning { background: var(--warning-bg); color: var(--warning); }
.stat-icon.info { background: var(--info-bg); color: var(--info); }
.stat-icon.danger { background: var(--danger-bg); color: var(--danger); }

.stat-details h3 { font-size: 1.75rem; font-weight: 800; line-height: 1; margin-bottom: 0.25rem; }
.stat-details p { font-size: 0.8rem; color: var(--text-secondary); }

/* ============ CARDS ============ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
}

.card:hover { border-color: rgba(108,99,255,0.15); }

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h5 { font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.card-header h5 i { color: var(--primary); }

.card-body { padding: 1.5rem; }

/* ============ TABLES ============ */
.table-responsive { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: rgba(108,99,255,0.08);
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.table tbody td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary);
    vertical-align: middle;
}

.table tbody tr { transition: var(--transition-fast); }
.table tbody tr:hover { background: rgba(108,99,255,0.05); }
.table tbody tr:last-child td { border-bottom: none; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--gradient-primary); color: white; }
.btn-primary:hover { box-shadow: 0 4px 15px rgba(108,99,255,0.4); }

.btn-success { background: var(--gradient-success); color: white; }
.btn-danger { background: var(--gradient-danger); color: white; }
.btn-warning { background: var(--gradient-warning); color: #333; }
.btn-info { background: var(--gradient-info); color: white; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(108,99,255,0.08);
}

.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.78rem; }
.btn-xs { padding: 0.25rem 0.5rem; font-size: 0.72rem; }

.btn-icon {
    width: 34px; height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

/* ============ FORMS ============ */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    outline: none;
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
    background: rgba(108,99,255,0.05);
}

.form-control::placeholder { color: var(--text-muted); }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem;
}

select.form-control option { background: var(--secondary); color: var(--text-primary); }

textarea.form-control { resize: vertical; min-height: 100px; }

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

/* ============ BADGES ============ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-primary { background: rgba(108,99,255,0.15); color: var(--primary); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info { background: var(--info-bg); color: var(--info); }

/* ============ ALERTS ============ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    animation: slideDown 0.3s ease;
    border: 1px solid transparent;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success { background: var(--success-bg); border-color: rgba(0,200,83,0.2); color: var(--success); }
.alert-danger, .alert-error { background: var(--danger-bg); border-color: rgba(255,82,82,0.2); color: var(--danger); }
.alert-warning { background: var(--warning-bg); border-color: rgba(255,152,0,0.2); color: var(--warning); }
.alert-info { background: var(--info-bg); border-color: rgba(33,150,243,0.2); color: var(--info); }

/* ============ CHARTS ============ */
.chart-container { position: relative; height: 300px; width: 100%; }

/* ============ GRID LAYOUT ============ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ============ ACTIVITY LIST ============ */
.activity-list { list-style: none; padding: 0; }

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child { border-bottom: none; }

.activity-dot {
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.activity-text { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.4; }
.activity-text strong { color: var(--text-primary); }
.activity-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.15rem; }

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-state i { font-size: 3rem; margin-bottom: 1rem; display: block; opacity: 0.3; }
.empty-state p { font-size: 0.9rem; }

/* ============ PAGE HEADER ============ */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h4 { font-size: 1.4rem; display: flex; align-items: center; gap: 0.5rem; }
.page-header h4 i { color: var(--primary); }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--text-muted); }

/* ============ BLUEPRINT/TOGAF ============ */
.blueprint-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.blueprint-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}

.blueprint-card.phase-a::before { background: var(--gradient-primary); }
.blueprint-card.phase-b::before { background: var(--gradient-success); }
.blueprint-card.phase-c::before { background: var(--gradient-info); }
.blueprint-card.phase-d::before { background: var(--gradient-warning); }

.blueprint-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--primary);
}

.blueprint-card .bp-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
}

.blueprint-card h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.blueprint-card p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }

.togaf-cycle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem;
}

.togaf-phase {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 120px; height: 120px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
}

.togaf-phase:hover {
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.togaf-phase .phase-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.togaf-phase .phase-name { font-size: 0.75rem; font-weight: 600; margin-top: 0.25rem; }

.togaf-phase.active { border-color: var(--primary); background: rgba(108,99,255,0.1); }

.architecture-detail {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.architecture-detail h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
    color: var(--primary);
}

.architecture-detail ul { list-style: none; padding: 0; }
.architecture-detail ul li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex; align-items: center; gap: 0.5rem;
}
.architecture-detail ul li:last-child { border-bottom: none; }
.architecture-detail ul li i { color: var(--success); font-size: 0.8rem; }

/* ============ FINANCIAL SUMMARY ============ */
.finance-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.finance-box {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.finance-box.income { background: var(--success-bg); border: 1px solid rgba(0,200,83,0.2); }
.finance-box.expense { background: var(--danger-bg); border: 1px solid rgba(255,82,82,0.2); }
.finance-box.balance { background: rgba(108,99,255,0.1); border: 1px solid rgba(108,99,255,0.2); }

.finance-box h5 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; }
.finance-box.income h5 { color: var(--success); }
.finance-box.expense h5 { color: var(--danger); }
.finance-box.balance h5 { color: var(--primary); }

.finance-box .amount { font-size: 1.35rem; font-weight: 700; font-family: 'Outfit', sans-serif; }
.finance-box.income .amount { color: var(--success); }
.finance-box.expense .amount { color: var(--danger); }
.finance-box.balance .amount { color: var(--primary); }

/* ============ KETERANGAN DETAIL ============ */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child { border-bottom: none; }

.detail-label {
    width: 140px;
    flex-shrink: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.detail-value {
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .btn-toggle-sidebar { display: block; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .finance-summary { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

@media (max-width: 768px) {
    .content-wrapper { padding: 1rem; }
    .navbar-top { padding: 0 1rem; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .form-row { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr; }
}

/* ============ UTILITIES ============ */
.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; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.sidebar-overlay.active { display: block; }
