/* Import Font Premium dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* Reset & Styling Dasar */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    min-height: 100vh;
    padding: 30px 20px;
    color: #334155;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Navigasi Atas & Info Role */
.top-bar {
    max-width: 650px;
    width: 100%;
    margin: 0 auto 16px auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Main Container - Elegan & Luxury */
.container {
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Aksen Garis Emas/Indigo Mewah di Atas Card */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #6366f1, #d97706, #6366f1);
}

/* Judul & Section Header */
h1 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    color: #0f172a;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form & Input Fields */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input, select {
    width: 100%;
    padding: 13px 16px;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #0f172a;
    font-family: inherit;
    transition: all 0.25s ease;
}

input:focus, select:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* Utility Class */
.hidden {
    display: none !important;
}

/* Ringkasan Step 2 */
.ringkasan-box {
    background-color: #f1f5f9;
    border-left: 4px solid #6366f1;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #334155;
}

.ringkasan-box p {
    margin: 6px 0;
}

/* Tombol-tombol */
.btn-group {
    display: flex;
    gap: 12px;
}

button {
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: white;
    font-family: inherit;
    transition: all 0.25s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(0);
}

.btn-nav {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: #ffffff;
}

.btn-nav:hover {
    background-color: #ffffff;
    color: #0f172a;
}

.btn-primary, button[type="submit"] {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    width: 100%;
}

.btn-primary:hover, button[type="submit"]:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
}

.btn-secondary {
    background-color: #94a3b8;
    width: 100%;
}

.btn-secondary:hover {
    background-color: #64748b;
}

.btn-danger {
    background-color: #ef4444;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* Status Messages */
#statusMessage, #loginMsg, #superAdminMsg {
    margin-top: 18px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

/* Card Form Login Staff */
.admin-card {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.admin-card h2 {
    color: #b45309;
    border-bottom: 2px solid #fde68a;
}

/* Tabel Admin untuk Memantau Penyewa */
#adminPanel {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 18px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
}

th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}

td {
    border-bottom: 1px solid #f1f5f9;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Panel Khusus Superadmin */
#superadminPanel {
    border: 1px solid #e0f2fe;
}

#superadminPanel h2 {
    color: #0369a1;
    border-bottom: 2px solid #bae6fd;
}

/* Responsive Design untuk Layar HP */
@media (max-width: 600px) {
    body {
        padding: 15px 10px;
    }
    
    .container {
        padding: 24px 18px;
    }

    .btn-group {
        flex-direction: column;
    }

    table {
        font-size: 11px;
    }

    th, td {
        padding: 8px 10px;
    }
}
/* Layout Kartu Kamar Murni CSS */
.room-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.room-card {
    cursor: pointer;
    position: relative;
}

/* Sembunyikan bulatan radio button asli */
.room-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Tampilan Kartu */
.card-content {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.25s ease;
}

.card-content img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.card-info {
    padding: 12px;
}

.card-info h3 {
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 4px;
}

.card-info .price {
    font-size: 13px;
    color: #d97706;
    font-weight: 700;
}

/* Efek saat kursor diarahkan (Hover) */
.room-card:hover .card-content {
    border-color: #94a3b8;
    transform: translateY(-2px);
}

/* Efek Murni CSS: Saat Kartu Ditinggali/Diklik (Checked) */
.room-card input[type="radio"]:checked + .card-content {
    border-color: #6366f1;
    background-color: #f5f3ff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}