/**
 * FILE CSS UNTUK APLIKASI
 * Shorinji Kempo - Tes Fisik
 * Version: 2.0
 */

/* ============================================
   RESET & GLOBAL
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* ============================================
   CONTAINER - LAYOUT RESPONSIF
   ============================================ */
.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    padding-top: 25px;
    padding-bottom: 30px;
    flex: 1;
    min-height: calc(100vh - 180px);
}

/* ============================================
   NAVBAR - PREMIUM DESIGN
   ============================================ */
.navbar {
    background: linear-gradient(135deg, #0d1b4a, #1a3a7a, #0d47a1);
    color: white;
    padding: 0;
    box-shadow: 0 4px 25px rgba(13, 27, 74, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand i {
    font-size: 1.8rem;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.nav-brand span {
    background: linear-gradient(to right, #ffffff, #a8d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   NAV MENU
   ============================================ */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a i {
    font-size: 14px;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.nav-menu a.active {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

/* ============================================
   DROPDOWN MENU
   ============================================ */
.nav-menu a.dropdown-toggle {
    cursor: pointer;
}

.nav-menu a.dropdown-toggle .fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.nav-menu a.dropdown-toggle:hover .fa-chevron-down {
    opacity: 1;
}

.nav-menu a.dropdown-toggle.rotate .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.18);
    padding: 8px 0;
    z-index: 999;
    border: 1px solid rgba(0, 0, 0, 0.06);
    animation: dropdownFade 0.25s ease;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    color: #333 !important;
    padding: 10px 22px !important;
    border-radius: 0 !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-menu a i {
    font-size: 14px;
    color: #1a3a7a;
    width: 18px;
    text-align: center;
}

.dropdown-menu a:hover {
    background: #f0f4ff !important;
    border-left-color: #1a3a7a;
    color: #1a3a7a !important;
}

.dropdown-menu a.active-dropdown {
    background: #e8f0fe !important;
    border-left-color: #1a3a7a;
    color: #1a3a7a !important;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    padding: 20px 0 18px 0;
    border-bottom: 2px solid rgba(26, 35, 126, 0.1);
    margin-bottom: 25px;
}

.page-header h1 {
    color: #0d1b4a;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.page-header h1 i {
    margin-right: 12px;
    color: #1a3a7a;
    background: linear-gradient(135deg, #1a3a7a, #0d47a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: #666;
    margin: 6px 0 0 0;
    font-size: 15px;
    font-weight: 400;
}

/* ============================================
   CARDS - MODERN DESIGN
   ============================================ */
.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card:hover {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-header {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(26, 35, 126, 0.08);
    color: #0d1b4a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.card-header i {
    margin-right: 10px;
    color: #1a3a7a;
    font-size: 1.1rem;
}

.card-header .badge-header {
    font-size: 12px;
    font-weight: 400;
    color: #888;
    background: #f5f5f5;
    padding: 4px 14px;
    border-radius: 20px;
}

/* ============================================
   STAT CARDS - DASHBOARD
   ============================================ */
.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-bottom: 25px;
}

.stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px 20px 20px 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    text-align: center;
    border-left: 5px solid #1a3a7a;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: rgba(26, 58, 122, 0.03);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.stat-card .number {
    font-size: 2.6rem;
    font-weight: 800;
    color: #0d1b4a;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.stat-card .label {
    color: #777;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.stat-card .label i {
    margin-right: 6px;
}

.stat-card.primary { border-left-color: #1a3a7a; }
.stat-card.primary .number { color: #1a3a7a; }
.stat-card.success { border-left-color: #2e7d32; }
.stat-card.success .number { color: #2e7d32; }
.stat-card.warning { border-left-color: #f57f17; }
.stat-card.warning .number { color: #f57f17; }
.stat-card.danger { border-left-color: #c62828; }
.stat-card.danger .number { color: #c62828; }

/* ============================================
   TABLES - ELEGANT DESIGN
   ============================================ */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 13px;
    min-width: 700px;
}

table thead {
    background: linear-gradient(135deg, #0d1b4a, #1a3a7a);
    color: #ffffff;
}

table thead th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-bottom: none;
}

table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    vertical-align: middle;
    transition: background 0.2s;
}

table tbody tr:hover td {
    background: #f8faff;
}

table tbody tr:last-child td {
    border-bottom: none;
}

table tbody tr:nth-child(even) {
    background: #fafbfc;
}

table tbody tr:nth-child(even):hover td {
    background: #f5f8ff;
}

/* ============================================
   FORMS - CLEAN & MODERN
   ============================================ */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.form-group label .required {
    color: #e74c3c;
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e8ecf0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafbfc;
    color: #333;
}

.form-control:focus {
    outline: none;
    border-color: #1a3a7a;
    box-shadow: 0 0 0 4px rgba(26, 58, 122, 0.1);
    background: #ffffff;
}

.form-control::placeholder {
    color: #aaa;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ============================================
   BUTTONS - ELEGANT
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 28px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.3px;
    min-height: 44px;
}

.btn i {
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #1a3a7a, #0d47a1);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(26, 58, 122, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 58, 122, 0.4);
    background: linear-gradient(135deg, #1a3a7a, #1565c0);
}

.btn-success {
    background: linear-gradient(135deg, #1e7e34, #2e7d32);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
    background: linear-gradient(135deg, #1e7e34, #388e3c);
}

.btn-danger {
    background: linear-gradient(135deg, #b71c1c, #c62828);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(198, 40, 40, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #e65100, #f57f17);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(245, 127, 23, 0.3);
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 127, 23, 0.4);
}

.btn-sm {
    padding: 5px 14px;
    font-size: 12px;
    min-height: 32px;
    border-radius: 8px;
}

.btn-lg {
    padding: 14px 40px;
    font-size: 16px;
    min-height: 52px;
    border-radius: 12px;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.badge i {
    font-size: 11px;
}

.sangat-baik { background: #4caf50; color: #ffffff; }
.baik { background: #8bc34a; color: #ffffff; }
.cukup-baik { background: #ffeb3b; color: #333333; }
.tidak-baik { background: #ff9800; color: #ffffff; }
.sangat-tidak-baik { background: #f44336; color: #ffffff; }

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 16px 22px;
    border-radius: 12px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    border-left: 5px solid;
}

.alert i {
    font-size: 20px;
}

.alert-success {
    background: #e8f5e9;
    color: #1e7e34;
    border-left-color: #2e7d32;
}

.alert-danger {
    background: #ffebee;
    color: #b71c1c;
    border-left-color: #c62828;
}

.alert-warning {
    background: #fff3e0;
    color: #e65100;
    border-left-color: #f57f17;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    padding: 25px 20px;
    color: #888;
    font-size: 13px;
    border-top: 1px solid #e8ecf0;
    margin-top: auto;
    background: #fafbfc;
}

.footer p {
    margin: 3px 0;
}

.footer p:first-child {
    font-weight: 500;
    color: #666;
}

/* ============================================
   GRAFIK / CHART
   ============================================ */
.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 10px;
}

.chart-box {
    background: #fafbfc;
    border-radius: 14px;
    padding: 18px 20px 20px 20px;
    border: 1px solid #eef0f3;
    transition: all 0.3s ease;
}

.chart-box:hover {
    border-color: #d0d7e5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.chart-box h4 {
    color: #0d1b4a;
    margin-bottom: 12px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.chart-box h4 i {
    margin-right: 8px;
    color: #1a3a7a;
}

.chart-box .chart-container {
    height: 270px;
    position: relative;
}

/* ============================================
   KOMPONEN BADGE
   ============================================ */
.komponen-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    margin: 3px 4px 3px 0;
    color: #ffffff;
    letter-spacing: 0.2px;
}

/* ============================================
   SMART RECOMMENDATION
   ============================================ */
.recommendation-card {
    border-left: 5px solid #1a237e;
    margin-bottom: 25px;
}

.recommendation-card .card-header {
    border-bottom: 2px solid rgba(26, 35, 126, 0.1);
}

.recommendation-priority {
    transition: all 0.3s ease;
}

.recommendation-priority:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* ============================================
   TABLE LAPORAN
   ============================================ */
.table-laporan {
    font-size: 11px;
    width: 100%;
    border-collapse: collapse;
}

.table-laporan thead th {
    background: linear-gradient(135deg, #0d1b4a, #1a3a7a);
    color: #ffffff;
    padding: 6px 5px;
    text-align: center;
    font-size: 9px;
    white-space: nowrap;
    border: 1px solid #1a3a7a;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.table-laporan tbody td {
    padding: 5px 5px;
    text-align: center;
    border: 1px solid #e8ecf0;
    font-size: 10px;
    vertical-align: middle;
}

.table-laporan tbody tr:nth-child(even) {
    background: #fafbfc;
}

.table-laporan tbody tr:hover td {
    background: #f0f5ff;
}

.table-laporan .no {
    width: 30px;
    font-weight: 600;
}

.table-laporan .nama {
    text-align: left;
    min-width: 120px;
    font-weight: 500;
}

.table-laporan .jk {
    width: 25px;
    text-align: center;
}

.table-laporan .bb_tb {
    width: 60px;
    text-align: center;
}

.table-laporan .nilai {
    width: 45px;
    text-align: center;
}

.table-laporan .rata {
    font-weight: 700;
    width: 55px;
    text-align: center;
}

.table-laporan .kategori {
    width: 85px;
    text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 25px;
    }
    .table-laporan {
        font-size: 10px;
    }
    .table-laporan thead th {
        font-size: 8px;
        padding: 4px 3px;
    }
    .table-laporan tbody td {
        font-size: 9px;
        padding: 4px 3px;
    }
}

@media (max-width: 992px) {
    .chart-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
    .chart-box .chart-container {
        height: 230px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 10px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }
    
    .nav-menu a {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .nav-menu a i {
        margin-right: 4px;
        font-size: 12px;
    }
    
    .nav-brand {
        font-size: 1.2rem;
    }
    
    .nav-brand i {
        font-size: 1.4rem;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        margin-top: 2px;
        background: rgba(255, 255, 255, 0.05);
        width: 100%;
        animation: none;
    }
    
    .dropdown-menu a {
        color: rgba(255, 255, 255, 0.8) !important;
        padding: 8px 20px 8px 35px !important;
        border-left: 3px solid transparent;
        font-size: 12px !important;
    }
    
    .dropdown-menu a i {
        color: rgba(255, 255, 255, 0.5);
    }
    
    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.08) !important;
        color: #ffffff !important;
        border-left-color: rgba(255, 255, 255, 0.3);
    }
    
    .dropdown-menu a.active-dropdown {
        background: rgba(255, 215, 0, 0.1) !important;
        border-left-color: #ffd700;
        color: #ffd700 !important;
    }
    
    .dropdown-menu a.active-dropdown i {
        color: #ffd700;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .row {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    
    .chart-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .chart-box .chart-container {
        height: 220px;
    }
    
    .page-header h1 {
        font-size: 22px;
    }
    
    table {
        font-size: 12px;
        min-width: 600px;
    }
    
    table th, table td {
        padding: 8px 12px;
    }
    
    .stat-card .number {
        font-size: 2rem;
    }
    
    .card {
        padding: 18px 16px;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 13px;
        min-height: 38px;
    }
    
    .btn-lg {
        padding: 12px 28px;
        font-size: 14px;
        min-height: 46px;
    }
    
    .table-laporan {
        font-size: 9px;
        min-width: 900px;
    }
    .table-laporan thead th {
        font-size: 7px;
        padding: 3px 2px;
    }
    .table-laporan tbody td {
        font-size: 8px;
        padding: 3px 2px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .page-header h1 {
        font-size: 19px;
    }
    
    .stat-card {
        padding: 16px 14px;
    }
    
    .stat-card .number {
        font-size: 1.7rem;
    }
    
    table {
        font-size: 11px;
        min-width: 500px;
    }
    
    table th, table td {
        padding: 6px 8px;
    }
    
    .card {
        padding: 14px 12px;
        border-radius: 12px;
    }
    
    .card-header {
        font-size: 1rem;
    }
    
    .btn {
        padding: 6px 16px;
        font-size: 12px;
        min-height: 34px;
        border-radius: 8px;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 13px;
        min-height: 40px;
    }
    
    .chart-box {
        padding: 12px 12px 14px 12px;
    }
    
    .chart-box .chart-container {
        height: 180px;
    }
    
    .badge {
        font-size: 10px;
        padding: 3px 10px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd;
        break-inside: avoid;
        page-break-inside: avoid;
        border-radius: 4px;
        padding: 16px;
    }
    
    .page-header {
        padding: 10px 0 8px 0;
        border-bottom: 1px solid #ddd;
    }
    
    .page-header h1 {
        font-size: 20px;
        color: #000;
    }
    
    table {
        font-size: 9px;
        min-width: auto;
    }
    
    table thead th {
        background: #333 !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        padding: 5px 4px;
        font-size: 8px;
    }
    
    table tbody td {
        padding: 4px 4px;
        font-size: 8px;
        border-bottom: 1px solid #ddd;
    }
    
    .badge {
        font-size: 7px;
        padding: 2px 8px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .sangat-baik { background: #4caf50 !important; color: white !important; }
    .baik { background: #8bc34a !important; color: white !important; }
    .cukup-baik { background: #ffeb3b !important; color: #333 !important; }
    .tidak-baik { background: #ff9800 !important; color: white !important; }
    .sangat-tidak-baik { background: #f44336 !important; color: white !important; }
    
    .stat-card {
        border: 1px solid #ddd;
        box-shadow: none !important;
        padding: 12px 10px;
    }
    
    .stat-card .number {
        font-size: 1.5rem;
        color: #000 !important;
    }
    
    .chart-container {
        height: 200px !important;
    }
    
    .chart-box {
        border: 1px solid #ddd;
        padding: 10px;
        border-radius: 4px;
    }
    
    .chart-box .chart-container {
        height: 180px !important;
    }
    
    .footer {
        border-top: 1px solid #ddd;
        padding: 12px 0;
        margin-top: 20px;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 10px !important;
    }
    
    .card-header {
        border-bottom: 1px solid #ddd;
        color: #000;
    }
    
    .table-container {
        border: 1px solid #ddd;
    }
}

/* ============================================
   SCROLLBAR CUSTOM
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f2f5;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1a3a7a, #0d47a1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d1b4a;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.5s ease forwards;
}

.stat-card {
    animation: fadeInUp 0.5s ease forwards;
}

.stat-card:nth-child(2) { animation-delay: 0.05s; }
.stat-card:nth-child(3) { animation-delay: 0.1s; }
.stat-card:nth-child(4) { animation-delay: 0.15s; }

.chart-box {
    animation: fadeInUp 0.6s ease forwards;
}

.chart-box:nth-child(2) {
    animation-delay: 0.1s;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress {
    background: #e8ecf0;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: #ffffff;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

.p-10 { padding: 10px; }
.p-20 { padding: 20px; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.flex-wrap { flex-wrap: wrap; }

.w-100 { width: 100%; }
.w-50 { width: 50%; }
.w-25 { width: 25%; }


/* ============================================
   BADGE ROLE USER
   ============================================ */
.badge-admin { 
    background: #d32f2f; 
    color: white; 
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.badge-operator { 
    background: #f57f17; 
    color: white; 
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.badge-user { 
    background: #0288d1; 
    color: white; 
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}