/* Global stylesheet for Admin PSB and Admin Keuangan */

/* Base styles */
body {
    background-color: #f4f7f6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #0f172a;
    color: #94a3b8;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}
.sidebar .brand {
    padding: 20px;
    border-bottom: 1px solid #1e293b;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}
.sidebar .brand img {
    width: 40px;
}

/* Navigation items */
.nav-item-custom {
    padding: 12px 20px;
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin: 5px 15px;
    border-radius: 8px;
    transition: 0.3s;
}
.nav-item-custom:hover,
.nav-item-custom.active {
    background-color: #0d6efd;
    color: white;
}
.nav-item-custom i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Main content area */
.main-content {
    margin-left: 250px;
    padding: 20px 30px;
}
.topbar {
    background: white;
    padding: 15px 30px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Card custom */
.card-custom {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* Tab content container */
.tab-content {
    background: white;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
    border-top: 0;
    border-radius: 0 0 .25rem .25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Form styles */
.form-control {
    border-color: #e2e8f0;
    font-size: 0.9rem;
    transition: border-color .2s ease-in-out, box-shadow .2s ease-in-out;
}
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.12);
}
.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

/* Save button container */
.simpan-bar {
    background: white;
    padding: 20px 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Custom Slim Scrollbar untuk Sidebar */
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-track { background: #0f172a; }
.sidebar::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 10px; }

/* Stat Cards (PSB Dashboard) */
.stat-card { 
    border: none; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    padding: 20px; 
    display: flex; 
    align-items: center; 
    gap: 20px;
    background-color: #fff;
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); }
.icon-box { 
    width: 60px; 
    height: 60px; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 24px; 
    color: white; 
}

/* Info Cards (Keuangan Dashboard) */
.info-card { 
    background: #fff; 
    border-radius: 8px; 
    padding: 12px 20px; 
    display: flex; 
    align-items: center; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    border-left: 6px solid;
    transition: transform 0.2s;
}
.info-card-icon { font-size: 2rem; margin-right: 15px; }
.info-card:hover { transform: translateY(-3px); }

.border-blue { border-color: #0d6efd; }
.icon-blue { color: #0d6efd; }
.border-green { border-color: #198754; }
.icon-green { color: #198754; }
.border-red { border-color: #dc3545; }
.icon-red { color: #dc3545; }

/* Table Styling */
.table-card { 
    background: white; 
    border-radius: 12px; 
    padding: 25px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
}
.table thead { 
    background-color: #f8fafc; 
    color: #475569; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
}
.table tbody tr { vertical-align: middle; }
.badge-status { 
    padding: 6px 12px; 
    border-radius: 6px; 
    font-weight: 500; 
    font-size: 0.8rem; 
}
.table-responsive {
    min-height: 200px; 
    overflow-y: visible;
}

/* Action Buttons */
.btn-action { 
    padding: 5px 12px; 
    font-size: 0.8rem; 
    border-radius: 6px; 
}
