@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bebas+Neue&family=Montserrat:wght@900&family=Russo+One&display=swap');

/* =========================================
   1. RESET & BASIC SETUP
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    background-color: #E6E6E6;
    background-image: url('../img/bgbody.png');
    background-size: cover;
    background-position: center;
}

/* PEMBUNGKUS UTAMA (Kiri Kanan: Sidebar & Main) */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden; /* Cegah scrollbar ganda */
    width: 100%;
}

/* AREA KANAN (Tempat Header, Konten, Footer) */
.main-content {
    flex-grow: 1; /* Ambil sisa layar di kanan */
    display: flex;
    flex-direction: column; /* Bariskan isinya dari Atas ke Bawah */
    height: 100vh;
}

/* KONTEN UTAMA (Yang Bisa Di-Scroll) */
.content-area {
    flex: 1; /* Dorong footer mentok ke bawah */
    overflow-y: auto; /* Kalau data banyak, scroll di sini aja */
    padding: 20px;
}

/* FOOTER (Rumah Abadi) */
.main-footer {
    background-color: #214e8a;
    color: #020202;
    text-align: center;
    padding: 5px 0;
    font-size: 11px;
    border-top: 2px solid #000;
    flex-shrink: 0;
    z-index: 100;
}

/* =========================================
   2. SIDEBAR STYLES (Dimerger dengan Collapse)
   ========================================= */
.sidebar {
    width: 200px;
    background-color: #372c9b;
    box-shadow:
    0 0 8px #fa3504,
    0 0 8px #fff,
    0 0 4px #f74a06,
    0 0 5px #1efd00,
    0 0 2px #fd3300;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    overflow: visible; /* Tombol toggle tetap terlihat */
}

/* Logika Collapse */
.sidebar.collapsed {
    width: 78px !important;
    padding: 0 !important;
    border-right: none;
}

.sidebar.collapsed .sidebar-user-card,
.sidebar.collapsed .sidebar-footer {
    display: none;
}

.sidebar-footer {
    height: 120px;
    display: flex;
    align-items: flex-end;
}

.btn-logout {
    width: 100%;
    background-color: #FF0000;
    border-radius: 5px;
    box-shadow:
    0 0 8px #fa049c,
    0 0 8px #fff,
    0 0 10px #f8f8f8,
    0 0 5px #1efd00,
    0 0 10px #6b6b6a;
    color: #000;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
}

.btn-logout:hover{
    transform: scaleX(1.1);
    transition: 0.3s;
}


.sidebar-toggle-btn {
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: #f53d05;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
    0 0 8px #4e04fa,
    0 0 8px #fff,
    0 0 4px #0317c9,
    0 0 5px #1efd00,
    0 0 2px #1100fd;
}

.sidebar-toggle-btn :hover {
    transform: scaleX(1.1);
    transition: 0.3s;
}

/* =========================================
   3. MAIN CONTENT & HEADER
   ========================================= */
.top-header {
    background-color: #5e9639a6;
    position: relative;
    align-items: center;
}

.header-banner {
    position: relative;
    background-size: contain;
    background-position: center;
    display: flex;
    align-items: center;
}

.banner-text{
    position: relative;
    align-items: center;
    justify-content: center;
}

.maintenance-banner {
    background: linear-gradient(135deg, #fff1c6 0%, #ffe082 100%);
    border: 2px solid #ffb300;
    color: #5f3700;
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.maintenance-banner .maintenance-announcement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
}

.maintenance-banner .maintenance-announcement img {
    max-width: 200px;
    max-height: 160px;
    border-radius: 8px;
    object-fit: contain;
}

.maintenance-banner .maintenance-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
}

.maintenance-banner .maintenance-title-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    background: #ffb300;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
}

.maintenance-banner .maintenance-row {
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.5;
}

.maintenance-banner .maintenance-note {
    margin-top: 8px;
    position: relative;
    font-size: 14px;
    align-items: center;
    color: #5f3700;
}

.maintenance-banner-global {
    margin: 12px 20px 0;
    border-width: 3px;
}

.maintenance-banner .maintenance-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.maintenance-banner .maintenance-link,
.maintenance-banner .maintenance-close-btn {
    border: 1px solid #b47600;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.maintenance-banner .maintenance-link {
    background: #ffb300;
    color: #3e2500;
}

.maintenance-banner .maintenance-close-btn {
    background: #fff6db;
    color: #6b4300;
    cursor: pointer;
}

.maintenance-banner .maintenance-link:hover,
.maintenance-banner .maintenance-close-btn:hover {
    filter: brightness(0.95);
}

.maintenance-page {
    max-width: 620px;
    margin: 50px auto;
    padding: 26px;
    border: 2px solid #ffb300;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff8e1 0%, #fff1c4 100%);
    color: #5f3c00;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.maintenance-page h1 {
    color: #a66f04;
    text-align: center;
    margin-bottom: 14px;
}

.maintenance-page button {
    cursor: pointer;
    margin-top: 20px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: #ffb300;
    color: #fff;
    font-weight: 600;
    transition: transform 0.1s ease;
}

.maintenance-page button:hover {
    transform: translateY(-1px);
    background: #ff9f00;
}

.maintenance-message {
    font-size: 16px;
    line-height: 1.7;
}

#mainTitle {
    font-family: 'Russo One', sans-serif;
    font-size: 70px;
    margin-top: 5px;
    color: #FFC000;
    /* Efek Glow Tipis */
    text-shadow: 0 0 10px #ff7300, 4px 4px 0px #000;
}

#subTitle {
    font-size: 20px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #ff0000;
    text-shadow:
    0 0 3px #4e04fa,
    0 0 3px #fff,
    0 0 2px #0317c9,
    0 0 2px #1efd00,
    0 0 2px #1100fd;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* =========================================
   4. NAVIGATION & DROPDOWN (ANTI-HILANG & RATA)
   ========================================= */
.top-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #5e9639a6;
    padding: 0;
}

/* Base Style untuk link biasa DAN tombol dropdown */
.top-nav a, 
.dropbtn {
    text-decoration: none;
    color: #3906f3;
    background-color: #68f305;
    padding: 15px 25px; /* Padding ditambah sedikit agar lebih mantap */
    margin: 4px;
    min-width: 150px;
    font-size: 15px;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    height: auto;
    box-shadow: 
    0 0 10px #fff,
    0 0 20px #fff,
    0 0 10px #fd1e00,
    0 0 8px #fd1e00,
    0 0 10px #fd1e00;
}

/* Garis penutup untuk menu paling kanan */
.top-nav a:last-child, 
.top-nav .dropdown:last-child .dropbtn {
    border-right: none;
}

/* Efek Hover & Active */
.top-nav a:hover, 
.top-nav a.active, 
.dropdown:hover .dropbtn {
    background-color: #6d0a5c;
    color: #FF0000;
    transform: scaleX(1.1);
    transition: 0.3s;
}

/* Container Utama Dropdown */
.dropdown {
    position: relative;
    display: flex; /* Mengikuti aliran flex nav */
}

/* Kotak Isi Sub-Menu */
.dropdown-content {
    display: none; 
    position: absolute;
    min-width: 170px;
    left: 0;
    top: 100%; /* Pas di bawah tombol */
    margin-top: 0; /* Pastikan tidak ada celah */
}

/* Link di dalam Sub-Menu */
.dropdown-content a {
    display: block;
    color: rgb(168, 6, 6);
    padding: 12px 15px;
    background-color: #68f305;
    margin: 2px;
    width: 100% ;
    border-left: none ; /* Hilangkan border samping di dalam dropdown */
    height: auto ; /* Tinggi menyesuaikan teks */
}

.dropdown-content a:last-child {
    border-bottom: none;
}

/* Efek Hover Sub-Menu */
.dropdown-content a:hover {
    background-color: #6d0a5c;
    color: #FF0000;
    box-shadow: 
    0 0 10px #fff,
    0 0 20px #fff,
    0 0 10px #00fdfd,
    0 0 8px #00fdfd,
    0 0 10px #00fdfd;
}

/* Munculkan Dropdown saat Hover - Menggunakan Block agar lebih stabil */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Container Utama Dashboard */
.dashboard-wrapper {
    width: 100%;
    min-height: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-title {
    color: #C00000; /* Warna merah tegas untuk judul */
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    background-color: #00E5FF;
    border-radius: 10px;
    min-width: fit-content;
    padding-left: 10px;
    padding-right: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Kolom */
    gap: 25px;
    width: 100%;
    max-width: 700px;
}

.stat-card {
    background: white;
    border: 1px solid #000;
    text-align: center;
    overflow: hidden;
}

.stat-header {
    background-color: #FFC000; /* Kuning Emas */
    color: #000;
    font-weight: bold;
    padding: 10px;
    border-bottom: 1px solid #000;
    font-size: 16px;
}

.stat-body {
    background-color: #FFF9E1; /* Kuning sangat muda */
    color: #C00000; /* Angka merah */
    font-size: 60px;
    font-weight: bold;
    padding: 30px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   6. TABLES & FORMS (VERSI RAPI)
   ========================================= */
.table-container { 
    width: 100%; 
    overflow-x: auto; 
    padding: 0 10px; 
    margin-bottom: 20px;
    min-width: fit-content;
}

.data-table {
    min-width: 100%;
    border-collapse: collapse; /* Ini penting agar garis tidak dobel */
    background-color: white;
    margin-top: 1px;
    border: 2px solid #000; /* Garis luar tabel tebal hitam */
}

.data-table th {
    background-color: #A6D014; /* Warna hijau default */
    color: #000;
    padding: 12px 10px;
    border: 1px solid #000; /* Garis antar kolom header */
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
}

.data-table td { 
    padding: 10px; 
    border: 1px solid #000; /* Garis antar sel/kotak */
    vertical-align: middle;
}

/* Warna baris selang-seling (Zebra) */
.data-table tr:nth-child(even) {
    background-color: #f9f9f9; 
}

.data-table tr:nth-child(odd) {
    background-color: #a7d1cf; /* Warna biru muda sesuai pilihan Abang */
}

/* Efek saat baris disorot mouse */
.data-table tr:hover {
    background-color: #eee !important;
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.table-toolbar-left,
.table-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.table-filter-inline label {
    font-weight: 700;
    margin-right: 4px;
}

.table-limit-compact {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #999;
    min-height: 32px;
}

.btn-export-icon {
    width: 42px;
    height: 32px;
    border: 1px solid #0f6036;
    border-radius: 7px;
    background: #1d6f42;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}
.btn-export-icon svg {
    display: block;
    flex-shrink: 0;
}

.btn-export-icon:hover {
    background: #155932;
}

/* --- CONTAINER UTAMA FORM --- */
/* --- CONTAINER UTAMA FORM --- */
.form-wrapper {
    padding: 30px;
    min-height: 100%; /* GANTI: Pakai min-height agar bisa melar kalau formnya panjang */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* TAMBAH: Biar form mulai dari atas dan manjang ke bawah */
}

.form-container {
    width: 400px;
    height: fit-content; /* TAMBAH: Paksa kotak hijau memeluk isinya dengan pas */
    background-color: #68f305;
    padding: 20px;
    border-radius: 20px;
    border: 2px solid #000;
    box-shadow: 8px 8px 0px #000;
}

.form-title{
    color: #000;
    position: relative;
    text-align: center;
    text-decoration: underline;
    padding-bottom: 5px;
}

/* --- GRUP PENCARIAN (Biar Tombol Cari Gak Kecil & Sejajar) --- */
.input-search-group {
    display: flex; /* WAJIB: Biar Input & Tombol Cari sejajar horizontal */
    margin-bottom: 25px;
    border-radius: 12px; /* Lengkungan grup cari */
}

.input-search {
    flex-grow: 1; /* Input ambil sisa ruang */
    border: none;
    padding: 12px 20px;
    outline: none;
    font-size: 14px;
}

.btn-cari {
    background-color: #4c05f1;
    border: none;
    color: black;
    padding: 0 20px; /* Beri ruang kiri-kanan biar tombol gak ciut */
    cursor: pointer;
    font-weight: bold;
    border: 2px solid black;
    font-size: 14px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    justify-content: center;
    transition: 0.2s;
}

.btn-cari:hover {
    background-color: #FFC000;
    transform: scaleX(1.1);
    transition: 0.3s;
}

/* --- FIELD INPUT BIASA (ID, NAMA, DLL) --- */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column; /* Label di atas, Input di bawah agar rapi */
    gap: 8px;
}

.form-group label {
    font-weight: bold;
    display: flex;
    font-size: 16px;
    color: #000;
}

.input-field {
    width: 100%;
    padding: 12px;
    border: 2px solid #000;
    border-radius: 12px; /* Lengkungan tiap kotak input */
    font-size: 14px;
    outline: none;
}

.input-field:focus {
    border-color: #0070C0;
    box-shadow: 0 0 5px rgba(0,112,192,0.5);
}
.btn-simpan {
    background-color: #00E676;
    padding: 10px 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin: 20px auto 0;
    display: block;
    border: 1px solid #000;
    border-radius: 8px;
}

.btn-simpan:hover {
    background-color: #1b02fd;
    transform: scaleX(1.1);
    transition: 0.3s;
}

/* =========================================
   7. LOGIN PAGE
   ========================================= */
.login-body {
    background-image: url('../img/bg.png'); 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card-new {
    background-color: rgba(0, 0, 0, 0.9);
    width: 320px;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

/* Styling grup input agar rapi */
.login-form-new .input-group-new {
    margin-bottom: 20px;
    text-align: left; /* Teks label tetap kiri */
}

.password-field-group {
    position: relative;
}

.password-field-group input {
    padding-right: 44px;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-btn:focus {
    outline: 2px solid #00E5FF;
    outline-offset: 2px;
    border-radius: 4px;
}

.eye-icon {
    width: 18px;
    height: 11px;
    border: 2px solid #666;
    border-radius: 12px;
    position: relative;
}

.eye-icon::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #666;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.eye-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #666;
    left: -3px;
    top: 4px;
    transform: rotate(-28deg);
}

.password-toggle-btn.is-visible .eye-icon::after {
    display: none;
}

/* Kotak input putih (username/password) */
.login-form-new input {
    width: 100%;
    padding: 12px 15px;
    border: none; /* Tidak ada garis tepi */
    border-radius: 4px; /* Sudut sedikit melengkung */
    background-color: #fff; /* Putih bersih */
    font-size: 14px;
    color: #333;
}

/* Placeholder color (teks panduan di dalam input) */
.login-form-new input::placeholder {
    color: #aaa;
}

/* Styling saat input di-klik (tidak ada outline) */
.login-form-new input:focus {
    outline: none;
    background-color: #fcfcfc;
}

.btn-login-new {
    width: 100%;
    background-color: #00E5FF;
    color: #fff;
    padding: 12px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login-new:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.error-message {
    background-color: #ffebee;
    border: 1px solid #f44336;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   8. UTILS (ALERTS, AUTOCOMPLETE, ETC)
   ========================================= */
.custom-alert-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
}
.custom-alert-box {
    background: white;
    padding: 30px;
    text-align: center;
    border: 2px solid #000;
    box-shadow: 8px 8px 0px #FFC000;
}

.alert-icon {
    width: 60px; height: 60px; line-height: 60px;
    font-size: 40px; border-radius: 50%; margin: 0 auto;
}

.btn-alert-ok {
    background: #FFC000;
    color: #000;
    border: 2px solid #000;
    padding: 10px 40px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 4px 4px 0px #000;
    transition: 0.2s;
    margin-top: 10px;
}

.btn-alert-ok:active {
    box-shadow: 0px 0px 0px #000;
    transform: translate(4px, 4px);
}

/* Container utama daftar saran */
.autocomplete-items {
    position: absolute;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.2);
    border-radius: 0 0 8px 8px;
}

/* Setiap baris saran nama/id */
.autocomplete-items div {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-family: Arial, sans-serif;
    color: #333;
    transition: all 0.2s; /* Animasi halus saat disorot */
}

/* EFEK KURSOR/HOVER: Ini yang Abang minta */
.autocomplete-items div:hover {
    background-color: #007bff; /* Warna biru mirip pilihan metode */
    color: white;
}

/* Warna ID Pelanggan biar lebih kontras */
.autocomplete-items div strong {
    color: #000;
}

.autocomplete-items div:hover strong {
    color: #fff;
}

/* =========================================
   9. RESPONSIVE MOBILE DESIGN
   ========================================= */
@media (max-width: 768px) {
    /* SIDEBAR: Hapus dari view di mobile, tapi tetap ada */
    .sidebar {
        width: 0;
        padding: 0;
        border-right: none;
        visibility: hidden;
    }

    .sidebar.collapsed {
        width: 0;
    }

    /* MAIN CONTENT: Ambil full width */
    .main-content {
        width: 100%;
        height: 100vh;
    }

    /* CONTAINER: Flex horizontal untuk mobile nav */
    .app-container {
        flex-direction: column;
    }

    /* HEADER: Kurangi ukuran */
    #mainTitle {
        font-size: 40px;
        margin-top: 10px;
    }

    #subTitle {
        font-size: 14px;
    }

    /* NAVIGATION: Responsive design */
    .top-nav {
        flex-wrap: wrap;
        padding: 8px;
        gap: 5px;
    }

    .top-nav a,
    .dropbtn {
        min-width: auto;
        padding: 10px 12px;
        margin: 2px;
        font-size: 12px;
        flex: 1;
        min-width: 80px;
    }

    /* DROPDOWN: Vertical positioning untuk mobile */
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        top: auto;
    }

    .dropdown:hover .dropdown-content {
        display: none; /* Jangan muncul di hover mobile */
    }

    /* Touch-friendly dropdown untuk mobile */
    .dropdown.active .dropdown-content {
        display: block;
        position: absolute;
        width: 150px;
        z-index: 1000;
    }

    /* STATS GRID: Single column di mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 100%;
    }

    /* FORM: Full width */
    .form-container {
        width: 100%;
        max-width: 100%;
        padding: 15px;
        margin: 0;
        border-radius: 10px;
    }

    .form-wrapper {
        padding: 15px;
        align-items: center;
    }

    /* TABLE: Horizontal scroll lebih friendly */
    .table-container {
        padding: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling di iOS */
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 5px;
        font-size: 11px;
    }

    /* CONTENT AREA: Sesuaikan padding */
    .content-area {
        padding: 15px;
    }

    /* PAGE TITLE: Responsive */
    .page-title {
        font-size: 20px;
        padding: 10px;
    }

    /* STAT BODY: Karena space terbatas */
    .stat-body {
        font-size: 40px;
        padding: 20px 10px;
    }

    /* BANNER TEXT */
    .banner-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    /* LOGIN CARD */
    .login-card-new {
        width: 90%;
        max-width: 320px;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    /* EXTRA SMALL DEVICES */
    #mainTitle {
        font-size: 30px;
    }

    #subTitle {
        font-size: 12px;
    }

    .top-nav a,
    .dropbtn {
        min-width: 70px;
        padding: 8px 8px;
        font-size: 11px;
    }

    /* FORM FULL WIDTH */
    .form-container {
        width: 100%;
        padding: 12px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .input-field,
    .input-search {
        padding: 10px;
        font-size: 12px;
    }

    /* TABLE: More compact */
    .data-table th,
    .data-table td {
        padding: 6px 3px;
        font-size: 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-body {
        font-size: 32px;
        padding: 15px 8px;
    }

    .page-title {
        font-size: 18px;
    }

    /* CONTENT PADDING MINIMAL */
    .content-area {
        padding: 10px;
    }

    .maintenance-page {
        margin: 20px 10px;
        padding: 15px;
    }
}

/* =========================================
   10. ADMINCAST-STYLE OVERRIDE (KUBARPAYNET)
   ========================================= */
:root {
    --ui-bg: #f4f7fb;
    --ui-surface: #ffffff;
    --ui-primary: #2b4acb;
    --ui-primary-soft: #eef2ff;
    --ui-text: #1a2640;
    --ui-muted: #6d7890;
    --ui-border: #e2e8f2;
    --ui-shadow: 0 12px 28px rgba(22, 38, 87, 0.08);
}

body.dashboard-shell,
body.dashboard-shell * {
    font-family: 'Manrope', Arial, sans-serif;
}

body.dashboard-shell {
    background: radial-gradient(circle at 6% 0%, #dce8ff 0%, #f4f7fb 36%, #f4f7fb 100%);
    color: var(--ui-text);
}

body.dashboard-shell .app-container {
    height: 100vh;
    gap: 16px;
    padding: 16px;
    overflow: hidden;
}

body.dashboard-shell .sidebar {
    width: 250px;
    background: linear-gradient(180deg, #202f66 0%, #1a2342 100%);
    border-radius: 18px;
    box-shadow: 0 16px 38px rgba(15, 23, 52, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

body.dashboard-shell .sidebar.collapsed {
    width: 78px !important;
}

body.dashboard-shell .sidebar.collapsed .sidebar-user-card,
body.dashboard-shell .sidebar.collapsed .sidebar-footer {
    display: none;
}

body.dashboard-shell .sidebar.collapsed .sidebar-main-menu {
    display: flex;
    padding: 8px 6px;
    align-items: center;
}

body.dashboard-shell .sidebar.collapsed .sidebar-main-menu .menu-item,
body.dashboard-shell .sidebar.collapsed .menu-group summary {
    justify-content: center;
    padding: 10px 6px;
}

body.dashboard-shell .sidebar.collapsed .sidebar-main-menu .menu-item span:not(.menu-icon),
body.dashboard-shell .sidebar.collapsed .menu-group summary span:not(.menu-icon) {
    display: none;
}

body.dashboard-shell .sidebar.collapsed .menu-group summary::after {
    display: none;
}

body.dashboard-shell .sidebar.collapsed .menu-subitems {
    display: none !important;
}

body.dashboard-shell .sidebar.collapsed .sidebar-clock {
    display: none;
}

body.dashboard-shell .sidebar-user-card {
    margin: 0 12px 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

body.dashboard-shell .sidebar-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
}

body.dashboard-shell .sidebar-user-meta {
    display: flex;
    flex-direction: column;
}

body.dashboard-shell .sidebar-user-meta strong {
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
}

body.dashboard-shell .sidebar-user-meta small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
}

body.dashboard-shell .sidebar-main-menu {
    flex: 1;
    overflow-y: auto;
    padding: 0 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.dashboard-shell .sidebar-main-menu .menu-link,
body.dashboard-shell .sidebar-main-menu .menu-subitems a {
    color: #d8def4;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 12px;
    text-decoration: none;
    display: block;
}

body.dashboard-shell .sidebar-main-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.dashboard-shell .sidebar-main-menu .menu-icon {
    width: 16px;
    text-align: center;
    opacity: 0.9;
    flex-shrink: 0;
}

body.dashboard-shell .sidebar-main-menu .menu-link:hover,
body.dashboard-shell .sidebar-main-menu .menu-subitems a:hover,
body.dashboard-shell .sidebar-main-menu a.active-sidebar {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    transform: none;
    box-shadow: none;
}

body.dashboard-shell .menu-group {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.12);
}

body.dashboard-shell .menu-group summary {
    list-style: none;
    cursor: pointer;
    color: #f2f6ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

body.dashboard-shell .menu-group summary::-webkit-details-marker {
    display: none;
}

body.dashboard-shell .menu-subitems {
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.26s ease, opacity 0.2s ease, padding-bottom 0.2s ease;
}

body.dashboard-shell .menu-group[open] .menu-subitems {
    max-height: 280px;
    opacity: 1;
    padding-bottom: 8px;
}

body.dashboard-shell .sidebar-clock {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #dfe7ff;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.dashboard-shell .sidebar > .sidebar-clock {
    margin: 12px 12px 10px;
    padding: 12px;
}

body.dashboard-shell .sidebar-clock #timeDisplay {
    font-size: 22px;
    line-height: 1.1;
    font-weight: 800;
    color: #ffffff;
}

body.dashboard-shell .sidebar-clock .wita-text {
    font-size: 11px;
    letter-spacing: 1px;
    margin: 0;
    color: #afc0ff;
}

body.dashboard-shell .sidebar-clock #dateDisplay {
    font-size: 11px;
    color: #d2dcff;
}

body.dashboard-shell .menu-group summary::after {
    content: '›';
    position: absolute;
    right: 12px;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
    opacity: 0.8;
}

body.dashboard-shell .menu-group[open] summary::after {
    transform: rotate(90deg);
}

body.dashboard-shell .sidebar-footer {
    padding: 10px;
    height: auto;
}

body.dashboard-shell .btn-logout {
    background: #ff5b73;
    color: #fff;
    border-radius: 10px;
    box-shadow: none;
    font-size: 13px;
    letter-spacing: 0.3px;
}

body.dashboard-shell .btn-logout:hover {
    transform: none;
    background: #f0445e;
}

body.dashboard-shell .sidebar-toggle-btn {
    right: -13px;
    width: 26px;
    height: 26px;
    background: #fff;
    color: #1e2f68;
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow);
}

body.dashboard-shell .main-content {
    background: transparent;
    height: calc(100vh - 32px);
    min-width: 0;
}

body.dashboard-shell .top-header {
    background: transparent;
}

body.dashboard-shell .header-banner {
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: var(--ui-shadow);
    justify-content: center;
}

body.dashboard-shell .banner-text {
    width: 100%;
    text-align: center;
}

body.dashboard-shell #mainTitle {
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #1a2640;
    text-shadow: none;
    margin: 0;
}

body.dashboard-shell #subTitle {
    margin-top: 4px;
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 0.8px;
    color: var(--ui-muted);
    text-shadow: none;
    text-align: center;
}

body.dashboard-shell .header-time {
    display: none;
}

body.dashboard-shell .top-nav {
    background: transparent;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

body.dashboard-shell .top-nav a,
body.dashboard-shell .dropbtn {
    background: var(--ui-surface);
    color: #304163;
    border: 1px solid var(--ui-border);
    box-shadow: none;
    min-width: 128px;
    margin: 0;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

body.dashboard-shell .top-nav a:hover,
body.dashboard-shell .top-nav a.active,
body.dashboard-shell .dropdown:hover .dropbtn {
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
    transform: none;
}

body.dashboard-shell .dropdown-content {
    margin-top: 8px;
    background: #fff;
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    box-shadow: var(--ui-shadow);
    padding: 6px;
}

body.dashboard-shell .dropdown-content a {
    background: transparent;
    border-radius: 8px;
    color: #304163;
    margin: 0;
    border: none;
}

body.dashboard-shell .dropdown-content a:hover {
    background: var(--ui-primary-soft);
    box-shadow: none;
    color: var(--ui-primary);
}

body.dashboard-shell .content-area {
    margin-top: 12px;
    padding: 18px;
    border: 1px solid var(--ui-border);
    border-radius: 16px;
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow);
}

body.dashboard-shell .main-footer {
    margin-top: 6px;
    background: transparent;
    background-image: none;
    border: none;
    color: var(--ui-muted);
    font-size: 10px;
    padding: 4px 0;
}

@media (max-width: 768px) {
    body.dashboard-shell .sidebar {
        visibility: visible;
        width: 230px;
        padding: 0;
        border-right: none;
    }

    body.dashboard-shell .app-container {
        flex-direction: row;
        padding: 10px;
        gap: 10px;
    }

    body.dashboard-shell .header-banner {
        padding: 14px;
    }

    body.dashboard-shell #mainTitle {
        font-size: 22px;
        text-align: center;
    }

    body.dashboard-shell .top-nav a,
    body.dashboard-shell .dropbtn {
        min-width: 94px;
        font-size: 12px;
    }

    body.dashboard-shell .content-area {
        padding: 12px;
    }
}
