/* ==========================================================================
   1. ÜMUMİ SƏHİFƏ AYARLARI & RESPONSIVE QAYDALAR
   ========================================================================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

/* ==========================================================================
   2. GİRİŞ PANALİ (GİZLİ ADMIN GİRİŞİ ÜÇÜN)
   ========================================================================== */
.login-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin: 40px auto;
}

.login-container h2 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 24px;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #34495e;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdde1;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus {
    border-color: #2ecc71;
    outline: none;
    box-shadow: 0 0 5px rgba(46, 204, 113, 0.3);
}

/* ==========================================================================
   3. MODERN NAVBAR (YUXARI NAVİQASİYA PANALİ)
   ========================================================================== */
.navbar {
    background-color: #2c3e50;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-left {
    display: flex;
    align-items: center;
}

.menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    margin-right: 15px;
    transition: 0.2s;
}

.menu-btn:hover {
    color: #2ecc71;
}

.site-title {
    font-size: 20px;
    margin: 0;
    color: #fff;
    font-weight: 600;
}

/* ==========================================================================
   4. YAN MENYU (SIDEBAR) & ƏSAS MƏZMUN (MAIN CONTENT)
   ========================================================================== */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 280px;
    height: calc(100vh - 60px);
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    z-index: 999;
    transition: transform 0.3s ease-in-out;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Masaüstü və mobil üçün keçid sinifləri */
.sidebar.closed {
    transform: translateX(-280px);
}

.sidebar-menu-items {
    flex: 1;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li a {
    display: block;
    padding: 12px 20px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
}

.sidebar ul li a:hover {
    background-color: #f7fafc;
    color: #2ecc71;
    padding-left: 25px;
}

.sidebar-footer {
    padding: 20px;
    background-color: #f8fafc;
    border-top: 1px solid #edf2f7;
}

.user-box {
    background-color: #e2e8f0;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13.5px;
    color: #1e293b;
    font-weight: 600;
    text-align: center;
}

.btn-logout {
    width: 100%;
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

/* Əsas Məzmun Sahəsi */
.main-content {
    margin-top: 60px;
    margin-left: 280px;
    padding: 30px;
    min-height: calc(100vh - 60px);
    transition: margin-left 0.3s ease-in-out;
    background-color: #f4f6f9;
}

.main-content.full-width {
    margin-left: 0;
}

.content-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* Digər otaq düyməsinin sahəsi */
.top-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.btn-other-room {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-other-room:hover {
    background-color: #2980b9;
}

/* ==========================================================================
   5. OTAQLAR TORU (ROOMS GRID & CARDS)
   ========================================================================== */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.room-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 5px solid #bdc3c7;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.room-card.boş { border-top-color: #2ecc71; background-color: #f6fdf9; }
.room-card.dolu { border-top-color: #e74c3c; background-color: #fdf6f6; }

.btn-reserve {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.room-card.boş .btn-reserve { background-color: #2ecc71; color: white; }
.room-card.boş .btn-reserve:hover { background-color: #27ae60; }

/* ==========================================================================
   6. MODAL & TOAST SİSTEMİ
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-box {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
}

#toastContainer { position: fixed; top: 75px; right: 20px; z-index: 9999; }
.toast { padding: 15px 25px; border-radius: 8px; margin-bottom: 12px; font-weight: bold; border-left: 6px solid #3498db; background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.toast.success { border-left-color: #2ecc71; background-color: #f4fbf7; }
.toast.error { border-left-color: #e74c3c; background-color: #fff5f5; }

.badge { padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; }
.badge.green { background-color: #2ecc71; color: #fff; }
.badge.red { background-color: #e74c3c; color: #fff; }

/* Responsive Tənzimləmə */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-280px); }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .main-content.full-width { margin-left: 0; }
}