/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Color Palette */
    --primary-color: #1a2a44;       /* Biru Modern */
    --primary-hover: #3f37c9;
    --secondary-color: #4cc9f0;
    
    /* Sidebar Colors */
    --sidebar-bg: #c0ccd3;          /* Dark Navy/Black */
    --sidebar-text: #2c2c2c;
    --sidebar-text-hover: #3f37c9;
    --sidebar-active-bg: rgba(67, 97, 238, 0.1); 
    --submenu-bg: rgba(0, 0, 0, 0.2); /* Background Submenu lebih gelap */
    
    /* Layout & Spacing */
    --sidebar-width: 260px;
    --header-height: 70px;
    --border-radius: 8px;
    
    /* Backgrounds */
    --body-bg: #f3f4f6;
    --card-bg: #ffffff;
    
    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
    --transition-speed: 0.35s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--body-bg);
    color: #333;
    font-size: 14px;
    overflow-x: hidden;
}

a { text-decoration: none; }
ul { list-style: none; }

/* =========================================
   2. LAYOUT STRUCTURE
   ========================================= */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* =========================================
   3. SIDEBAR STYLING
   ========================================= */
#sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    transition: all var(--transition-speed) ease;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto; /* Scroll jika menu panjang */
}

/* Scrollbar Sidebar (Chrome/Safari) */
#sidebar::-webkit-scrollbar { width: 5px; }
#sidebar::-webkit-scrollbar-thumb { background: #444; border-radius: 5px; }

/* Sidebar Logo Area */
.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 25px;
    background: rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-logo {
    max-width: 140px;
    max-height: 45px;
    object-fit: contain;
}

/* Sidebar Menu List */
.sidebar-menu {
    padding: 20px 15px;
}

.menu-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6c7293;
    margin-bottom: 10px;
    padding: 0 15px;
    font-weight: 600;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

/* Style Umum Link Menu */
.sidebar-menu li a {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    color: var(--sidebar-text);
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    transition: all 0.3s;
    position: relative;
}

.sidebar-menu li a i {
    font-size: 1.1rem;
    margin-right: 15px;
    width: 25px;
    text-align: center;
    transition: 0.3s;
}

/* Hover & Active States */
.sidebar-menu li a:hover {
    color: var(--sidebar-text-hover);
    background: rgba(255,255,255,0.05);
}

.sidebar-menu li a.active {
    color: var(--primary-color);
    background: var(--sidebar-active-bg);
    font-weight: 600;
}

.sidebar-menu li a.active i {
    color: var(--primary-color);
}

/* =========================================
   4. SUBMENU STYLING (NEW!)
   ========================================= */
/* Layout khusus untuk tombol toggle dropdown */
.menu-toggle {
    justify-content: space-between; /* Agar panah di kanan mentok */
}

.menu-icon-text {
    display: flex;
    align-items: center;
}

/* Submenu Container */
.submenu {
    display: none; /* Hidden default */
    background: var(--submenu-bg);
    margin-top: 5px;
    border-radius: var(--border-radius);
    padding: 5px 0;
    animation: fadeIn 0.3s ease;
}

.submenu li a {
    padding-left: 55px; /* Indentasi ke dalam */
    font-size: 0.9rem;
    color: #888;
}

.submenu li a i {
    font-size: 0.5rem; /* Icon titik kecil */
    width: 10px;
    margin-right: 10px;
}

.submenu li a:hover {
    color: #fff;
    padding-left: 60px; /* Efek geser sedikit */
}

.submenu li a.active {
    color: var(--primary-color);
    background: transparent;
}

/* Rotasi Panah */
.menu-arrow {
    margin-right: 0 !important;
    font-size: 0.8rem !important;
    transition: transform 0.3s;
}

/* State Terbuka */
.has-submenu.open > .menu-toggle {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.has-submenu.open .menu-arrow {
    transform: rotate(90deg);
}
/* =========================
   HUBUNGI ADMIN FLOAT BUTTON
========================= */
.hubungi-admin {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.hubungi-admin-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 14px;
    padding: 10px 12px;

    box-shadow: 0 6px 18px rgba(0,0,0,.15);
    cursor: pointer;

    transition: transform .2s ease, box-shadow .2s ease;
}

.hubungi-admin-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0,0,0,.2);
}

.hubungi-admin-btn img {
    width: 48px;
    height: auto;
}

.hubungi-admin-btn span {
    font-size: 13px;
    font-weight: 600;
    color: #162d64;
    white-space: nowrap;
}

/* =========================
   MOBILE FRIENDLY
========================= */
@media (max-width: 768px) {
    .hubungi-admin {
        bottom: 16px;
        right: 16px;
    }

    .hubungi-admin-btn img {
        width: 42px;
    }

    .hubungi-admin-btn span {
        font-size: 12px;
        font-weight: 600;
    }
}

/* =========================================
   5. CONTENT & HEADER STYLING
   ========================================= */
#content {
    width: 100%;
    min-height: 100vh;
    transition: all var(--transition-speed) ease;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

.navbar {
    padding: 0 30px;
    background: var(--card-bg);
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: var(--shadow-sm);
}

.btn-toggle {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: #555;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-toggle:hover {
    background: #f0f0f0;
    color: var(--primary-color);
}

/* =========================================
   6. USER DROPDOWN
   ========================================= */
.user-dropdown { position: relative; }

.user-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.user-btn:hover { color: var(--primary-color); }

.dropdown-menu {
    display: none;
    position: absolute;
    top: 120%;
    right: 0;
    width: 240px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    animation: slideDown 0.3s ease forwards;
    z-index: 1000;
}

.dropdown-menu.show { display: block; }

.user-info {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
}

.user-name { font-size: 1rem; font-weight: 600; margin-bottom: 5px; }
.user-role { font-size: 0.75rem; background: rgba(255,255,255,0.2); padding: 3px 10px; border-radius: 20px; }

.dropdown-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.2s;
    border-left: 3px solid transparent;
}

.dropdown-item i { margin-right: 12px; color: #999; }
.dropdown-item:hover { background: #f8f9fa; color: var(--primary-color); border-left: 3px solid var(--primary-color); }
.dropdown-item.text-danger:hover { color: #e63946; border-left-color: #e63946; background: #fff5f5; }

.main-content { padding: 30px; flex: 1; }

/* =========================================
   7. RESPONSIVE
   ========================================= */
@media (min-width: 769px) {
    #sidebar.active { margin-left: calc(var(--sidebar-width) * -1); }
    #content.active { margin-left: 0; }
}

@media (max-width: 768px) {
    .navbar { padding: 0 20px; }
    #sidebar { margin-left: calc(var(--sidebar-width) * -1); }
    #content { margin-left: 0; }
    
    #sidebar.active { margin-left: 0; box-shadow: 5px 0 15px rgba(0,0,0,0.3); }
    #content.active::before {
        content: '';
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5); z-index: 800; backdrop-filter: blur(2px);
    }
}

/* Animations */
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


.page-title {
    margin-bottom: 15px;
}

/* ===============================
   CARD (INI YANG KEMARIN HILANG)
=============================== */
.card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid #e5e7eb;
}

.card-body {
    width: 100%;
}

/* ===============================
   PROFILE
=============================== */
.profile-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* FOTO */
.profile-image img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
}

/* INFO */
.profile-info p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}

/* ===============================
   ACTION
=============================== */
.profile-action {
    margin-top: 20px;
}

/* ===============================
   BUTTON
=============================== */
.btn {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.btn-primary {
    background: #4e73df;
    color: #fff;
}

.btn-primary:hover {
    background: #2e59d9;
}

/* ===============================
   MOBILE
=============================== */
@media (max-width: 480px) {
    .profile-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .profile-image img {
        width: 80px;
        height: 80px;
    }
        .profile-action {
        text-align: center;
    }

        .profile-action .btn {
        display: inline-block;
    }
}

/* ===============================
   FORM
=============================== */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
}

/* ===============================
   PREVIEW FOTO
=============================== */
.profile-preview {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #ddd;
}

/* ===============================
   ACTION BUTTON
=============================== */
.form-action {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* ===============================
   BUTTON SECONDARY
=============================== */
.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* ===============================
   MOBILE
=============================== */
@media (max-width: 480px) {
    .form-action {
        flex-direction: column;
        align-items: center;
    }

    .form-action .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===============================
   CONTAINER
=============================== */
.table-container {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

/* ===============================
   TOP BAR
=============================== */
.table-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

/* ===============================
   SEARCH
=============================== */
.table-search {
    display: flex;
    gap: 8px;
}

.table-search input {
    padding: 9px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* ===============================
   BUTTON MAIN
=============================== */
.btn-main {
    padding: 9px 14px;
    border-radius: 6px;
    background: #4e73df;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.btn-main:hover {
    background: #2e59d9;
}

/* ===============================
   TABLE
=============================== */
.table-responsive {
    overflow-x: auto;
}

.table-main {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table-main th {
    background: #f8f9fc;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #eee;
}

.table-main td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.table-main tr:hover {
    background: #fafafa;
}

/* ===============================
   ACTION BUTTON
=============================== */
.action-cell {
    display: flex;
    gap: 5px;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

/* EDIT */
.btn-small.edit {
    background: #36b9cc;
    color: #fff;
}

.btn-small.edit:hover {
    background: #2c9faf;
}

/* DELETE */
.btn-small.delete {
    background: #e74a3b;
    color: #fff;
}

.btn-small.delete:hover {
    background: #c0392b;
}

/* ===============================
   PAGINATION
=============================== */
.table-pagination {
    margin-top: 15px;
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

.table-pagination a {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    color: #333;
}

.table-pagination a.active {
    background: #4e73df;
    color: #fff;
    border-color: #4e73df;
}

/* ===============================
   MOBILE
=============================== */
@media (max-width: 480px) {

    .table-top {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    /* SEARCH LEBIH PROPORSIONAL */
    .table-search {
        display: flex;
        width: 100%;
        gap: 6px;
    }

    .table-search input {
        flex: 1;
        min-width: 0;
    }

    .table-search button {
        white-space: nowrap;
        padding: 9px 12px;
    }

    /* BUTTON TAMBAH FULL */
    .table-top > .btn-main {
        width: 100%;
        text-align: center;
    }

    .action-cell {
        flex-direction: column;
    }

        .btn-main {
        width: 100%;
        text-align: center;
    }

    .table-pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
}
/* ===============================
   BASE BUTTON TABLE
=============================== */
.table-btn {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

/* ===============================
   VARIANT
=============================== */
.table-btn-search {
    background: #4e73df;
    color: #fff;
}

.table-btn-add {
    background: #1cc88a;
    color: #fff;
}

.table-btn-edit {
    background: #36b9cc;
    color: #fff;
}

.table-btn-delete {
    background: #e74a3b;
    color: #fff;
}

/* HOVER */
.table-btn:hover {
    opacity: 0.9;
}

/* ===============================
   MOBILE FIX (INI YANG PENTING)
=============================== */
@media (max-width: 480px) {

    .table-top {
        flex-direction: column;
        gap: 10px;
    }

    /* SEARCH LAYOUT */
    .table-search {
        display: flex;
        width: 100%;
        gap: 6px;
    }

    .table-search input {
        flex: 1;
        min-width: 0;
    }

    /* tombol cari NORMAL */
    .table-btn-search {
        flex: 0 0 auto;
    }

    /* tombol tambah FULL */
    .table-btn-add {
        width: 100%;
    }

    /* ACTION BUTTON */
    .action-cell {
        flex-direction: column;
        gap: 5px;
    }

    .table-pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ===============================
   FORM TABLE
=============================== */
.form-table {
    max-width: 500px;
}

/* ===============================
   FORM GROUP
=============================== */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
}

/* ===============================
   ACTION
=============================== */
.form-action {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* ===============================
   BUTTON KEMBALI (NETRAL)
=============================== */
.form-action .table-btn {
    background: #858796;
    color: #fff;
}

.form-action .table-btn-add {
    background: #495df3;
    color: #fff;
}

/* ===============================
   MOBILE
=============================== */
@media (max-width: 480px) {

    .form-table {
        max-width: 100%;
    }

    .form-action {
        flex-direction: column;
    }

    .form-action .table-btn {
        width: 100%;
    }
}

/* ===============================
   TABLE IMAGE PREVIEW
=============================== */
.table-img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* ===============================
   FORM IMAGE PREVIEW
=============================== */
.form-img-preview {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* ===============================
   FORM TRANSAKSI
=============================== */

.form-container-transaksi {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
}

.form-transaksi {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* GROUP */
.form-group-transaksi {
    display: flex;
    flex-direction: column;
}

.form-group-transaksi label {
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group-transaksi input,
.form-group-transaksi textarea {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* ACTION BUTTON */
.form-action-transaksi {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* BUTTON */
.btn-transaksi {
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

/* PRIMARY */
.btn-primary-transaksi {
    background-color: #3498db;
    color: white;
}

/* SECONDARY */
.btn-secondary-transaksi {
    background-color: #95a5a6;
    color: white;
}

.produk-container-transaksi {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.produk-item-transaksi {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 10px;
}

.produk-item-transaksi input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.btn-remove-transaksi {
    background: red;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.summary-transaksi {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.total-box-transaksi {
    margin-top: 10px;
    font-size: 16px;
}

/* ===============================
   CONTAINER
=============================== */
.form-container-transaksi {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    max-width: 900px;
}

/* ===============================
   PRODUK LIST
=============================== */
.produk-container-transaksi {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.produk-item-transaksi {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: center;
}

/* INPUT */
.produk-item-transaksi input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
}

/* SUBTOTAL READONLY */
.subtotal-transaksi {
    background-color: #f5f6fa;
    font-weight: 600;
}

/* REMOVE BUTTON */
.btn-remove-transaksi {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.btn-remove-transaksi:hover {
    background: #c0392b;
}

/* ===============================
   BUTTON TAMBAH PRODUK
=============================== */
#tambah-produk {
    margin-bottom: 20px;
    width: fit-content;
}

/* ===============================
   SUMMARY BOX
=============================== */
.summary-transaksi {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fafafa;
}

/* FORM GROUP */
.form-group-transaksi {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.form-group-transaksi label {
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group-transaksi input,
.form-group-transaksi select {
    padding: 9px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* ===============================
   TOTAL BOX
=============================== */
.total-box-transaksi {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #ccc;
    font-size: 15px;
    line-height: 1.8;
}

.total-box-transaksi strong {
    font-size: 17px;
    color: #2c3e50;
}

/* ===============================
   ACTION BUTTON
=============================== */
.form-action-transaksi {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* BUTTON GLOBAL */
.btn-transaksi {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

/* PRIMARY */
.btn-primary-transaksi {
    background-color: #3498db;
    color: white;
}

.btn-primary-transaksi:hover {
    background-color: #2980b9;
}

/* SECONDARY */
.btn-secondary-transaksi {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary-transaksi:hover {
    background-color: #7f8c8d;
}

/* ===============================
   RESPONSIVE
=============================== */
@media (max-width: 768px) {
    .produk-item-transaksi {
        grid-template-columns: 1fr;
    }

    .btn-remove-transaksi {
        width: 100%;
    }
}

/* ===============================
   CHECKBOX KARYAWAN
=============================== */

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f2f6;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.checkbox-item:hover {
    background: #dfe4ea;
}

.checkbox-item input {
    cursor: pointer;
}

.checkbox-item span {
    font-size: 14px;
}

/* PROGRESS BAR */
.progress-container {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-bar {
    height: 100%;
    background-color: #4CAF50;
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* STATUS */
.status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: white;
}

.status.pending {
    background-color: #f39c12;
}

.status.proses {
    background-color: #3498db;
}

.status.selesai {
    background-color: #2ecc71;
}

/* CONTAINER */
.dashboard-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* CARD BASE */
.dashboard-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 14px;
    color: #fff;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* ICON */
.card-icon {
    font-size: 30px;
    opacity: 0.9;
}

/* TEXT */
.card-content h3 {
    font-size: 14px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.card-content p {
    font-size: 26px;
    font-weight: bold;
}

/* COLORS */
.card-blue {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.card-orange {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.card-green {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.card-purple {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

/* CONTAINER */
.detail-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* CARD */
.detail-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* GRID INFO */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.detail-grid label {
    font-size: 12px;
    color: #888;
}

.detail-grid p {
    font-weight: 500;
}

/* PROGRESS */
.progress-section {
    margin-top: 10px;
    margin-bottom: 10px;
}

.progress-container {
    width: 100%;
    height: 12px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin: 5px 0;

}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: width 0.3s ease;
}

/* STATUS */
.status {
    padding: 5px 10px;
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    padding-top: 6px;
}

.status.pending {
    background: #f39c12;
}

.status.proses {
    background: #3498db;
}

.status.selesai {
    background: #2ecc71;
}

/* TIMELINE */
.timeline {
    position: relative;
    margin-top: 15px;
    padding-left: 20px;
    border-left: 2px solid #ddd;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-dot {
    position: absolute;
    left: -10px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #3498db;
    border-radius: 50%;
}

.timeline-content {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 8px;
}

.timeline-header {
    font-size: 13px;
    margin-bottom: 5px;
    color: #555;
}

.timeline-body p {
    margin-bottom: 5px;
    font-size: 14px;
}

/* MOBILE */
@media (max-width: 600px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   KEUANGAN FILTER
=============================== */
.keuangan-filter {
    margin-bottom: 20px;
}

.keuangan-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 12px;
    margin-bottom: 4px;
}

.filter-group input {
    padding: 6px 8px;
}

/* ===============================
   KEUANGAN CARD
=============================== */
.keuangan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.keuangan-card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.keuangan-card h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
}

.keuangan-card p {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

/* ===============================
   PENGHASILAN CHART
=============================== */
.penghasilan-chart {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.penghasilan-chart h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #555;
}

/* WRAPPER */
.chart-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 10px;
}

/* BAR ITEM */
.chart-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 20px;
}

/* BAR */
.bar {
    width: 100%;
    background: #3498db;
    border-radius: 4px 4px 0 0;
    transition: 0.3s;
}

/* LABEL */
.chart-label {
    font-size: 10px;
    margin-top: 5px;
    color: #777;
}

/* ===============================
   RESPONSIVE
=============================== */
@media (max-width: 768px) {
    .chart-wrapper {
        gap: 4px;
    }

    .chart-bar-item {
        min-width: 16px;
    }

    .chart-label {
        font-size: 9px;
    }
}

/* ===============================
   PENGHASILAN CHART
=============================== */
.penghasilan-chart {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    height: 300px;
}

.penghasilan-chart canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ===============================
   PENGHASILAN FILTER
=============================== */
.penghasilan-filter {
    margin-bottom: 15px;
}

.penghasilan-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.card-red {
    background: #e74c3c;
}

/* ===============================
   ABSEN PAGE
=============================== */

.absen-container {
    max-width: 400px;
    margin: 30px auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.form-absen .form-group {
    margin-bottom: 20px;
}

.form-absen label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-absen input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
}

/* BUTTON */
.btn-absen {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

/* LOKASI */
.btn-lokasi {
    background: #3498db;
    color: #fff;
}

.btn-lokasi:hover {
    background: #2980b9;
}

/* SUBMIT */
.btn-submit {
    background: #2ecc71;
    color: #fff;
}

.btn-submit:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* SUDAH ABSEN */
.absen-done {
    text-align: center;
    padding: 30px 10px;
    background: #eafaf1;
    border-radius: 10px;
    color: #27ae60;
    font-weight: 600;
}

/* =========================
   BILLING TV
========================= */

.billing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tv-card-billing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    min-height: 220px;
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    transition: 0.3s;
    box-sizing: border-box;
}

.tv-card-billing:hover {
    transform: translateY(-5px);
}

.tv-title-billing {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.tv-status-billing {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.tv-price-billing {
    font-size: 15px;
    margin-bottom: 15px;
}

.tv-timer-billing {
    font-size: 24px;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    padding: 10px 15px;
    border-radius: 8px;
}

/* STATUS */

.status-kosong {
    background: #16a34a;
}

.status-aktif {
    background: #dc2626;
}

.status-mati {
    background: #4b5563;
    cursor: not-allowed;
}

.status-service {
    background: #d97706;
    cursor: not-allowed;
}

/* RESPONSIVE */

@media (max-width: 1200px) {

    .billing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {

    .billing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .billing-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* =========================
   HERO SECTION
========================= */

.hero-front {
    position: relative;
    min-height: 420px;
    background-image: url('https://cdn.pixabay.com/photo/2016/11/29/09/08/game-1869213_1280.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

.hero-button {
    display: inline-block;
    padding: 14px 28px;
    background: #4f46e5;
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.hero-button:hover {
    background: #4338ca;
    transform: translateY(-2px);
}

/* =========================
   INFO SECTION
========================= */

.info-front {
    max-width: 1200px;
    margin: -50px auto 50px;
    padding: 0 20px;
    position: relative;
    z-index: 10;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.info-card {
    background: white;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.info-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
    color: #111827;
}

.info-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* =========================
   TV SECTION
========================= */

.tv-section {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 35px;
}

.section-title h2 {
    font-size: 34px;
    margin-bottom: 10px;
    color: #111827;
}

.section-title p {
    color: #6b7280;
}

/* =========================
   GRID TV
========================= */

.billing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

/* =========================
   TV CARD
========================= */

.tv-card-billing {
    text-decoration: none;
    color: white;
    border-radius: 20px;
    padding: 25px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    min-height: 180px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.tv-card-billing:hover {
    transform: translateY(-5px);
}

.tv-title-billing {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tv-status-billing {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.tv-price-billing {
    font-size: 17px;
    margin-bottom: 15px;
}

.tv-timer-billing {
    background: rgba(255,255,255,0.2);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
}

/* =========================
   STATUS COLOR
========================= */

.status-aktif {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.status-kosong {
    background: linear-gradient(135deg, #10b981, #059669);
}

.status-mati {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.status-service {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .tv-title-billing {
        font-size: 24px;
    }

}