/* ===== Admin Panel Styles ===== */
:root {
    --sage-green: #7B9B7E;
    --sage-green-nav: #71a565;
    --olive-green: #5a7a5d;
    --dark-green: #3d5a40;
    --warm-brown: #B8926A;
    --tan: #D4B896;
    --cream: #FAF8F3;
    --off-white: #FDFDFB;
    --warm-grey: #8B8680;
    --light-sage: #C8D5C9;
    --text-dark: #2D3319;
    --text-light: #6B6B6B;
    --border-color: #E8E5DE;
    --error-color: #d32f2f;
    --success-color: #3d5a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: #f5f5f5;
    height: 100%;
    overflow-x: hidden;
    width: 100%;
}

/* ===== Login Page ===== */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--olive-green) 100%);
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 50px 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.login-logo {
    margin-bottom: 30px;
}

.logo-main {
    font-family: 'Birthstone', cursive;
    font-size: 48px;
    font-weight: 400;
    color: var(--sage-green);
    font-style: italic;
    margin: 0;
    line-height: 1;
}

.logo-sub {
    font-size: 12px;
    font-weight: 600;
    color: var(--warm-brown);
    letter-spacing: 3px;
    margin: 5px 0 0 0;
    display: block;
}

.login-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--dark-green);
    margin-bottom: 10px;
    font-weight: 600;
}

.login-subtitle {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 30px;
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-container .form-group {
    margin-bottom: 0;
}

.login-container .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.login-container .form-group input:focus {
    outline: none;
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px rgba(123, 155, 126, 0.1);
}

.btn-login {
    background: var(--sage-green);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 155, 126, 0.3);
}

.login-error {
    color: var(--error-color);
    font-size: 13px;
    margin-top: 10px;
    min-height: 18px;
}

.login-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.login-hint strong {
    color: var(--sage-green);
    font-weight: 600;
}

.admin-dashboard {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    max-width: 100vw;
    background: linear-gradient(135deg, rgba(123, 155, 126, 0.05) 0%, rgba(212, 184, 150, 0.03) 100%);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.admin-dashboard::before {
    content: '';
    position: fixed;
    bottom: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 600"><path fill="rgba(123,155,126,0.08)" d="M300,50 Q400,100 450,200 T400,400 Q300,450 200,400 T100,200 Q150,100 300,50 Z"></path></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.admin-dashboard::after {
    content: '';
    position: fixed;
    top: -30%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500"><path fill="rgba(212,184,150,0.06)" d="M250,30 Q350,80 380,180 T350,380 Q250,420 150,380 T120,180 Q150,80 250,30 Z"></path></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

/* ===== Admin Header ===== */
.admin-header {
    background: linear-gradient(135deg, #5a7a5d 0%, #3d5a40 100%);
    color: white;
    padding: 12px 0;
    box-shadow: 0 4px 16px rgba(61, 90, 64, 0.15);
    position: sticky;
    top: 0;
    z-index: 101;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.admin-header .admin-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.admin-header .logo-main {
    font-family: 'Birthstone', cursive;
    font-size: 28px;
    font-weight: 400;
    color: var(--cream);
    font-style: italic;
    margin: 0;
    line-height: 1;
    letter-spacing: 1px;
}

.admin-header .logo-sub {
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    font-weight: 500;
    color: var(--tan);
    letter-spacing: 3px;
    margin: -3px 0 0 0;
    display: block;
}

.admin-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: white;
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.admin-user {
    font-size: 14px;
    opacity: 0.9;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== Admin Container ===== */
.admin-container {
    display: flex;
    width: 100%;
    max-width: 100vw;
    gap: 0;
    padding: 0;
    min-height: calc(100vh - 80px);
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

/* ===== Sidebar ===== */
.admin-sidebar {
    width: 220px;
    background: rgba(250, 248, 243, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 0;
    padding: 20px 0;
    box-shadow: 2px 0 12px rgba(61, 90, 64, 0.08);
    height: 100%;
    position: sticky;
    top: 60px;
    border-right: 1px solid rgba(212, 184, 150, 0.3);
    transition: width 0.3s ease;
    overflow: hidden;
}

/* Collapsed sidebar */
.admin-sidebar.collapsed {
    width: 60px;
}

.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 auto 15px auto;
    background: var(--sage-green);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--dark-green);
}

.sidebar-toggle svg {
    transition: transform 0.3s ease;
}

.admin-sidebar.collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
}

.toggle-icon {
    display: none;
}

.toggle-icon.collapse {
    display: block;
}

.admin-sidebar.collapsed .toggle-icon.collapse {
    display: none;
}

.admin-sidebar.collapsed .toggle-icon.expand {
    display: block;
}

.sidebar-menu {
    list-style: none;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-dark);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    white-space: nowrap;
}

.menu-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.menu-text {
    transition: opacity 0.3s ease, width 0.3s ease;
}

/* Collapsed state for menu items */
.admin-sidebar.collapsed .menu-item {
    padding: 14px 18px;
    justify-content: center;
}

.admin-sidebar.collapsed .menu-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.admin-sidebar.collapsed .menu-item {
    border-left: none;
    border-bottom: 3px solid transparent;
}

.admin-sidebar.collapsed .menu-item.active {
    border-bottom-color: var(--sage-green);
    background: rgba(123, 155, 126, 0.15);
}

.admin-sidebar.collapsed .menu-item:hover {
    border-left: none;
}

/* Tooltip for collapsed sidebar */
.admin-sidebar.collapsed .menu-item:hover::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-green);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.admin-sidebar.collapsed .menu-item:hover::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: var(--dark-green);
    margin-left: -2px;
}

.menu-item:hover {
    background: rgba(123, 155, 126, 0.1);
    color: var(--sage-green);
    border-left-color: rgba(123, 155, 126, 0.5);
}

.menu-item.active {
    background: linear-gradient(90deg, rgba(123, 155, 126, 0.15) 0%, rgba(123, 155, 126, 0.05) 100%);
    color: var(--sage-green);
    border-left-color: var(--sage-green);
    font-weight: 700;
}

/* ===== Content Area ===== */
.admin-content {
    flex: 1;
    padding: 40px 45px;
    overflow-y: auto;
    position: relative;
    z-index: 10;
    background: transparent;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
    position: relative;
    z-index: 10;
}

.tab-content.active {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Dashboard ===== */
.dashboard-header {
    margin-bottom: 30px;
    margin-left: 220px;
}

.dashboard-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--dark-green);
    margin-bottom: 10px;
    font-weight: 700;
}

.dashboard-stats {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 40px;
    max-width: 350px;
    margin-left: 220px;
}

.stat-card {
    background: rgba(250, 248, 243, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(61, 90, 64, 0.12);
    border: 1px solid rgba(212, 184, 150, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-width: 90px;
    flex: 1;
}

.stat-card h3 {
    color: var(--text-light);
    font-size: 9px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-green);
}

.stat-number.available {
    color: var(--success-color);
}

.stat-number.booked {
    color: var(--dark-green);
}

/* ===== Dashboard Main Layout ===== */
.dashboard-main-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* ===== Mobile Filter Toggle - Hidden on Desktop ===== */
.mobile-filter-toggle {
    display: none;
}

.filter-close-btn {
    display: none;
}

/* ===== Filter Panel - Fixed Position ===== */
.filter-panel {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    background: rgba(250, 248, 243, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(61, 90, 64, 0.12);
    border: 1px solid rgba(212, 184, 150, 0.35);
    position: fixed;
    top: 80px;
    left: 260px;
    height: calc(100vh - 100px);
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    z-index: 50;
    overflow: hidden;
}

/* When sidebar is collapsed */
.admin-sidebar.collapsed ~ .filter-panel {
    left: 70px;
}

.filter-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(212, 184, 150, 0.4);
    flex-shrink: 0;
}

.filter-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    color: var(--dark-green);
    font-weight: 600;
    margin: 0;
}

.filter-header svg {
    color: var(--sage-green);
    flex-shrink: 0;
}

/* Filter Groups */
.filter-group {
    padding: 0 14px;
    margin-bottom: 12px;
}

.filter-group label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input[type="date"] {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:focus,
.filter-group input[type="date"]:focus {
    outline: none;
    border-color: var(--sage-green);
    box-shadow: 0 0 0 2px rgba(123, 155, 126, 0.1);
}

.filter-group select:hover,
.filter-group input[type="date"]:hover {
    border-color: var(--sage-green);
}

.filter-actions {
    padding: 10px 14px;
    border-top: 1px solid rgba(212, 184, 150, 0.3);
    margin-top: auto;
}

.btn-reset {
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    color: var(--sage-green);
    border: 1px solid var(--sage-green);
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: var(--sage-green);
    color: white;
}

.filter-results {
    padding: 10px 14px;
    text-align: center;
    font-size: 11px;
    color: var(--text-light);
    border-top: 1px solid rgba(212, 184, 150, 0.3);
}

.filter-header h4 {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    color: var(--dark-green);
    font-weight: 600;
    margin: 0;
}

.filter-body {
    flex: 1;
    padding: 12px 14px;
    overflow-y: auto;
}

.filter-section {
    margin-bottom: 12px;
}

.filter-section.half {
    flex: 1;
}

.filter-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.filter-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-section select,
.filter-section input[type="date"] {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-section select:focus,
.filter-section input[type="date"]:focus {
    outline: none;
    border-color: var(--sage-green);
    box-shadow: 0 0 0 2px rgba(123, 155, 126, 0.1);
}

.filter-section select:hover,
.filter-section input[type="date"]:hover {
    border-color: var(--sage-green);
}

/* Date Range Fields */
.date-range {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.date-field {
    display: flex;
    align-items: center;
    gap: 6px;
}

.date-field .date-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-light);
    min-width: 24px;
}

.date-field input[type="date"] {
    flex: 1;
    padding: 5px 6px;
    font-size: 10px;
}

.filter-footer {
    padding: 10px 14px;
    border-top: 1px solid rgba(212, 184, 150, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
    background: rgba(250, 248, 243, 0.95);
}

.btn-reset-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 10px;
    background: transparent;
    color: var(--sage-green);
    border: 1px solid var(--sage-green);
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset-filter:hover {
    background: var(--sage-green);
    color: white;
}

.btn-reset-filter svg {
    transition: transform 0.3s ease;
}

.btn-reset-filter:hover svg {
    transform: rotate(-180deg);
}

.filter-count {
    font-size: 10px;
    color: var(--text-light);
    font-style: italic;
}

/* Calendar Section - Offset for fixed filter */
.calendar-section {
    flex: 1;
    min-width: 0;
    margin-left: 220px;
}

/* Responsive filter panel */
@media (max-width: 1100px) {
    .dashboard-header,
    .dashboard-stats {
        margin-left: 0;
    }
    
    .dashboard-main-layout {
        flex-direction: column;
    }
    
    .filter-panel {
        position: static;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 12px;
    }
    
    .filter-header {
        width: 100%;
        padding: 0 0 10px 0;
        margin-bottom: 10px;
    }
    
    .filter-body {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        padding: 0;
        width: 100%;
    }
    
    .filter-section {
        margin-bottom: 0;
        min-width: 120px;
        flex: 1;
    }
    
    .filter-row {
        margin-bottom: 0;
        flex: 2;
        min-width: 200px;
    }
    
    .filter-footer {
        width: 100%;
        padding: 10px 0 0 0;
        margin-top: 10px;
    }
    
    .calendar-section {
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .filter-body {
        flex-direction: column;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-section.half {
        width: 100%;
    }
}

.quick-preview {
    background: rgba(250, 248, 243, 0.85);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(61, 90, 64, 0.12);
    border: 1px solid rgba(212, 184, 150, 0.35);
}

.quick-preview h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin-bottom: 24px;
    color: var(--dark-green);
    font-weight: 700;
}

.rooms-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.quick-room-card {
    background: rgba(250, 248, 243, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 184, 150, 0.4);
    border-radius: 12px;
    padding: 35px 15px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 130px;
}

.quick-room-number {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    background: var(--sage-green);
    color: white;
}

.quick-room-card.booked {
    opacity: 0.6;
    background: #f5f5f5;
}

.quick-room-status {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-room-status.available {
    background: #c8e6c9;
    color: var(--success-color);
}

.quick-room-status.booked {
    background: #ffcdd2;
    color: var(--error-color);
}

.quick-room-card h4 {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--dark-green);
    font-weight: 600;
    padding-top: 5px;
}

.quick-room-card p {
    font-size: 13px;
    color: var(--text-light);
    margin: 3px 0;
}

/* ===== Rooms Management ===== */
.rooms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.rooms-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--dark-green);
}

.search-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.search-filter input,
.search-filter select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.search-filter input {
    flex: 1;
    max-width: 400px;
}

.search-filter select {
    width: 150px;
}

.search-filter input:focus,
.search-filter select:focus {
    outline: none;
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px rgba(123, 155, 126, 0.1);
}

.rooms-table-container {
    background: rgba(250, 248, 243, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(61, 90, 64, 0.12);
    border: 1px solid rgba(212, 184, 150, 0.35);
}

.rooms-table {
    width: 100%;
    border-collapse: collapse;
}

.rooms-table thead {
    background: rgba(212, 184, 150, 0.25);
    backdrop-filter: blur(4px);
    border-bottom: 2px solid rgba(212, 184, 150, 0.3);
}

.rooms-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-green);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rooms-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.rooms-table tbody tr:hover {
    background: #fafafa;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-icon {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--sage-green);
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--sage-green);
    color: white;
}

.btn-delete {
    color: var(--error-color);
    border-color: var(--error-color);
}

.btn-delete:hover {
    background: var(--error-color);
    color: white;
}

/* ===== Form Styles ===== */
.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--dark-green);
}

.room-form {
    background: rgba(250, 248, 243, 0.85);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(61, 90, 64, 0.12);
    border: 1px solid rgba(212, 184, 150, 0.35);
    max-width: 700px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-green);
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px rgba(123, 155, 126, 0.1);
}

.form-group textarea {
    resize: vertical;
    font-family: 'Poppins', sans-serif;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* ===== Buttons ===== */
.btn-primary {
    background: var(--sage-green);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 155, 126, 0.3);
}

.btn-primary:disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary:disabled:hover {
    background: #ccc;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: var(--sage-green);
    border: 1px solid var(--sage-green);
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--cream);
}

.btn-small {
    padding: 8px 12px;
    font-size: 12px;
}

/* Input with button inline */
.input-with-button {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-with-button input {
    flex: 1;
}

.input-with-button .btn-small {
    white-space: nowrap;
}

/* Validation messages */
.validation-message {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

.validation-message.error {
    color: var(--error-color);
}

.validation-message.success {
    color: var(--success-color);
}

/* Taken IDs popup */
.taken-ids-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(250, 248, 243, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(61, 90, 64, 0.2);
    border: 1px solid rgba(212, 184, 150, 0.4);
    z-index: 1001;
    max-width: 400px;
    width: 90%;
}

.taken-ids-popup h3 {
    margin-bottom: 15px;
    color: var(--dark-green);
}

.taken-ids-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.taken-id-badge {
    background: var(--light-sage);
    color: var(--dark-green);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(250, 248, 243, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(61, 90, 64, 0.2);
    border: 1px solid rgba(212, 184, 150, 0.4);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--dark-green);
    margin-bottom: 20px;
}

.quick-edit-content {
    max-width: 450px;
}

.quick-edit-content h2 {
    font-size: 20px;
    margin-bottom: 25px;
}

.quick-edit-content .form-group {
    margin-bottom: 20px;
}

.quick-edit-content .form-actions {
    margin-top: 25px;
}

/* ===== Responsive ===== */

/* Large Desktop (1920px and above) */
@media (min-width: 1920px) {
    .header-container,
    .admin-content {
        max-width: 1600px;
        margin: 0 auto;
    }

    .dashboard-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .rooms-quick-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 24px;
    }

    .dashboard-header h2 {
        font-size: 36px;
    }

    .stat-number {
        font-size: 42px;
    }
}

/* Desktop (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .rooms-quick-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Standard Desktop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .admin-content {
        padding: 35px 40px;
    }

    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .rooms-quick-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

/* Tablet Landscape (768px - 1023px) */
@media (max-width: 1023px) {
    .admin-container {
        flex-direction: column;
        min-height: auto;
    }

    .admin-sidebar {
        width: 100%;
        display: flex;
        position: static;
        padding: 0;
        top: 0;
        box-shadow: 0 2px 8px rgba(61, 90, 64, 0.08);
        border-right: none;
        border-bottom: 1px solid rgba(212, 184, 150, 0.3);
        height: auto;
        min-height: auto;
    }

    .sidebar-menu {
        display: flex;
        width: 100%;
        gap: 0;
        justify-content: space-around;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .sidebar-menu::-webkit-scrollbar {
        display: none;
    }

    .menu-item {
        flex: 1;
        min-width: fit-content;
        white-space: nowrap;
        border-left: none;
        border-bottom: 4px solid transparent;
        border-radius: 0;
        padding: 12px 16px;
        text-align: center;
        font-size: 14px;
    }

    .menu-item:hover {
        border-left: none;
        border-bottom-color: rgba(123, 155, 126, 0.5);
    }

    .menu-item.active {
        border-left: none;
        border-bottom-color: var(--sage-green);
        background: linear-gradient(180deg, rgba(123, 155, 126, 0.15) 0%, rgba(123, 155, 126, 0.05) 100%);
    }

    .admin-content {
        padding: 30px 25px;
    }

    .dashboard-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        max-width: 300px;
    }

    .stat-card {
        padding: 12px 8px;
    }

    .stat-card h3 {
        font-size: 9px;
        margin-bottom: 6px;
    }

    .stat-number {
        font-size: 24px;
    }

    .rooms-quick-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .rooms-table {
        font-size: 13px;
        min-width: 600px;
    }

    .rooms-table th,
    .rooms-table td {
        padding: 12px 10px;
    }

    .rooms-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
}

/* Tablet Portrait & Mobile Landscape (480px - 767px) */
@media (max-width: 767px) {
    .header-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 0 20px;
        width: 100%;
        max-width: 100%;
    }

    .admin-title {
        font-size: 18px;
        position: static;
        transform: none;
        margin-top: 5px;
    }

    .header-actions {
        gap: 15px;
        font-size: 13px;
    }

    .admin-content {
        padding: 25px 20px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        display: block;
        min-height: 400px;
    }

    .dashboard-header h2 {
        font-size: 26px;
    }

    .tab-content {
        display: none;
    }

    .tab-content.active {
        display: block !important;
        opacity: 1;
        visibility: visible;
    }

    .dashboard-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 10px 8px;
    }

    .stat-card h3 {
        font-size: 9px;
        margin-bottom: 5px;
    }

    .stat-number {
        font-size: 22px;
    }

    .rooms-quick-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .quick-preview {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .search-filter {
        flex-direction: column;
        gap: 12px;
    }

    .search-filter input,
    .search-filter select {
        max-width: 100%;
        width: 100%;
    }

    .rooms-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .rooms-header h2 {
        font-size: 24px;
    }

    .rooms-table {
        font-size: 12px;
        min-width: 600px;
    }

    .rooms-table th,
    .rooms-table td {
        padding: 10px 8px;
        white-space: nowrap;
    }

    .rooms-table-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .action-buttons {
        flex-wrap: wrap;
        gap: 6px;
    }

    .btn-icon {
        padding: 5px 10px;
        font-size: 11px;
    }

    .modal-content {
        width: 95%;
        padding: 25px 20px;
        max-height: 85vh;
    }

    .room-form,
    .quick-preview,
    .stat-card {
        border-radius: 10px;
    }

    .menu-item {
        font-size: 13px;
        padding: 10px 12px;
        min-width: fit-content;
        white-space: nowrap;
    }
}

/* Mobile Portrait (320px - 479px) */
@media (max-width: 479px) {
    .admin-header {
        padding: 10px 0;
    }

    .header-container {
        padding: 0 15px;
    }

    .admin-header .logo-main {
        font-size: 24px;
    }

    .admin-header .logo-sub {
        font-size: 8px;
        letter-spacing: 2px;
    }

    .admin-title {
        font-size: 16px;
    }

    .btn-logout {
        padding: 6px 12px;
        font-size: 12px;
    }

    .admin-content {
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        display: block;
        min-height: 400px;
    }

    .dashboard-header h2 {
        font-size: 24px;
    }

    .stat-card {
        padding: 10px 6px;
    }

    .stat-card h3 {
        font-size: 9px;
        margin-bottom: 5px;
    }

    .stat-number {
        font-size: 22px;
    }

    .rooms-quick-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quick-room-card {
        min-height: 110px;
        padding: 30px 12px 12px;
    }

    .quick-room-card h4 {
        font-size: 14px;
    }

    .quick-room-card p {
        font-size: 12px;
    }

    .quick-preview {
        padding: 20px;
    }

    .quick-preview h3 {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .room-form {
        padding: 24px 18px;
    }

    .form-header h2 {
        font-size: 24px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 9px 12px;
        font-size: 13px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 18px;
        font-size: 13px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions button {
        width: 100%;
    }

    .menu-item {
        font-size: 12px;
        padding: 10px 10px;
        min-width: fit-content;
        white-space: nowrap;
    }

    .rooms-table {
        font-size: 11px;
        min-width: 550px;
    }

    .rooms-table th,
    .rooms-table td {
        padding: 8px 6px;
        white-space: nowrap;
    }

    .rooms-table-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-content {
        width: 96%;
        padding: 20px 15px;
    }

    .modal-content h2 {
        font-size: 20px;
    }

    .taken-ids-popup {
        width: 95%;
        padding: 20px;
    }
}

/* Extra Small Screens (Below 360px) */
@media (max-width: 359px) {
    .admin-content {
        padding: 15px 12px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        display: block;
        min-height: 300px;
    }

    .dashboard-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 8px 5px;
    }

    .stat-card h3 {
        font-size: 8px;
        margin-bottom: 4px;
    }

    .stat-number {
        font-size: 20px;
    }

    .quick-preview,
    .room-form {
        padding: 18px 15px;
    }

    .menu-item {
        font-size: 11px;
        padding: 8px 8px;
        min-width: fit-content;
        white-space: nowrap;
    }
}

/* Hide decorative backgrounds on smaller screens for performance */
@media (max-width: 767px) {
    .admin-dashboard::before,
    .admin-dashboard::after {
        display: none;
    }
}

/* Adjust decorative backgrounds for tablets */
@media (min-width: 768px) and (max-width: 1023px) {
    .admin-dashboard::before {
        width: 400px;
        height: 400px;
        bottom: -30%;
        left: -15%;
    }

    .admin-dashboard::after {
        width: 350px;
        height: 350px;
        top: -20%;
        right: -12%;
    }
}

/* Mobile-specific fixes for touch and performance */
@media (max-width: 767px) {
    /* Improve touch targets */
    button, .btn-primary, .btn-secondary, .btn-icon, .btn-logout {
        min-height: 44px;
        min-width: 44px;
    }

    /* Prevent text selection issues on mobile */
    * {
        -webkit-tap-highlight-color: rgba(123, 155, 126, 0.2);
    }

    /* Smooth scrolling for mobile */
    .admin-content,
    .modal-content,
    .rooms-table-container {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* Fix input zoom on iOS */
    input[type="text"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Ensure modals fit on screen */
    .modal {
        padding: 10px;
    }

    /* Fix sidebar menu touch targets */
    .sidebar-menu {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ===== Room Calendar Styles ===== */
.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-left: 220px;
    padding: 20px 25px;
    background: rgba(250, 248, 243, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(61, 90, 64, 0.12);
    border: 1px solid rgba(212, 184, 150, 0.35);
}

.calendar-controls h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--dark-green);
    font-weight: 700;
    margin: 0;
}

.month-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.month-selector #current-month-display {
    font-weight: 600;
    font-size: 16px;
    color: var(--dark-green);
    min-width: 140px;
    text-align: center;
}

.btn-nav {
    background: var(--sage-green);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: var(--dark-green);
}

.rooms-calendar-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-left: 220px;
}

.calendar-legend {
    margin-left: 220px;
}

.room-calendar-row {
    background: rgba(250, 248, 243, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(61, 90, 64, 0.12);
    border: 1px solid rgba(212, 184, 150, 0.35);
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    overflow: visible;
}

.room-info-panel {
    min-width: 180px;
    max-width: 180px;
    padding-right: 20px;
    border-right: 1px solid rgba(212, 184, 150, 0.4);
}

.room-info-panel .room-number {
    display: inline-block;
    background: var(--sage-green);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.room-info-panel h4 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: var(--dark-green);
    margin-bottom: 5px;
    font-weight: 600;
}

.room-info-panel .room-details {
    font-size: 13px;
    color: var(--text-light);
}

.room-info-panel .room-details p {
    margin: 3px 0;
}

.calendar-panel {
    flex: 1;
    overflow: visible;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    width: 100%;
    position: relative;
}

.calendar-header {
    text-align: center;
    font-weight: 600;
    font-size: 11px;
    color: var(--dark-green);
    padding: 8px 4px;
    background: rgba(212, 184, 150, 0.2);
    border-radius: 4px;
    text-transform: uppercase;
}

.calendar-day {
    text-align: center;
    padding: 8px 4px;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    min-height: 52px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day.available {
    background: rgba(200, 230, 200, 0.3);
    color: var(--dark-green);
    cursor: pointer;
}

.calendar-day.available:hover {
    background: rgba(36, 72, 36, 0.6);
}

.calendar-day.booked {
    background: rgba(90, 56, 45, 0.1);
    color: var(--dark-green);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.calendar-day.past {
    background: rgba(200, 200, 200, 0.3);
    color: #bbb;
    cursor: not-allowed;
}

.calendar-day.past.booked {
    background: rgba(45, 90, 48, 0.05);
    color: #999;
    text-decoration: none;
    cursor: pointer;
    overflow: visible;
}

.calendar-day.today {
    border: 2px solid var(--sage-green);
    font-weight: 700;
}

.calendar-day.today.available {
    background: rgba(123, 155, 126, 0.3);
}

.calendar-legend {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(212, 184, 150, 0.3);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.legend-color.available {
    background: rgba(200, 230, 200, 0.6);
}

.legend-color.booked {
    background: rgba(200, 200, 200, 0.5);
    position: relative;
}

.legend-color.booked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #999;
}

.legend-color.past {
    background: rgba(200, 200, 200, 0.3);
}

.legend-color.today {
    border: 2px solid var(--sage-green);
    background: rgba(123, 155, 126, 0.3);
}

/* Responsive calendar styles */
@media (max-width: 900px) {
    .room-calendar-row {
        flex-direction: column;
    }
    
    .room-info-panel {
        max-width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(212, 184, 150, 0.4);
        padding-right: 0;
        padding-bottom: 15px;
        margin-bottom: 10px;
    }
    
    .calendar-controls {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .calendar-day {
        padding: 4px 2px;
        font-size: 11px;
        min-height: 46px;
    }
    
    .calendar-header {
        font-size: 9px;
        padding: 6px 2px;
    }
    
    .calendar-grid {
        min-width: 280px;
        gap: 2px;
    }
}

/* No Results Message */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    text-align: center;
    background: rgba(250, 248, 243, 0.85);
    border-radius: 12px;
    border: 1px dashed rgba(212, 184, 150, 0.5);
}

.no-results svg {
    color: var(--text-light);
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-results p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Day Selected - Individual day selection with immediate glow */
.calendar-day.day-selected {
    background: #2d5a30 !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: 1 0 15px 5px rgba(45, 90, 48, 0.7), 0 0 30px 10px rgba(45, 90, 48, 0.4) !important;
    position: relative;
    z-index: 10;
    transform: scale(1.02);
    border-radius: 6px;
}

@keyframes glowPulse {
    0%, 100% { 
        box-shadow: 0 0 15px 5px rgba(45, 90, 48, 0.7), 0 0 30px 10px rgba(45, 90, 48, 0.4);
        transform: scale(1.1);
    }
    50% { 
        box-shadow: 0 0 25px 8px rgba(45, 90, 48, 0.9), 0 0 45px 15px rgba(45, 90, 48, 0.5);
        transform: scale(1.15);
    }
}

/* Floating Confirm Button */
.floating-confirm-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d5a30;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 25px rgba(45, 90, 48, 0.5);
    z-index: 1000;
    animation: slideUpBtn 0.3s ease;
}

@keyframes slideUpBtn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.floating-confirm-btn .selected-count {
    font-weight: 600;
    font-size: 14px;
}

.floating-confirm-btn .btn-confirm {
    background: white;
    color: #2d5a30;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.floating-confirm-btn .btn-confirm:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.floating-confirm-btn .btn-clear {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.floating-confirm-btn .btn-clear:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ===== Booking Modal Styles ===== */
.booking-modal-content {
    max-width: 500px;
    position: relative;
    margin: 0;
    transition: all 0.3s ease;
}

#booking-modal {
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto;
}

#booking-modal.positioned-above {
    align-items: flex-start;
    padding-top: 20px;
}

#booking-modal.positioned-below {
    align-items: flex-end;
    padding-bottom: 20px;
}

.booking-modal-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
    z-index: -1;
}

#booking-modal.positioned-above .booking-modal-content::before {
    bottom: -10px;
    left: 50%;
    margin-left: -10px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
}

#booking-modal.positioned-below .booking-modal-content::before {
    top: -10px;
    left: 50%;
    margin-left: -10px;
    box-shadow: -3px -3px 5px rgba(0, 0, 0, 0.1);
}

.booking-summary {
    background: rgba(123, 155, 126, 0.1);
    border: 1px solid var(--sage-green);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.booking-summary.warning {
    background: rgba(211, 47, 47, 0.05);
    border-color: var(--error-color);
}

.booking-summary p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-dark);
}

.booking-summary strong {
    color: var(--dark-green);
    min-width: 110px;
    display: inline-block;
}

.warning-message {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(211, 47, 47, 0.08);
    border: 1px solid rgba(211, 47, 47, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.warning-message svg {
    flex-shrink: 0;
    color: var(--error-color);
}

.warning-message p {
    margin: 0;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
}

.btn-danger {
    background: var(--error-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-danger-outline {
    background: transparent;
    color: var(--error-color);
    padding: 10px 20px;
    border: 1px solid var(--error-color);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger-outline:hover {
    background: var(--error-color);
    color: white;
}

.cancel-booking-section {
    margin-top: 20px;
    padding-top: 15px;
}

.cancel-booking-section .divider {
    border: none;
    border-top: 1px solid rgba(200, 200, 200, 0.5);
    margin-bottom: 15px;
}

.warning-message.compact {
    padding: 10px 12px;
    margin-bottom: 12px;
}

.warning-message.compact p {
    font-size: 12px;
    margin: 0;
}

.calendar-day.selectable {
    cursor: pointer;
    transition: all 0.15s ease;
}

.calendar-day.selectable:hover {
    background: rgba(123, 155, 126, 0.35) !important;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.calendar-instruction {
    background: rgba(123, 155, 126, 0.1);
    border: 1px solid var(--sage-green);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--dark-green);
}

.calendar-instruction svg {
    vertical-align: middle;
    margin-right: 8px;
    color: var(--sage-green);
}

/* ===== Booking Bar Styles ===== */
.booking-bar {
    position: absolute;
    top: auto;
    bottom: 4px;
    transform: none;
    height: 28px;
    background: linear-gradient(135deg, #446d47 0%, #406f42 100%);
    border-radius: 14px;
    color: white;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(45, 90, 48, 0.4);
    transition: all 0.2s ease;
    left: 2px;
}

.booking-bar:hover {
    background: linear-gradient(135deg, #3d7a40 0%, #4d9a50 100%);
    box-shadow: 0 4px 12px rgba(45, 90, 48, 0.5);
    transform: scale(1.02);
}

.booking-bar-start {
    border-radius: 14px 0 0 14px;
    left: 2px;
    right: -2px;
}

.booking-bar-middle {
    border-radius: 0;
    left: -2px;
    right: -2px;
}

.booking-bar-end {
    border-radius: 0 14px 14px 0;
    left: -2px;
    right: 2px;
}

.booking-bar-single {
    border-radius: 14px;
    left: 2px;
    right: 2px;
}

/* Continuation styles for bookings spanning multiple week rows */
.booking-bar-continue-start {
    border-radius: 0;
    left: -2px;
    right: -2px;
}

.booking-bar-continue-end {
    border-radius: 0;
    left: -2px;
    right: -2px;
}

.calendar-day.booked .day-number {
    position: relative;
    top: 0;
    left: 0;
    font-size: 12px;
    color: rgba(45, 90, 48, 0.8);
    z-index: 5;
    font-weight: 500;
}

/* Past booking bar styles - grey */
.calendar-day.past .booking-bar {
    background: linear-gradient(135deg, #888 0%, #aaa 100%);
    box-shadow: 0 2px 8px rgba(100, 100, 100, 0.3);
}

.calendar-day.past .booking-bar:hover {
    background: linear-gradient(135deg, #999 0%, #bbb 100%);
    box-shadow: 0 4px 12px rgba(100, 100, 100, 0.4);
}

.calendar-day.past.booked .day-number {
    color: rgba(100, 100, 100, 0.6);
}

/* ===== Draggable Modal ===== */
.booking-modal-content.draggable {
    cursor: move;
}

.booking-modal-content .modal-header {
    cursor: move;
    user-select: none;
}

.booking-modal-content.dragging {
    opacity: 0.9;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

/* ===== Mobile Phone Responsive Fixes ===== */
@media (max-width: 767px) {
    /* Header - Keep all elements in one row */
    .header-container {
        flex-direction: row !important;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 0 12px;
        text-align: left;
    }

    .admin-header .admin-logo {
        flex-shrink: 0;
    }

    .admin-header .logo-main {
        font-size: 20px;
    }

    .admin-header .logo-sub {
        font-size: 7px;
        letter-spacing: 1.5px;
    }

    .admin-title {
        position: static !important;
        transform: none !important;
        font-size: 14px;
        margin: 0;
        white-space: nowrap;
        flex-shrink: 1;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-actions {
        flex-shrink: 0;
        gap: 8px;
    }

    .admin-user {
        display: none;
    }

    .btn-logout {
        padding: 5px 10px;
        font-size: 11px;
    }

    /* Filter Panel - Compact, not fixed, full width */
    .filter-panel {
        position: static !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        padding: 6px 8px !important;
        margin: 0 0 8px 0 !important;
        left: 0 !important;
        top: auto !important;
        overflow: visible !important;
        z-index: 1;
        border-radius: 8px !important;
        display: none !important;
    }

    .filter-panel.mobile-visible {
        display: block !important;
    }

    /* Mobile Filter Toggle Button */
    .mobile-filter-toggle {
        display: flex !important;
        align-items: center;
        gap: 6px;
        background: var(--sage-green);
        color: white;
        border: none;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 500;
        cursor: pointer;
        margin: 8px 10px;
        box-shadow: 0 2px 8px rgba(61, 90, 64, 0.2);
    }

    .mobile-filter-toggle:hover {
        background: var(--dark-green);
    }

    .mobile-filter-toggle svg {
        width: 14px;
        height: 14px;
    }

    /* Filter close button */
    .filter-close-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        background: transparent;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        font-size: 12px;
        cursor: pointer;
        color: var(--text-light);
        margin-left: auto;
    }

    .filter-close-btn:hover {
        background: rgba(0,0,0,0.05);
    }

    .filter-header {
        padding: 0 0 4px 0 !important;
        margin-bottom: 4px !important;
        position: relative;
        background: transparent;
        border-bottom: none !important;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }

    .filter-header h3 {
        font-size: 10px !important;
        margin: 0;
        font-weight: 600;
    }

    .filter-body {
        gap: 4px !important;
        display: flex;
        flex-wrap: wrap;
        padding: 0 !important;
    }

    .filter-section {
        min-width: 0 !important;
        flex: 1 1 calc(50% - 3px) !important;
        margin-bottom: 0 !important;
    }

    .filter-section label {
        font-size: 7px !important;
        margin-bottom: 1px !important;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        display: block;
    }

    .filter-section select,
    .filter-section input {
        padding: 3px 6px !important;
        font-size: 10px !important;
        height: 24px !important;
        width: 100% !important;
        border-radius: 4px !important;
    }

    .filter-row {
        width: 100% !important;
        gap: 4px !important;
        display: flex;
    }

    .filter-section.half {
        flex: 1 1 calc(50% - 3px) !important;
    }

    .filter-footer {
        padding: 4px 0 0 0 !important;
        margin-top: 4px !important;
        flex-direction: row !important;
        gap: 8px;
        align-items: center;
    }

    .filter-footer .btn-secondary {
        padding: 3px 8px !important;
        font-size: 9px !important;
    }

    .filter-footer .results-count {
        font-size: 9px !important;
    }

    /* Calendar Section - Full width horizontal */
    .calendar-section {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .rooms-calendar-container {
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .calendar-legend {
        margin-left: 0 !important;
        padding: 8px !important;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }

    .legend-item {
        font-size: 9px;
    }

    .legend-color {
        width: 10px;
        height: 10px;
    }

    /* Calendar controls - Full width and visible */
    .calendar-controls {
        padding: 10px 12px !important;
        margin-left: 0 !important;
        flex-direction: column !important;
        gap: 10px;
        align-items: center;
        width: 100%;
        position: relative;
        z-index: 10;
    }

    .calendar-controls h3 {
        font-size: 14px;
        margin: 0;
        white-space: nowrap;
        text-align: center;
        width: 100%;
    }

    /* Month selector - ensure visibility */
    .month-selector {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        flex-wrap: nowrap;
    }

    .month-selector #current-month-display {
        font-size: 14px;
        min-width: 110px;
        text-align: center;
    }

    .btn-nav {
        padding: 8px 14px !important;
        font-size: 12px !important;
        white-space: nowrap;
        flex-shrink: 0;
        background: var(--sage-green);
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    .calendar-nav-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    /* Room calendar row - Full width horizontal */
    .room-calendar-row {
        padding: 10px !important;
        gap: 10px !important;
        flex-direction: column;
        margin: 0 0 10px 0 !important;
        width: 100% !important;
    }

    .room-info-panel {
        min-width: 100% !important;
        max-width: 100% !important;
        padding-right: 0 !important;
        padding-bottom: 8px;
        border-right: none !important;
        border-bottom: 1px solid rgba(212, 184, 150, 0.4);
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
    }

    .room-info-panel .room-number {
        font-size: 10px;
        padding: 2px 6px;
        margin-bottom: 0;
    }

    .room-info-panel h4 {
        font-size: 13px;
        margin-bottom: 0;
        flex: 1;
    }

    .room-info-panel .room-details {
        width: 100%;
        font-size: 10px;
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .room-info-panel .room-details p {
        margin: 0;
    }

    /* Calendar grid - Full width display */
    .calendar-panel {
        width: 100% !important;
        overflow-x: visible !important;
    }

    .calendar-grid {
        width: 100% !important;
        min-width: 100% !important;
        gap: 2px;
    }

    .calendar-header {
        font-size: 9px;
        padding: 5px 2px;
    }

    .calendar-day {
        font-size: 10px;
        padding: 3px 1px;
        min-height: 36px;
    }

    .calendar-day .day-number {
        font-size: 10px;
    }

    /* Booking bar adjustments */
    .booking-bar {
        font-size: 7px !important;
        padding: 1px 3px !important;
        height: 12px !important;
    }

    .booking-bar-content {
        font-size: 7px;
    }

    /* Dashboard content */
    .admin-content {
        padding: 10px 8px !important;
    }

    .dashboard-main-layout {
        gap: 10px;
    }

    /* Quick room cards */
    .rooms-quick-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
        gap: 10px;
    }

    .quick-room-card {
        padding: 25px 10px 10px !important;
        min-height: 100px !important;
    }

    .quick-room-number {
        font-size: 10px;
        padding: 3px 6px;
    }

    .quick-room-status {
        font-size: 8px;
        padding: 2px 6px;
    }

    .quick-room-card h4 {
        font-size: 13px;
    }

    .quick-room-card p {
        font-size: 11px;
    }

    /* Dashboard stats - smaller */
    .dashboard-stats {
        gap: 8px !important;
    }

    .stat-card {
        padding: 8px 5px !important;
    }

    .stat-card h3 {
        font-size: 8px !important;
    }

    .stat-number {
        font-size: 18px !important;
    }

    /* Quick preview section */
    .quick-preview {
        padding: 12px !important;
    }

    .quick-preview h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
}

/* Extra small phones (below 400px) */
@media (max-width: 400px) {
    .header-container {
        padding: 0 8px;
    }

    .admin-header .logo-main {
        font-size: 18px;
    }

    .admin-title {
        font-size: 12px;
    }

    .btn-logout {
        padding: 4px 8px;
        font-size: 10px;
    }

    /* Filter even more compact */
    .filter-section {
        flex: 1 1 calc(50% - 3px) !important;
    }

    .filter-section.half {
        flex: 1 1 calc(50% - 3px) !important;
    }

    .filter-section select,
    .filter-section input {
        height: 26px !important;
        font-size: 10px !important;
    }

    .calendar-day {
        font-size: 9px;
        min-height: 32px;
    }

    .calendar-header {
        font-size: 8px;
    }

    .rooms-quick-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .stat-number {
        font-size: 16px !important;
    }
}