:root {
    --primary-dark: #2c3e50;
    --accent-blue: #4a90e2;
    --accent-yellow: #f1c40f;
    --accent-green: #2ecc71;
    --bg-light: #f4f7f9;
    --white: #ffffff;
    --text-main: #333;
    --text-muted: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

body {
    background: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
}

/* LAYOUT */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 280px;
    background: var(--white);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e1e8ed;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.logo-img {
    width: 45px;
}

.logo-text h2 {
    font-size: 1rem;
    color: var(--primary-dark);
}

.logo-text p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* MENU */
.nav-menu {
    flex-grow: 1;
}

.nav-link {
    display: block;
    padding: 14px 20px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: 0.3s;
}

.nav-link:hover {
    background: #f0f4f8;
    transform: translateX(5px);
}

.nav-link.active {
    background: var(--primary-dark);
    color: white;
}

/* PROMO */
.sidebar-promo {
    background: var(--primary-dark);
    border-radius: 20px;
    overflow: hidden;
    color: white;
    text-align: center;
}

.promo-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.promo-content {
    padding: 15px;
    font-size: 0.8rem;
}

/* MAIN */
.main-content {
    flex: 1;
    padding: 30px;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #3d5a7a, #2c3e50);
    border-radius: 25px;
    padding: 40px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.hero-info h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.hero-info span {
    color: #81ecec;
}

.hero-graphic img {
    width: 300px;
}

/* CARD UMUM */
.card {
    background: var(--white);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #eee;
}

/* ACTION */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.action-card {
    text-align: center;
    background: #eef4fb;
    transition: 0.3s;
}

.action-card:hover {
    transform: translateY(-8px);
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.bg-blue {
    background: #d0e1f9;
}

.bg-yellow {
    background: #fef5d1;
}

.bg-gray {
    background: #e2e8f0;
}

.btn-primary {
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 15px;
    cursor: pointer;
}

/* DASHBOARD */
.dashboard-flex {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 25px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.view-all {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.9rem;
}

/* CHART */
.chart-box {
    text-align: center;
}

/* LEGEND CHART */
.chart-legend-top {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}

.chart-box canvas {
    width: 100% !important;
}

/* Hapus / override style donut lama */
.donut-chart {
    display: none;
}

.donut-inner {
    display: none;
}

.chart-legend {
    display: none;
}

.chart-legend {
    list-style: none;
    font-size: 0.85rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.blue {
    background: var(--accent-blue);
}

.yellow {
    background: var(--accent-yellow);
}

.green {
    background: var(--accent-green);
}

/* ================================================ */
/* FORM CARD (Kritik & Saran / Lapor Prasarana)    */
/* ================================================ */

.form-card {
    max-width: 700px;
    margin-top: 20px;
}

.form-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: var(--primary-dark);
}

.form-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

/* Label */
.form-label {
    display: block;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* Group jarak antar field */
.form-group {
    margin-bottom: 20px;
}

/* Input umum */
.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
    transition: border 0.3s;
}

.form-input:focus {
    border-color: var(--accent-blue);
}

/* Input disabled = abu-abu, tidak bisa diklik */
.input-disabled {
    background-color: #f0f0f0;
    color: #999;
    cursor: not-allowed;
    border-color: #ddd;
}

/* Textarea */
.form-textarea {
    height: 130px;
    resize: vertical;
}

/* Area Upload */
.upload-area {
    border: 2px dashed #b0bec5;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    background: #fafafa;
    width: fit-content;
    min-width: 200px;
}

.upload-area:hover {
    border-color: var(--accent-blue);
    background: #f0f7ff;
}

.upload-placeholder i {
    font-size: 1.8rem;
    color: var(--accent-blue);
    margin-bottom: 8px;
}

.upload-placeholder p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Preview gambar setelah upload */
.upload-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

/* Tombol submit */
.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-submit {
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #1a252f;
    transform: translateY(-2px);
}

/* ================================================ */
/* FORM CARD                                        */
/* ================================================ */

.form-card {
    /* Ikuti lebar main-content penuh */
    width: 100%;
    margin-top: 20px;
    box-sizing: border-box;
}

.form-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: var(--primary-dark);
}

.form-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
    transition: border 0.3s;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--accent-blue);
}

.input-disabled {
    background-color: #f0f0f0;
    color: #999;
    cursor: not-allowed;
    border-color: #ddd;
}

.form-textarea {
    height: 130px;
    resize: vertical;
}

/* ================================================ */
/* UPLOAD AREA                                      */
/* ================================================ */

.upload-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

/* Kotak Import Image */
.upload-area {
    width: 110px;
    height: 110px;
    border: 2px dashed #b0bec5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    background: #fafafa;
    flex-shrink: 0;
}

.upload-area:hover {
    border-color: var(--accent-blue);
    background: #f0f7ff;
}

.upload-placeholder {
    text-align: center;
}

.upload-placeholder i {
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-bottom: 6px;
}

.upload-placeholder p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Daftar thumbnail foto */
.upload-preview-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Setiap thumbnail */
.thumb-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #dde3ea;
    cursor: pointer;
    transition: 0.3s;
}

.thumb-wrapper:hover {
    border-color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tombol hapus foto (X) di pojok thumbnail */
.thumb-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.thumb-delete:hover {
    background: #e74c3c;
}

/* Counter foto */
.upload-counter {
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.upload-info {
    font-weight: normal;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ================================================ */
/* TOMBOL SUBMIT                                    */
/* ================================================ */

.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-submit {
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #1a252f;
    transform: translateY(-2px);
}

/* ================================================ */
/* MODAL PREVIEW FOTO                               */
/* ================================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-box img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: 0.2s;
}

.modal-close:hover {
    background: #e74c3c;
    color: white;
}

/* Paksa main-content dan form mengisi lebar penuh */
#KritikSaran {
    width: 100%;
    box-sizing: border-box;
}

#KritikSaran .form-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#LaporPrasarana {
    width: 100%;
    box-sizing: border-box;
}

#LaporPrasarana .form-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ================================================ */
/* RESPONSIVE MOBILE                                */
/* ================================================ */

/* Hamburger — kanan atas */
.hamburger {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    /* ← pindah ke kanan */
    left: auto;
    /* ← reset left */
    z-index: 2000;
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
}

@media (max-width: 992px) {

    /* Hamburger muncul */
    .hamburger {
        display: flex;
    }

    /* Sidebar: fixed, full tinggi, di atas segalanya */
    .sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        /* sembunyikan ke kiri */
        width: 280px;
        height: 100vh;
        z-index: 1800;
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: none;
    }

    .sidebar.active {
        left: 0;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
    }

    /* Overlay muncul saat sidebar aktif */
    .sidebar-overlay.active {
        display: block;
    }

    /* Main content tidak geser */
    .main-content {
        width: 100%;
        padding: 70px 16px 20px 16px;
        /* top 70px beri ruang hamburger */
        overflow-x: hidden;
    }

    /* App container tidak overflow */
    .app-container {
        flex-direction: column;
        overflow-x: hidden;
        width: 100%;
    }

    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Hero stack vertikal */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
        gap: 20px;
    }

    .hero-info h1 {
        font-size: 1.4rem;
    }

    .hero-graphic img {
        width: 200px;
    }

    /* Dashboard flex jadi 1 kolom */
    .dashboard-flex {
        grid-template-columns: 1fr;
    }

    /* Action grid 1 kolom di mobile kecil */
    .action-grid {
        grid-template-columns: 1fr;
    }

    /* Form card full width */
    .form-card {
        width: 100%;
        padding: 18px;
    }

    /* Upload wrapper wrap */
    .upload-wrapper {
        flex-wrap: wrap;
    }

    /* Popup blacklist */
    .popup-box {
        width: 90%;
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .hero-info h1 {
        font-size: 1.2rem;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 16px;
    }
}

.news-item {
    display: flex;
    gap: 15px;
    background: #ffffff;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;

    /* TAMBAHAN */
    border: 2px solid #e3e8ee;
    transition: 0.3s ease;
}

/* HOVER EFFECT BIAR KEREN */
.news-item:hover {
    border-color: #4a90e2;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* ================================================ */
/* PENGUMUMAN ITEM - TAMPILAN BARU                  */
/* ================================================ */

.news-item {
    display: flex;
    flex-direction: column;
    /* ← vertikal, bukan row */
    gap: 6px;
    background: #ffffff;
    padding: 18px 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid #e3e8ee;
    transition: 0.3s ease;
}

.news-item:hover {
    border-color: #4a90e2;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.news-date-top {
    font-size: 0.78rem;
    color: #7f8c8d;
}

.news-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.news-item p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
}

/* Hapus date-badge karena tidak dipakai lagi */
.date-badge {
    display: none;
}

/* Dropdown select */
.form-select {
    appearance: none;
    -webkit-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='%237f8c8d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--accent-blue);
}

/* ================================================ */
/* BADGE WAJIB / OPSIONAL                          */
/* ================================================ */

.badge-wajib {
    display: inline-block;
    background: #fdecea;
    color: #e74c3c;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
    border: 1px solid #f5c6c6;
}

.badge-opsional {
    display: inline-block;
    background: #eaf4fb;
    color: #2980b9;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
    border: 1px solid #aed6f1;
}

/* Pesan error ukuran file */
.upload-size-error {
    margin-top: 8px;
    font-size: 0.82rem;
    color: #e74c3c;
    line-height: 1.8;
}

.upload-size-error i {
    margin-right: 4px;
}

/* ================================================ */
/* POP UP BLACKLIST                                 */
/* ================================================ */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.popup-box {
    background: #fff;
    border-radius: 20px;
    padding: 35px 30px;
    width: 420px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-icon {
    width: 70px;
    height: 70px;
    background: #fdecea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 1.8rem;
    color: #e74c3c;
}

.popup-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
}

.popup-desc {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.popup-kata-list {
    background: #fdecea;
    border: 1px solid #f5c6c6;
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #c0392b;
    font-weight: 600;
    line-height: 1.8;
    text-align: left;
}

.popup-note {
    font-size: 0.82rem;
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 20px;
}

.popup-btn-tutup {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.popup-btn-tutup:hover {
    background: #1a252f;
    transform: translateY(-2px);
}

/* ================================================ */
/* POPUP IMAGE MANAGER - DASHBOARD (styledash.css) */
/* ================================================ */

/* Upload Area Popup */
.db-popup-upload-wrapper {
    margin-bottom: 20px;
}

.db-popup-upload-area {
    width: 100%;
    border: 2px dashed #b0bec5;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    background: #fafafa;
}

.db-popup-upload-area:hover {
    border-color: #4a90e2;
    background: #f0f7ff;
}

.db-popup-upload-placeholder i {
    font-size: 2.5rem;
    color: #4a90e2;
    margin-bottom: 10px;
    display: block;
}

.db-popup-upload-placeholder p {
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 4px;
}

.db-popup-upload-placeholder span {
    font-size: 0.78rem;
    color: #7f8c8d;
}

/* Grid Gambar Popup */
.db-popup-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 5px 0;
    min-height: 40px;
}

.db-popup-kosong {
    font-size: 0.85rem;
    color: #aaa;
    padding: 5px;
    width: 100%;
}

/* Card Gambar Popup */
.db-popup-card {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e8edf2;
    transition: 0.3s;
    flex-shrink: 0;
    background: #f0f4f8;
}

.db-popup-card:hover {
    border-color: #4a90e2;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.db-popup-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

/* Badge urutan */
.db-popup-badge-urutan {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(44, 62, 80, 0.85);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    pointer-events: none;
    line-height: 1.6;
}

/* Tombol hapus di pojok */
.db-popup-btn-hapus {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.db-popup-btn-hapus:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* Loading spinner di card */
.db-popup-loading {
    width: 130px;
    height: 130px;
    border-radius: 12px;
    border: 2px dashed #b0bec5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #7f8c8d;
    flex-direction: column;
    gap: 8px;
    background: #f8fafc;
}

.db-popup-loading i {
    font-size: 1.2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Error upload */
.db-popup-error {
    background: #fdecea;
    border: 1px solid #f5c6c6;
    border-radius: 10px;
    padding: 10px 15px;
    margin-top: 12px;
    font-size: 0.82rem;
    color: #c0392b;
    display: none;
}

/* ================================================ */
/* POPUP GAMBAR - WEB USER (style.css)             */
/* ================================================ */

/* Overlay gelap */
.popup-img-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Kotak popup */
.popup-img-box {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: popupSlideUp 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes popupSlideUp {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Gambar di popup */
.popup-img-box img {
    max-width: 80vw;
    max-height: 78vh;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: block;
}

/* Tombol tutup (X) - melayang di pojok kanan atas */
.popup-img-close {
    position: absolute;
    top: -16px;
    right: -16px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    color: #2c3e50;
    transition: 0.2s;
    z-index: 1;
}

.popup-img-close:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
}

/* Indikator urutan (1 dari 3, dll) */
.popup-img-counter {
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    color: white;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ================================================ */
/* POPUP TUGAS WEWENANG                             */
/* ================================================ */

.popup-tugas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.popup-tugas-overlay.show {
    display: flex;
}

.popup-tugas-box {
    background: #fff;
    border-radius: 20px;
    width: 600px;
    max-width: 92vw;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

.popup-tugas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.popup-tugas-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-tugas-close-btn {
    background: #f0f4f8;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    transition: 0.2s;
}

.popup-tugas-close-btn:hover {
    background: #e74c3c;
    color: white;
}

.popup-tugas-body {
    overflow-y: auto;
    padding: 20px 25px;
    flex: 1;
}

.tugas-section {
    margin-bottom: 28px;
}

.tugas-section:last-child {
    margin-bottom: 0;
}

.tugas-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    padding: 8px 14px;
    background: #eef4fb;
    border-left: 4px solid #4a90e2;
    border-radius: 0 8px 8px 0;
}

.tugas-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tugas-list li {
    display: flex;
    gap: 10px;
    font-size: 0.875rem;
    color: #444;
    line-height: 1.6;
    padding: 6px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.tugas-list li:last-child {
    border-bottom: none;
}

.tugas-list li::before {
    content: "•";
    color: #4a90e2;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Link lihat tugas */
.link-tugas {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: #4a90e2;
    cursor: pointer;
    text-decoration: none;
    margin-top: 6px;
    transition: 0.2s;
}

.link-tugas:hover {
    color: #2c3e50;
    text-decoration: underline;
}

.char-counter {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 4px;
    transition: color 0.2s;
}

.char-counter.warn {
    color: #e67e22;
}

.char-counter.limit {
    color: #e74c3c;
    font-weight: 600;
}