/* ===========================================
/* Desain Kuitansi V25 (Minimalis Modern)
/* =========================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Playfair+Display:wght@700&display=swap');

#receipt-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    font-family: 'Roboto', sans-serif;
    color: #343a40;
    max-width: 380px;
    margin: 0 auto;
    border: 1px solid #e9ecef;
    position: relative;
}

#receipt-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: #0d47a1;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.receipt-header-refined {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #dee2e6;
}

.company-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6em;
    font-weight: 700;
    color: #0d47a1;
    margin: 0;
}

.company-subtitle {
    font-size: 0.8em;
    color: #757575;
    margin-top: 5px;
}

.receipt-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 8px;
    text-align: left;
    align-self: stretch;
}

.receipt-body-content {
    text-align: left;
    margin-bottom: 25px;
}

.nominal-box {
    background-color: #f0f4f8;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.nominal-label {
    font-size: 0.8em;
    font-weight: 500;
    color: #6c757d;
    margin: 0;
    text-transform: uppercase;
}

.nominal-value {
    font-size: 2em;
    font-weight: 700;
    color: #0d47a1;
    margin: 5px 0 0 0;
}

.receipt-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.details-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e0e0e0;
}

.details-label {
    font-size: 0.8em;
    text-transform: uppercase;
    color: #95a5a6;
}

.details-value {
    font-size: 0.9em;
    font-weight: 600;
    color: #343a40;
    text-align: right;
}

.nominal-text {
    font-size: 0.8em;
    font-weight: 500;
    color: #6c757d;
    margin-top: 15px;
    font-style: italic;
    text-align: center;
}

.receipt-footer-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.signature-col,
.note-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.signature-label {
    font-size: 0.8em;
    font-weight: 500;
    color: #757575;
    margin: 0 0 5px 0;
}

.signature-image {
    max-width: 90px;
    height: auto;
    margin-bottom: 5px;
}

.signature-name {
    font-size: 0.85em;
    font-weight: 700;
    color: #0d47a1;
    margin: 0;
}

.thank-you-note {
    font-size: 0.75em;
    font-style: italic;
    color: #95a5a6;
    margin-top: 0;
}

.digital-note {
    font-size: 0.7em;
    font-style: italic;
    color: #95a5a6;
    text-align: center;
    margin-top: 5px;
}

/* --- Gaya baru untuk halaman Database --- */
.whatsapp-number {
    color: var(--accent-color);
    font-weight: 600;
}

.database-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius-base);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 20px;
    position: relative
}

.database-card h4 {
    margin-top: 0;
    font-size: 1.2em;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.database-detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    padding: 8px 0;
}

.database-label {
    font-weight: 500;
    color: var(--light-text-color);
}

.database-value {
    font-weight: 700;
}

.status-lunas {
    color: #28a745;
}

.status-menunggak {
    color: #e74c3c;
}

/* Menambahkan gaya baru untuk status kamar */
.status-tersedia {
    color: #28a745;
}

.status-tidak-tersedia {
    color: #e74c3c;
}

/* --- Gaya untuk halaman Database dengan CRUD --- */
.database-controls {
    text-align: right;
    margin-bottom: 20px;
}

.database-form-container {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-base);
    margin-bottom: 25px;
}

.database-form label {
    display: block;
    font-size: 0.9em;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.database-form input[type="text"],
.database-form input[type="date"],
.database-form input[type="tel"],
.database-form select,
#content-area form input[type="number"],
.custom-file-upload-container {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95em;
    background-color: #f8f8f8;
}

.database-form select {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95em;
    background-color: #f8f8f8;
}

.database-form input[type="text"]:focus,
.database-form input[type="date"]:focus,
.database-form input[type="tel"]:focus,
.database-form select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(66, 165, 245, 0.2);
}

.database-form .form-actions {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.database-card .card-actions {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px dashed #e0e0e0;
    padding-top: 15px;
}

.card-actions .edit-btn {
    background-color: var(--accent-color);
    color: white;
}

.card-actions .form-btn {
    padding: 10px 16px;
    font-size: 0.95em;
    margin-top: 0;
}

.card-actions .delete-btn {
    background-color: #e74c3c;
    color: white;
}

.card-actions .edit-btn:hover {
    background-color: #64b5f6;
}

.card-actions .delete-btn:hover {
    background-color: #c0392b;
}

/* --- Gaya baru untuk status ketersediaan di halaman Daftar Kamar --- */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.room-card {
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
    border: 1px solid transparent;
}

.room-card.available-room {
    cursor: pointer;
    background-color: #e8f5e9;
    border-color: #4caf50;
}

.room-card.available-room:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.2);
}

.room-card.occupied-room {
    background-color: #ffebee;
    cursor: not-allowed;
    opacity: 0.8;
    border-color: #f44336;
}

.room-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.room-card .room-icon {
    font-size: 1.8em;
    margin-bottom: 0;
    margin-right: 12px;
}

.room-card.available-room .room-icon,
.room-card.available-room .room-number,
.room-card.available-room .room-status {
    color: #2e7d32;
}

.room-card.occupied-room .room-icon,
.room-card.occupied-room .room-number,
.room-card.occupied-room .room-status {
    color: #c62828;
}

.room-number {
    font-size: 1.2em;
    font-weight: 700;
    margin: 0;
}

.room-body {
    flex-grow: 1;
}

.room-status {
    font-weight: 500;
    display: flex;
    align-items: center;
    font-size: 0.9em;
    margin-top: 0;
}

.room-status i { 
    margin-right: 6px; 
    font-size: 1em;
}

.book-now-btn {
    width: 100%;
    padding: 10px 12px;
    margin-top: 15px;
    background-color: #2e7d32;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.book-now-btn:hover {
    background-color: #1b5e20;
    transform: translateY(-2px);
}

/* =========================================== */
/* STYLE BARU: MODAL BOOKING                   */
/* =========================================== */

#booking-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#booking-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

#booking-modal {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-base);
    width: 90%;
    max-width: 400px;
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
    text-align: left;
}

#booking-modal-backdrop.show #booking-modal {
    transform: scale(1);
}

#booking-modal .modal-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

#booking-modal .modal-subtitle {
    text-align: center;
    margin-top: 5px;
    color: var(--light-text-color);
}

#booking-form {
    width: 100%;
    margin-top: 20px;
}

#booking-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: var(--primary-color);
}

#booking-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

#booking-form input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(66, 165, 245, 0.2);
}

#booking-modal .modal-actions {
    margin-top: 10px;
}

/* =========================================== */
/* STYLE BARU: KAMAR KHUSUS PEMILIK            */
/* =========================================== */

.room-card.owner-room {
    background: linear-gradient(135deg, #495057, #343a40);
    color: #f8f9fa;
    cursor: not-allowed;
    border-color: #495057;
    text-align: center;
    justify-content: center;
}

.room-card.owner-room .room-icon,
.room-card.owner-room .room-number,
.room-card.owner-room .room-status {
    color: #f8f9fa;
}

.room-card.owner-room .room-header {
    justify-content: center;
}

/* =========================================== */
/* STYLE BARU: KARTU DATABASE PEMILIK          */
/* =========================================== */

.database-card.owner-room {
    background: linear-gradient(135deg, #495057, #343a40);
    color: #f8f9fa;
    border-left: 5px solid #343a40;
}

.database-card.owner-room h4 {
    color: #f8f9fa;
    border-bottom: 1px dashed #6c757d;
}

.database-card.owner-room .database-label,
.database-card.owner-room .database-value {
    color: #f8f9fa;
}

/* === GAYA BARU UNTUK WARNA KARTU DATABASE === */

/* Warna Abu-abu untuk Kamar Pemilik (A1) */
.database-card.owner-room {
    background-color: #f8f9fa; /* Abu-abu sangat terang */
    border-left: 5px solid #6c757d; /* Aksen abu-abu gelap di kiri */
}

/* Warna Berbeda untuk Kamar Kosong */
.database-card.available-room {
    background-color: #e9f5e9; /* Hijau sangat muda */
    border-left: 5px solid #28a745; /* Aksen hijau di kiri */
}

/* === GAYA BARU UNTUK TOMBOL AKSI DATABASE === */

.card-actions .generate-btn {
    background-color: #28a745;
    color: white;
}
.card-actions .generate-btn:hover {
    background-color: #218838;
}

.card-actions .reminder-btn {
    background-color: #ffc107;
    color: #212529;
}
.card-actions .reminder-btn:hover {
    background-color: #e0a800;
}

.card-actions .edit-btn {
    background-color: var(--accent-color);
}
.card-actions .edit-btn:hover {
    background-color: #64b5f6;
}

#receipt-preview-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#receipt-preview-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

#receipt-preview-modal {
    background-color: var(--card-background);
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-base);
    width: 90%;
    max-width: 420px; /* Mengurangi ukuran tampilan pratinjau */
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

#receipt-preview-modal .modal-content {
    padding-top: 0.1rem; /* Padding atas dibuat sangat kecil */
    padding-bottom: 1rem; /* Jaga agar ada ruang di bawah */
    align-items: flex-start; /* Paksa konten untuk mulai dari paling atas */
}

/* =========================================== */
/* STYLE BARU: TAB STATUS PENGHUNI             */
/* =========================================== */
.konfirmasi-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.konfirmasi-btn {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    font-size: 1em;
    font-weight: 600;
    color: white;
    background-color: #dee2e6;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.konfirmasi-btn.tersedia {
    background-color: #28a745;
}

.konfirmasi-btn.tidak-tersedia {
    background-color: #0d47a1;
}

.konfirmasi-btn.active-status {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.konfirmasi-btn:hover {
    filter: brightness(1.1);
}

.konfirmasi-btn.active-status:hover {
    filter: none;
}

/* =========================================== */
/* STYLE BARU: Tombol Aksi Konfirmasi          */
/* =========================================== */

.form-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.form-btn:hover {
    background-color: #868e96;
    transform: translateY(-2px);
}

.form-btn.destructive-btn {
    background-color: #e74c3c;
    color: white;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.form-btn.destructive-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.form-btn.safe-btn,
.form-btn.cancel {
    background-color: #bdc3c7;
    color: white;
}

.form-btn.safe-btn:hover,
.form-btn.cancel:hover {
    background-color: #95a5a6;
    transform: translateY(-2px);
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Gaya untuk Kartu Pesan Kosong */
.empty-state-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--card-background);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px 20px;
    margin-top: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.empty-state-card .icon {
    font-size: 3em;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.empty-state-card .title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.empty-state-card .message {
    font-size: 1em;
    color: var(--light-text-color);
    line-height: 1.5;
}

#electricity-bill-list {
    display: flex;
    flex-direction: column;
}

/* PERBAIKAN: Mengembalikan tata letak kartu tagihan menjadi vertikal */
.database-card {
    margin-bottom: 20px;
    box-sizing: border-box; /* Memastikan padding tidak melebihi lebar elemen */
}


/* ===========================================
/* GAYA BARU UNTUK TIPOGRAFI
/* Menjadikan tampilan teks lebih elegan dan profesional
/* =========================================== */

/* Gaya untuk semua judul h3 dalam konten utama */
#content-area h3 {
    position: relative;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.8em;
    color: #2c3e50; /* Warna yang lebih gelap dan berkelas */
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color); /* Garis bawah yang elegan */
}

/* Gaya untuk paragraf */
#content-area p {
    font-family: 'Roboto', sans-serif; /* Menggunakan font yang berbeda untuk body text */
    font-size: 1em;
    line-height: 1.8;
    color: #495057; /* Warna abu-abu tua untuk kenyamanan membaca */
    margin-bottom: 15px;
}

/* Gaya untuk elemen list (aturan, fasilitas, dll) */
#content-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f8f9fa; /* Latar belakang untuk membedakan list */
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#content-area ul li {
    position: relative;
    padding: 12px 15px 12px 40px;
    margin-bottom: 10px;
    font-size: 0.95em;
    color: #495057;
    background-color: #ffffff;
    border-left: 4px solid #0d47a1; /* Garis vertikal di samping */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

#content-area ul li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Tambahkan ikon kustom untuk list */
#content-area ul li::before {
    content: "\f058"; /* Icon checkmark circle dari Font Awesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #28a745;
    font-size: 1.1em;
}

/* Gaya untuk garis pemisah */
#content-area hr {
    border: none;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(13, 71, 161, 0.3), rgba(0, 0, 0, 0));
    margin: 30px 0;
}

/* Gaya untuk teks penting atau pengumuman */
#content-area strong {
    font-weight: 700;
    color: #0d47a1;
    background-color: #e3f2fd;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Gaya untuk elemen-elemen di dalam tab agar tidak terpengaruh oleh gaya global */
.tab-pane h3 {
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.5em;
    padding-left: 0;
    border-bottom: none;
}
/* Gaya untuk tombol Pengumuman di halaman Database */
.announcement-btn {
    background-color: #ffc107;
    color: var(--text-color);
}

.announcement-btn:hover {
    background-color: #e0a800;
    color: white;
}

/* === GAYA BARU: OPSI 1 (MODERN & RAMPING) === */
.progress-loader-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    margin-top: 40px;
}

.progress-text {
    font-size: 1.2em;
    font-weight: 500;
    color: var(--light-text-color);
    margin-bottom: 25px;
}

.progress-bar-wrapper {
    width: 100%;
    max-width: 280px;
    height: 28px;
    background-color: #f0f4f8;
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
}

.progress-bar-inner {
    width: 0%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 0.2s ease-out;
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8em;
    font-weight: 700;
    color: white;
    mix-blend-mode: difference; /* Efek teks keren yang warnanya berubah */
}


/* Tata letak tombol di bagian atas */
.header-with-button-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.button-group-top {
    display: flex;
    gap: 8px; /* Mengurangi jarak antar tombol atas */
}

/* Tata letak tombol CRUD di bagian bawah */
.crud-buttons-bottom {
    display: flex;
    gap: 12px;
    justify-content: flex-end; /* Memindahkan tombol ke kanan */
    margin-top: 20px;
}

/* CSS untuk versi mobile */
@media (max-width: 768px) {
    .header-with-button-compact {
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
    }

    .button-group-top {
        margin-top: 10px;
    }

    .header-with-button-compact h3 {
        width: 100%;
        text-align: left;
    }

    .crud-buttons-bottom {
        justify-content: flex-end;
        margin-top: 20px;
    }
}

/* Warna hijau untuk tombol Database dan Data Sheet */
#database-btn,
.datasheet-btn {
    background-color: #2ecc71 !important; /* Warna hijau */
}

/* Efek hover untuk tombol Database dan Data Sheet */
#database-btn:hover,
.datasheet-btn:hover {
    background-color: #27ae60 !important; /* Warna hijau yang lebih gelap saat kursor di atasnya */
}

/* Gaya untuk tombol Cek via Spreadsheet */
.table-footer a.form-btn {
    display: inline-block;
    padding: 8px 15px; /* Mengurangi padding untuk membuat tombol lebih kecil */
    font-size: 14px;  /* Mengurangi ukuran font */
    background-color: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.table-footer a.form-btn:hover {
    background-color: #229954; /* Efek hover */
}
/* Gaya untuk footer tabel */
.table-footer td {
    border: none !important;
    text-align: left; /* Ini yang membuat tombol di kiri */
    padding-top: 5px; /* Mengurangi jarak di atas tombol */
}

/* Gaya untuk tombol di dalam footer */
.table-footer a.form-btn {
    display: inline-block;
    padding: 8px 15px;
    font-size: 14px;
    background-color: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.table-footer a.form-btn:hover {
    background-color: #229954;
}

/* Gaya untuk tombol Database */
#database-btn {
    background-color: var(--primary-color) !important; /* Menggunakan warna biru */
}

/* Efek hover untuk tombol Database */
#database-btn:hover {
    background-color: #0056b3 !important; /* Warna yang lebih gelap saat kursor di atasnya */
}

/* Gaya khusus untuk kolom Aksi (paling kiri) */
.spreadsheet-table th:first-child,
.spreadsheet-table td:first-child {
    background-color: #f0f8ff; /* Warna biru muda yang spesial */
    width: 40px; /* Lebar kolom aksi dibuat lebih kecil */
    text-align: center;
}

/* Menyesuaikan lebar kolom Nomor dan meratakan ke tengah */
.spreadsheet-table th:nth-child(2),
.spreadsheet-table td:nth-child(2) {
    width: 40px; /* Membuat kolom Nomor lebih kecil */
    text-align: center;
}

/* Meratakan kolom Kamar ke tengah */
.spreadsheet-table th:nth-child(3),
.spreadsheet-table td:nth-child(3) {
    text-align: center;
}

/* Styling untuk radio button kustom */
.radio-container {
    display: block;
    position: relative;
    padding-left: 20px; /* Jarak antara lingkaran dan teks */
    cursor: pointer;
    font-size: 14px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Sembunyikan radio button asli */
.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Buat elemen kustom (lingkaran) */
.radio-custom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Pusatkan lingkaran */
    height: 18px;
    width: 18px;
    background-color: #eee;
    border-radius: 50%;
    border: 2px solid #ccc;
    transition: all 0.2s ease-in-out;
}

/* Efek saat kursor di atasnya */
.radio-container:hover input ~ .radio-custom {
    background-color: #ccc;
}

/* Efek saat radio button dicentang */
.radio-container input:checked ~ .radio-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Buat titik di dalam lingkaran yang dicentang */
.radio-custom:after {
    content: "";
    position: absolute;
    display: none;
}

/* Tampilkan titik saat dicentang */
.radio-container input:checked ~ .radio-custom:after {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Gaya untuk modal ID */
#id-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#id-modal {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#id-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

#id-modal .modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

#id-image-preview {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


/* 1. Latar Belakang Gelap (Backdrop) */
/* Selector [id$="-modal-backdrop"] akan menargetkan semua modal Anda */
[id$="-modal-backdrop"] {
    position: fixed; /* <-- SANGAT PENTING: Membuatnya melayang relatif terhadap layar */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Warna hitam transparan */
    z-index: 1000; /* <-- SANGAT PENTING: Memastikan posisinya paling atas */

    /* Untuk menengahkan kotak modal di dalamnya */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Transisi untuk efek muncul/hilang */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 2. Kotak Modal (Kontainer Putih) */
.modal-container {
    background-color: white;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 500px; /* Batas lebar maksimum */
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

/* 3. Aturan untuk Menampilkan Modal */
[id$="-modal-backdrop"].show {
    opacity: 1;
    visibility: visible;
}

[id$="-modal-backdrop"].show .modal-container {
    transform: scale(1);
}


body.modal-open #back-button,
body.modal-open #home-button {
    display: none;
}



/* --- Styling Pop-up Unggah File --- */

/* Latar Belakang Gelap (Backdrop) */
[id$="-modal-backdrop"] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

[id$="-modal-backdrop"].show {
    opacity: 1;
    visibility: visible;
}

/* Kontainer Pop-up (Kotak Putih) */
.modal-container {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-base);
    width: 90%;
    max-width: 400px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    position: relative;
}

[id$="-modal-backdrop"].show .modal-container {
    transform: scale(1);
}

/* Tombol Tutup */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f4f8;
    border: 1px solid #e0e0e0;
    color: var(--light-text-color);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background-color: #e74c3c;
    color: white;
    transform: rotate(90deg) scale(1.1);
    border-color: #e74c3c;
}

/* Header Modal Baru (sesuai gambar) */
.modal-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    margin-bottom: 25px;
}

.modal-header-custom .title {
    margin-bottom: 0;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.6rem;
    flex: 1; /* Biarkan judul mengambil sisa ruang */
    text-align: center; /* Pusatkan teks judul */
}

/* Tampilan Form */
.upload-card {
    background-color: transparent;
    border-radius: none;
    box-shadow: none;
    padding: 0;
    text-align: left;
}

/* Subjudul */
.upload-card .subtitle {
    text-align: center;
    color: var(--light-text-color);
    margin-bottom: 30px;
    margin-top: -20px;
}

/* Gaya Input Umum */
.input {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    margin-top: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #f8f8f8;
}

.input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(66, 165, 245, 0.2);
}

/* Gaya untuk catatan peringatan */
.custom-note {
    font-size: 0.8em;
    color: #e74c3c !important;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.custom-note .fas {
    font-size: 1em;
}

/* Area Drag and Drop */
.drag-drop-area {
    border: 2px dashed var(--accent-color);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: #f0f4f8;
    color: var(--light-text-color);
}

.drag-drop-area:hover {
    background-color: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.drag-drop-area.highlight {
    border-color: var(--primary-color);
    background-color: #e3f2fd;
    color: var(--primary-color);
}

.upload-icon {
    font-size: 3em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.drag-drop-text {
    font-size: 1em;
    margin: 0;
    font-weight: 500;
}

/* Teks nama file yang dipilih */
.selected-file-name {
    font-size: 0.9em;
    color: var(--text-color);
    text-align: center;
    margin-top: 15px;
}

/* Tombol Upload & Simpan */
#modal-submit-button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#modal-submit-button:hover:not(:disabled) {
    background-color: #0c3b8a;
    transform: translateY(-2px);
}

#modal-submit-button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

/* Animasi Spinner */
.fa-spinner {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Gaya Khusus untuk Tombol Draft Susantoro */
.draft-btn {
    background-color: #f39c12; /* Warna Oranye */
}

/* Efek hover untuk tombol oranye */
.draft-btn:hover {
    background-color: #e67e22; /* Warna Oranye lebih gelap saat hover */
}

/* Container untuk memastikan iframe responsif */
.iframe-container {
    position: relative;
    width: 100%;
    /* Atur tinggi sesuai kebutuhan, misalnya 75vh */
    height: 75vh; 
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===========================================
/* PERBAIKAN TOTAL: MODAL PEMBAYARAN
/* Menggabungkan elemen yang sudah ada dengan desain profesional baru
/* =========================================== */

/* Latar Belakang Modal (Backdrop) */
#kwitansi-options-modal-backdrop {
    /* Menggunakan properti dari .modal-backdrop yang sudah ada */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Lebih gelap untuk fokus */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out;
}

#kwitansi-options-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Kontainer Modal */
#kwitansi-options-modal {
    background-color: var(--card-background); /* Menggunakan variabel tema */
    padding: 35px;
    border-radius: var(--border-radius-base); /* Menggunakan variabel tema */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

#kwitansi-options-modal-backdrop.show #kwitansi-options-modal {
    transform: scale(1);
}

/* Header Modal */
#kwitansi-options-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #e0e0e0;
}

#kwitansi-options-modal .modal-title {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    flex-grow: 1;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

/* Tombol Tutup */
.modal-close-btn {
    /* Perubahan di sini: Warna yang lebih terang, background melingkar, dan efek hover */
    background-color: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.5em;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background-color: #e74c3c;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

/* Konten Badan Modal */
#kwitansi-options-modal .modal-body {
    padding: 0;
    text-align: left;
}

/* Kotak Nama Penghuni */
.tenant-info-box {
    background-color: #e3f2fd;
    border: 1px solid #c5dae9;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.tenant-info-box p {
    font-size: 1.1em;
    color: #334155;
    margin: 0;
    font-weight: 500;
}

.tenant-info-box p strong {
    font-weight: 700;
    color: #1e293b;
}

/* Form Group & Dropdown */
.form-group {
    margin-bottom: 25px;
    text-align: center;
}

.form-group label {
    display: block;
    font-size: 0.9em;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.form-group select {
    width: 150px;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.9em;
    color: #334155;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http://www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2364748b%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-6.5%200-11.9%203.8-13%209.7-1.1%205.9%201.1%2012.3%206.2%2016.9l133.9%20133.9c2.4%202.4%205.4%204.1%208.6%205.1%203.2%201.1%206.6%201.6%2010.1%201.6s6.9-.5%2010.1-1.6c3.2-1%206.2-2.7%208.6-5.1l133.9-133.9c5.1-4.6%207.3-11%206.2-16.9z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px;
}

.form-group select:hover {
    border-color: #94a3b8;
}

.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.2);
    outline: none;
}

/* Catatan Merah */
#single-month-note {
    font-size: 0.8em;
    color: #e74c3c;
    margin-top: 10px;
    font-style: italic;
    text-align: center;
}

/* Tombol Aksi */
.modal-actions {
    margin-top: 30px;
}

.modal-btn.submit {
    width: 100%;
    padding: 15px 20px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 15px rgba(13, 71, 161, 0.2);
}

.modal-btn.submit:hover {
    background-color: #0c3b8a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(13, 71, 161, 0.3);
}

.modal-btn.submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(13, 71, 161, 0.2);
}

/* ===========================================
/* GAYA BARU: KOTAK NAMA PENGHUNI PROFESIONAL
/* =========================================== */

.tenant-info-box {
    background-color: #f8f9fa; /* Warna latar belakang abu-abu sangat terang */
    border: 1px solid #e9ecef; /* Border tipis */
    border-left: 5px solid var(--primary-color); /* Garis vertikal biru yang menonjol */
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Bayangan yang lebih halus */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Sejajarkan teks ke kiri */
    text-align: left;
}

.tenant-info-box p {
    font-size: 1.1em;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

.tenant-info-box strong {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary-color);
    display: block; /* Pastikan nama berada di baris baru */
    margin-bottom: 2px;
}

/* ===========================================
/* GAYA FINAL: TOMBOL TUTUP MODAL
/* Untuk kelas kwitansi-close-btn
/* =========================================== */
.kwitansi-close-btn {
    /* Posisi absolut untuk melayang di atas modal */
    position: absolute;
    top: 15px;
    right: 15px;

    /* Tampilan & Bentuk */
    width: 36px;
    height: 36px;
    border-radius: 50%; /* Membuat tombol menjadi lingkaran */
    background-color: #f0f4f8; /* Latar belakang abu-abu muda */
    border: 1px solid #e0e0e0; /* Garis tepi tipis */
    color: var(--light-text-color); /* Warna ikon 'x' */
    font-size: 1.5rem; /* Ukuran ikon 'x' */

    /* Perataan Ikon di Tengah */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Interaksi */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    z-index: 10;
}

.kwitansi-close-btn:hover {
    background-color: #e74c3c; /* Warna latar belakang berubah menjadi merah */
    color: white; /* Warna ikon 'x' menjadi putih */
    transform: rotate(90deg) scale(1.1); /* Efek berputar dan sedikit membesar */
    border-color: #e74c3c; /* Warna border mengikuti hover */
}

.new-resident-label {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #2196f3; /* Warna biru, bisa disesuaikan */
    color: white;
    font-weight: bold;
    font-size: 0.8em;
    padding: 5px 10px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 8px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


/* ===========================================
/* Gaya Super Mewah & Elegan untuk Catatan Online
/* =========================================== */

/* Tema Warna Mewah */
:root {
    --elegant-blue: #1a237e;
    --elegant-gold: #fbc02d;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.2);
    --bg-light: #ffffff;
    --text-primary: #212121;
    --text-secondary: #757575;
}

/* Kontainer Utama Form Catatan */
.note-form {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow-light);
    margin-bottom: 40px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.note-form:focus-within {
    box-shadow: 0 15px 40px var(--shadow-medium);
    border-color: var(--elegant-blue);
}

/* Kotak Input dan Tombol */
.note-input-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#note-textarea {
    flex-grow: 1;
    min-height: 150px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    font-size: 1.1rem;
    resize: vertical;
    font-family: 'Poppins', sans-serif;
    background-color: #fcfcfc;
    color: var(--text-primary);
    transition: all 0.3s ease-in-out;
}

#note-textarea:focus {
    outline: none;
    border-color: var(--elegant-blue);
    box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.1);
}

.save-note-btn {
    align-self: flex-end;
    background: linear-gradient(145deg, var(--elegant-blue), #2c388e);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 1em;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.save-note-btn:hover:not(:disabled) {
    background: linear-gradient(145deg, #2c388e, var(--elegant-blue));
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.save-note-btn:disabled {
    background: #bdbdbd;
    cursor: not-allowed;
    box-shadow: none;
}

/* Daftar Catatan */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.note-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 20px var(--shadow-light);
    border-left: 6px solid var(--elegant-gold);
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.note-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top right, rgba(251, 192, 45, 0.05), transparent 30%);
    z-index: 0;
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow-medium);
}

.note-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    z-index: 1;
    position: relative;
}

.note-content {
    flex-grow: 1;
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-wrap;
    margin: 0;
    z-index: 1;
    position: relative;
}

.note-actions {
    display: flex;
    gap: 12px;
    margin-left: 20px;
    z-index: 1;
    position: relative;
}

.note-edit-btn,
.note-delete-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.note-edit-btn {
    background-color: var(--elegant-blue);
    color: white;
}

.note-delete-btn {
    background-color: #ef5350; /* Merah untuk kesan elegan */
    color: white;
}

.note-edit-btn:hover {
    background-color: #2c388e;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.note-delete-btn:hover {
    background-color: #d32f2f;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.note-timestamp {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 20px;
    text-align: right;
    border-top: 1px dashed #e0e0e0;
    padding-top: 15px;
    z-index: 1;
    position: relative;
}


/* Responsif untuk Layar Kecil */
@media (max-width: 600px) {
    .note-form {
        padding: 20px;
    }
    .note-card {
        padding: 20px;
    }
    .save-note-btn {
        width: 100%;
        align-self: center;
    }
    .note-actions {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===========================================
/* Gaya Modal Kustom (Edit & Hapus)
/* =========================================== */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100; /* Pastikan di atas modal lain */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-backdrop.show .modal-container {
    transform: translateY(0);
}

.modal-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.modal-body p {
    font-size: 1em;
    color: var(--text-color);
    text-align: center;
}

.modal-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: inherit;
    resize: vertical;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}