* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    display: flex;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: #1e293b; /* Ubah dari #312e81 ke #1e293b */
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    list-style: none;
    flex-grow: 1;
}

.nav-links li {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
}

.nav-links li.active, .nav-links li:hover {
    background-color: #4338ca;
    color: white;
}

.user-profile {
    border-top: 1px solid #4338ca;
    padding-top: 20px;
}

.logout-btn {
    color: #fb7185;
    text-decoration: none;
    display: block;
    margin-top: 15px;
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px;
}

/* Stats Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card i {
    font-size: 24px;
    padding: 10px;
    border-radius: 10px;
    width: fit-content;
}

.card h3 {
    color: #64748b;
    font-size: 14px;
}

.card p {
    font-size: 24px;
    font-weight: bold;
    color: #1e293b;
}

/* Data Section */
.data-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-add {
    background: #4f46e5;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}

/* Styling Modal */
.modal {
    display: none; /* Sembunyi secara default */
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* Background gelap transparan */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    width: 450px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content h2 {
    margin-bottom: 25px;
    color: #1e293b;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn-cancel {
    flex: 1;
    padding: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
}

.btn-save {
    flex: 1;
    padding: 12px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

/* Form Data Kamar */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th {
    text-align: left;
    padding: 15px;
    background-color: #f8f9fa;
    color: #64748b;
    font-size: 13px;
    text-transform: uppercase;
    border-bottom: 1px solid #e2e8f0;
}

table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 14px;
}

/* Badge Status */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-tersedia { background: #dcfce7; color: #16a34a; }
.status-terisi { background: #e0e7ff; color: #4338ca; }
.status-jatuh-tempo { background: #fee2e2; color: #dc2626; }

/* Kamar UI */
.section-header-kamar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
        }
        .judul-kamar h1 {
            font-size: 28px;
            font-weight: 800;
            color: #1e293b;
        }
        .judul-kamar p {
            color: #64748b;
            font-size: 14px;
        }
        
        /* Kotak Pencarian & Filter (Mengikuti struktur gambar) */
        .search-filter-kamar {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
        }
        .search-box-kamar {
            flex-grow: 1;
            position: relative;
        }
        .search-box-kamar i {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #94a3b8;
        }
        .search-box-kamar input {
            width: 100%;
            padding: 12px 12px 12px 45px;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            outline: none;
            transition: 0.3s;
        }
        .search-box-kamar input:focus {
            border-color: #4f46e5;
            box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
        }
        
        .filter-select-kamar {
            padding: 0 15px;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            color: #1e293b;
            font-weight: 600;
            outline: none;
        }

        /* Badge Status (Samakan dengan yang sebelumnya) */
        .status-tersedia { background: #dcfce7; color: #16a34a; }
        .status-terisi { background: #e0e7ff; color: #4338ca; }
        .status-perbaikan { background: #fef3c7; color: #d97706; } /* Warna kuning */

        /* Aksi Icon */
        .action-btns {
            display: flex;
            gap: 10px;
            font-size: 16px;
        }
        .btn-edit-kamar { color: #94a3b8; cursor: pointer; transition: 0.3s; }
        .btn-edit-kamar:hover { color: #4f46e5; }
        .btn-delete-kamar { color: #fee2e2; cursor: pointer; transition: 0.3s; background: #dc2626; padding: 5px 8px; border-radius: 5px;}
        .btn-delete-kamar:hover { background: #b91c1c; }