/* ===================================
   ADMIN DASHBOARD - FULLY RESPONSIVE DESIGN
   ==================================== */

:root {
    --primary-color: #2196F3;
    --primary-dark: #1565C0;
    --primary-light: #64B5F6;
    --secondary: #FF9800;
    --success: #4CAF50;
    --danger: #F44336;
    --warning: #FFC107;
    --info: #00BCD4;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F5F7FA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --sidebar-width: 280px;
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'Jost', Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

#wrapper {
    height: 100%;
}

/* ============ ADMIN DASHBOARD CONTAINER ============ */
.admin-dashboard-container {
    display: flex;
    min-height: 100vh;
    background: var(--bg-light);
}

/* ============ SIDEBAR ============ */
.admin-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.admin-sidebar::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Sidebar Header */
.admin-sidebar-header {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: var(--transition);
}

.admin-logo:hover {
    color: var(--primary-light);
}

.admin-logo i {
    font-size: 28px;
    color: var(--primary-light);
}

.logo-text {
    display: inline-block;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    color: var(--primary-light);
}

/* Sidebar Navigation */
.admin-sidebar-nav {
    padding: 0px 0;
}

.admin-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 25px;
    color: rgba(236, 240, 241, 0.9);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-link:hover,
.nav-item.active .nav-link {
    background: rgba(33, 150, 243, 0.2);
    color: #ecf0f1;
    border-left-color: var(--primary-light);
}

.nav-link i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.nav-link span {
    font-size: 14px;
    font-weight: 500;
}

/* Sidebar Footer */
.admin-sidebar-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: #ecf0f1;
    text-decoration: none;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 6px;
    text-align: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
}

.logout-btn:hover {
    background: rgba(244, 67, 54, 0.2);
    color: #FF6B6B;
}

/* ============ MAIN CONTENT ============ */
.admin-main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: auto;
    background: var(--bg-light);
}

/* Admin Header */
.admin-header {
    width: 100%;
    background: white;
    padding: 20px 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Prevent theme scroll classes from affecting admin header */
.admin-header.clone,
.admin-header.smaller,
.admin-header.nav-up {
    width: 100% !important;
    padding: 20px 30px !important;
    background: white !important;
    position: sticky !important;
    top: 0 !important;
    border: none !important;
    box-shadow: var(--shadow-sm) !important;
}

.sidebar-toggle-mobile {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: black;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-toggle-mobile:hover {
    color: var(--primary-color);
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 10px 15px 10px 35px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 250px;
    font-size: 14px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.header-search i {
    position: absolute;
    left: 12px;
    color: var(--text-light);
    font-size: 14px;
}

.admin-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.user-role {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

/* ============ MAIN CONTENT AREA ============ */
.admin-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

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

.section-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.section-header p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    width: 100%;
}

.filter-controls {
    display: flex;
    gap: 10px;
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.filter-input {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-size: 14px;
    transition: var(--transition);
    min-width: 0;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.reservation-filter-grid {
    display: grid;
    grid-template-columns: minmax(170px, 1.1fr) minmax(170px, 1fr) minmax(150px, 0.9fr) auto;
    align-items: center;
    gap: 10px;
    width: min(100%, 980px);
}

.reservation-filter-grid .filter-select,
.reservation-filter-grid .filter-input {
    width: 100%;
}

.reservation-filter-clear {
    min-height: 42px;
    width: auto;
    white-space: nowrap;
}

.service-filter-grid {
    display: grid;
    grid-template-columns: minmax(170px, 1.1fr) minmax(170px, 1fr) minmax(150px, 0.9fr) minmax(150px, 0.9fr) auto;
    align-items: center;
    gap: 10px;
    width: min(100%, 1200px);
}

.service-filter-grid .filter-select,
.service-filter-grid .filter-input {
    width: 100%;
}

.service-filter-clear {
    min-height: 42px;
    width: auto;
    white-space: nowrap;
}

.newsletter-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: 16px;
    align-items: start;
}

.newsletter-compose-card,
.newsletter-subscribers-card {
    background: #fff;
    border: 1px solid #e4ecf5;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.newsletter-compose-card h3,
.newsletter-subscribers-card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    color: #10243d;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.newsletter-form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #2b3f57;
}

.newsletter-form-field input,
.newsletter-form-field textarea {
    width: 100%;
    border: 1px solid #d5dfeb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #10243d;
    background: #fff;
}

.newsletter-form-field input:focus,
.newsletter-form-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.15);
}

.newsletter-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.newsletter-form-actions .btn-action.is-updating {
    opacity: 0.7;
    cursor: wait;
}

.newsletter-subscriber-count {
    margin: 0 0 12px;
    color: #52657c;
    font-size: 13px;
}

.newsletter-subscribers-list {
    max-height: 440px;
    overflow: auto;
}

.newsletter-subscribers-table th,
.newsletter-subscribers-table td {
    font-size: 12px;
    padding: 10px 8px;
}

.hero-slider-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.hero-slider-admin-layout.form-collapsed {
    grid-template-columns: 1fr;
}

.hero-slider-admin-layout.form-editor-only {
    grid-template-columns: 1fr;
}

.hero-slider-admin-layout.form-editor-only .hero-slider-list-card {
    display: none;
}

.hero-slider-form-card,
.hero-slider-list-card {
    background: #fff;
    border: 1px solid #e4ecf5;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.hero-slider-form-card h3,
.hero-slider-list-card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    color: #10243d;
}

.hero-slider-form-card.is-collapsed {
    display: none;
}

.hero-slider-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hero-slider-editor-close {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid #d8e4f1;
    background: #fff;
    color: #304860;
    cursor: pointer;
    transition: var(--transition);
}

.hero-slider-editor-close:hover {
    border-color: #b7c9de;
    background: #f4f8fc;
}

.hero-slider-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.hero-slider-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hero-slider-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-slider-form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #2b3f57;
}

.hero-slider-form-field input,
.hero-slider-form-field textarea,
.hero-slider-form-field select {
    width: 100%;
    border: 1px solid #d5dfeb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #10243d;
    background: #fff;
}

.hero-slider-form-field input:focus,
.hero-slider-form-field textarea:focus,
.hero-slider-form-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.15);
}

.hero-slider-form-field input[type="color"] {
    min-height: 44px;
    padding: 4px;
}

.hero-slider-form-full {
    grid-column: 1 / -1;
}

.hero-slider-colors-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.hero-slider-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.hero-slider-form-actions .btn-action.is-updating {
    opacity: 0.7;
    cursor: wait;
}

.hero-slide-live-preview-wrap {
    border: 1px solid #dce8f3;
    border-radius: 10px;
    padding: 10px;
    background: #f7fbff;
}

.hero-slide-live-preview-title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #38506a;
    text-transform: uppercase;
}

.hero-slide-live-preview {
    position: relative;
    min-height: 220px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #0b3559, #184a78);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-slide-live-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 18, 33, 0.35), rgba(7, 18, 33, 0.7));
}

.hero-slide-live-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-height: 220px;
    padding: 16px;
}

.hero-slide-live-label {
    display: inline-block;
    width: fit-content;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-slide-live-heading {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    color: #fff;
}

.hero-slide-live-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    max-width: 90%;
    color: #e5e7eb;
}

.hero-slide-live-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #10243d;
    background: #fcbf49;
}

.hero-slide-row-meta {
    font-size: 12px;
    color: #586b80;
    margin-top: 4px;
    word-break: break-word;
}

.hero-color-swatch-list {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.hero-color-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #c8d7e8;
    background: var(--swatch-color, #ddd);
}

.hero-slide-actions {
    display: inline-flex;
    gap: 8px;
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.view-all-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============ STATISTICS GRID ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
}

.stat-icon.total-guests {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-icon.total-reservations {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.stat-icon.active-reservations {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.stat-icon.total-revenue {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.stat-icon.total-rooms {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.stat-icon.available-rooms {
    background: linear-gradient(135deg, #30cfd0, #330867);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin: 8px 0 0 0;
}

/* ============ CONTENT SECTIONS ============ */
.content-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.content-section .section-header {
    margin-bottom: 20px;
}

.content-section .section-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* ============ TABLES ============ */
.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table thead {
    background: #F7F7F7;
    border-bottom: 2px solid var(--border-color);
}

.admin-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    vertical-align: middle;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    vertical-align: middle;
    word-break: break-word;
}

.admin-table tbody tr {
    transition: var(--transition);
}

.admin-table tbody tr:hover {
    background: #F9F9F9;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-pending {
    background: #FFF3E0;
    color: #FF9800;
}

.status-confirmed {
    background: #E3F2FD;
    color: #2196F3;
}

.status-checked_in {
    background: #E8F5E9;
    color: #4CAF50;
}

.status-completed {
    background: #F3E5F5;
    color: #9C27B0;
}

.status-checked_out {
    background: #EDE7F6;
    color: #673AB7;
}

.status-cancelled {
    background: #FFEBEE;
    color: #F44336;
}

.payment-unpaid {
    background: #ffecec;
    color: #c53030;
}

.payment-partial {
    background: #fff5df;
    color: #b7791f;
}

.payment-paid {
    background: #e8f7ee;
    color: #2f855a;
}

.action-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.action-link:hover {
    color: var(--primary-dark);
}

.action-link.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(33, 150, 243, 0.25);
    background: rgba(33, 150, 243, 0.08);
}

.action-link.action-btn:hover {
    background: rgba(33, 150, 243, 0.16);
}

.action-link.is-updating {
    opacity: 0.6;
    pointer-events: none;
}

.service-thumb {
    width: 64px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dbe6f3;
    background: #eef3f9;
}

.service-icon-chip {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #dbe6f3;
    background: #2f4255;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3a587a;
    overflow: hidden;
}

.service-icon-chip i {
    font-size: 18px;
    line-height: 1;
}

.service-icon-chip img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.service-action-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-action-group .action-link {
    font-size: 0;
    line-height: 0;
}

.service-action-group .action-link i {
    font-size: 14px;
    line-height: 1;
}

.room-action-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.gallery-admin-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e8edf5;
    display: flex;
    flex-direction: column;
}

.gallery-admin-media {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: #eff4fb;
}

.gallery-admin-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-admin-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.gallery-admin-badge.featured {
    background: #ffe9cc;
    color: #c67000;
}

.gallery-admin-badge.standard {
    background: #e5edf7;
    color: #45617f;
}

.gallery-admin-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery-admin-body h4 {
    margin: 0;
    font-size: 16px;
    color: #10243d;
}

.gallery-admin-meta {
    margin: 0;
    color: #5b6f87;
    font-size: 12px;
    font-weight: 600;
}

.gallery-admin-desc {
    margin: 0;
    font-size: 13px;
    color: #5b6f87;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-admin-actions {
    margin-top: 2px;
    display: inline-flex;
    gap: 8px;
}

.news-admin-grid .gallery-admin-media {
    height: 190px;
}

.news-admin-grid .gallery-admin-desc {
    -webkit-line-clamp: 3;
}

.offers-admin-grid .gallery-admin-card {
    min-height: 220px;
}

.offers-admin-grid .gallery-admin-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}


.service-status-wrap,
.booking-status-wrap,
.payment-status-wrap {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    min-width: 150px;
}

.service-status-control-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-payment-control-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.booking-status-control-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.reservation-payment-control-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-status-wrap.is-locked .service-status-select {
    background: #f3f6fa;
    color: #5d6f84;
    border-color: #d5dfeb;
    cursor: not-allowed;
}

.booking-status-wrap.is-locked .reservation-status-select {
    background: #f3f6fa;
    color: #5d6f84;
    border-color: #d5dfeb;
    cursor: not-allowed;
}

.payment-status-wrap.is-locked .service-res-payment-select {
    background: #f3f6fa;
    color: #5d6f84;
    border-color: #d5dfeb;
    cursor: not-allowed;
}

.payment-status-wrap.is-locked .reservation-payment-select {
    background: #f3f6fa;
    color: #5d6f84;
    border-color: #d5dfeb;
    cursor: not-allowed;
}

.service-status-unlock-btn {
    border: 1px solid #c2d6ec;
    background: #edf5ff;
    color: #0f4d8a;
    border-radius: 8px;
    padding: 6px 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    min-height: 30px;
}

.service-status-unlock-btn:hover {
    background: #deeeff;
}

.service-status-unlock-btn.is-active {
    background: #0f4d8a;
    color: #fff;
    border-color: #0f4d8a;
}

.service-status-unlock-btn.is-hidden {
    display: none;
}

.service-payment-unlock-btn {
    border: 1px solid #c2d6ec;
    background: #edf5ff;
    color: #0f4d8a;
    border-radius: 8px;
    padding: 6px 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    min-height: 30px;
}

.service-payment-unlock-btn:hover {
    background: #deeeff;
}

.service-payment-unlock-btn.is-active {
    background: #0f4d8a;
    color: #fff;
    border-color: #0f4d8a;
}

.service-payment-unlock-btn.is-hidden {
    display: none;
}

.reservation-status-unlock-btn {
    border: 1px solid #c2d6ec;
    background: #edf5ff;
    color: #0f4d8a;
    border-radius: 8px;
    padding: 6px 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    min-height: 30px;
}

.reservation-status-unlock-btn:hover {
    background: #deeeff;
}

.reservation-status-unlock-btn.is-active {
    background: #0f4d8a;
    color: #fff;
    border-color: #0f4d8a;
}

.reservation-status-unlock-btn.is-hidden {
    display: none;
}

.reservation-payment-unlock-btn {
    border: 1px solid #c2d6ec;
    background: #edf5ff;
    color: #0f4d8a;
    border-radius: 8px;
    padding: 6px 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    min-height: 30px;
}

.reservation-payment-unlock-btn:hover {
    background: #deeeff;
}

.reservation-payment-unlock-btn.is-active {
    background: #0f4d8a;
    color: #fff;
    border-color: #0f4d8a;
}

.reservation-payment-unlock-btn.is-hidden {
    display: none;
}

.service-status-select,
.reservation-status-select,
.reservation-payment-select,
.service-res-payment-select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #d5dfeb;
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #123456;
}

.service-status-select:focus,
.reservation-status-select:focus,
.reservation-payment-select:focus,
.service-res-payment-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.15);
}

.service-status-select.is-updating,
.reservation-status-select.is-updating,
.reservation-payment-select.is-updating,
.service-res-payment-select.is-updating {
    opacity: 0.7;
    cursor: wait;
}

.text-center {
    text-align: center;
}

.guest-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 36, 61, 0.45);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 1200;
}

.guest-modal-overlay.open {
    display: flex;
}

.guest-modal-card {
    width: min(720px, 100%);
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.service-crud-modal {
    width: min(760px, 100%);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

.room-crud-modal {
    width: min(820px, 100%);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

.service-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 12px;
    align-items: start;
}

.room-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.room-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.room-form-full {
    grid-column: 1 / -1;
}

.room-form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #2b3f57;
}

.room-form-field input,
.room-form-field textarea,
.room-form-field select {
    width: 100%;
    border: 1px solid #d5dfeb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #10243d;
    background: #fff;
}

.room-form-field input[type="file"] {
    padding: 8px;
    background: #f9fbff;
}

.room-form-field input:focus,
.room-form-field textarea:focus,
.room-form-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.15);
}

.room-image-preview-wrap {
    margin-top: 8px;
    width: 100%;
    max-width: 320px;
    border: 1px dashed #bfd3ea;
    border-radius: 10px;
    padding: 8px;
    background: #f7fbff;
}

.room-image-preview {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
    background: #e8f0fb;
}

.room-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.service-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-form-full {
    grid-column: 1 / -1;
}

.service-form-main {
    grid-column: 1 / 2;
}

.service-form-media {
    grid-column: 2 / 3;
    grid-row: span 4;
}

.service-form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #2b3f57;
}

.service-form-field input,
.service-form-field textarea,
.service-form-field select {
    width: 100%;
    border: 1px solid #d5dfeb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #10243d;
    background: #fff;
}

.service-form-field input[type="file"] {
    padding: 8px;
    background: #f9fbff;
}

.service-image-preview-wrap {
    margin-top: 8px;
    width: 100%;
    max-width: 100%;
    border: 1px dashed #bfd3ea;
    border-radius: 10px;
    padding: 8px;
    background: #f7fbff;
}

.service-image-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    background: #e8f0fb;
}

.service-form-field input:focus,
.service-form-field textarea:focus,
.service-form-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.15);
}

.service-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.service-crud-modal .guest-modal-body {
    overflow-y: auto;
    max-height: calc(92vh - 64px);
}

.room-crud-modal .guest-modal-body {
    overflow-y: auto;
    max-height: calc(92vh - 64px);
}

.guest-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
}

.guest-modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.guest-modal-close {
    border: none;
    background: transparent;
    color: #54667a;
    font-size: 18px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
}

.guest-modal-close:hover {
    background: #f2f6fb;
    color: #1f3a5b;
}

.guest-modal-body {
    padding: 16px 18px 18px;
}

.guest-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.guest-detail-item {
    border: 1px solid #edf2f7;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fbfdff;
}

.guest-detail-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #62758d;
    margin-bottom: 4px;
}

.guest-detail-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #10243d;
    word-break: break-word;
}

/* ============ BUTTONS ============ */
.btn-action {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(33, 150, 243, 0.4);
}

/* ============ ROOMS GRID ============ */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.room-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.room-preview {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.room-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.room-card:hover .room-preview img {
    transform: scale(1.05);
}

.room-info {
    padding: 20px;
}

.room-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 5px 0;
}

.room-number {
    font-size: 13px;
    color: var(--text-light);
    margin: 0 0 10px 0;
}

.room-description {
    font-size: 13px;
    color: var(--text-light);
    margin: 6px 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.room-details {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

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

.detail i {
    color: var(--primary-color);
}

.room-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0 0 0;
}

.room-status {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    margin-top: 10px;
}

.room-status-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.room-status.available {
    background: #E8F5E9;
    color: #4CAF50;
}

.room-status.occupied {
    background: #FCE4EC;
    color: #E91E63;
}

/* ============ REPORTS GRID ============ */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.report-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.report-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

.report-info {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 15px 0;
}

.report-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.report-link:hover {
    color: var(--primary-dark);
}

.report-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.report-download-link {
    min-height: 36px;
}

.report-view-link {
    min-height: 36px;
}

.revenue-invoice-modal {
    width: min(1100px, 100%);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

.revenue-invoice-modal .guest-modal-body {
    overflow-y: auto;
    max-height: calc(92vh - 64px);
}

.invoice-type-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.invoice-type-room {
    background: #e8f2ff;
    color: #1c4d86;
}

.invoice-type-service {
    background: #eaf8ef;
    color: #1f6b3b;
}

/* ============ SETTINGS GRID ============ */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.settings-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.settings-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    background: #F9F9F9;
}

.settings-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-card h3 i {
    color: var(--primary-color);
}

.settings-card p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 15px 0;
}

.settings-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.settings-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===================================
   RESPONSIVE DESIGN
   ==================================== */

/* Desktop (1200px and above) - default */
@media (max-width: 1199px) {
    .admin-content {
        padding: 25px;
    }

    .header-search {
        display: none;
    }

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

    .stat-card {
        padding: 20px;
        gap: 15px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

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

/* Tablet (768px - 1199px) */
@media (max-width: 1023px) {
    :root {
        --sidebar-width: 240px;
    }

    .admin-sidebar {
        width: var(--sidebar-width);
    }

    .admin-main-content {
        margin-left: var(--sidebar-width);
    }

    .page-title {
        font-size: 20px;
    }

    .reservation-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .service-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .newsletter-admin-layout {
        grid-template-columns: 1fr;
    }

    .hero-slider-admin-layout {
        grid-template-columns: 1fr;
    }

    .hero-slider-colors-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-slider-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-slider-form-header h3 {
        font-size: 18px;
    }

    .hero-slide-live-preview,
    .hero-slide-live-content {
        min-height: 200px;
    }

    .admin-header {
        width: 100%;
        padding: 15px 20px;
        gap: 15px;
    }

    /* Prevent theme scroll classes from affecting admin header on tablet */
    .admin-header.clone,
    .admin-header.smaller,
    .admin-header.nav-up {
        width: 100% !important;
        padding: 15px 20px !important;
        background: white !important;
        position: sticky !important;
        top: 0 !important;
        border: none !important;
    }

    .admin-content {
        padding: 20px;
    }

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

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

    .stat-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

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

    .stat-label {
        font-size: 12px;
    }

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

    .reports-grid,
    .settings-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }

    .admin-table {
        font-size: 13px;
    }

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

    .content-section {
        padding: 20px;
    }

    /* Hide logo text on tablet */
    .logo-text {
        display: none;
    }
}

/* Small Tablet/Large Mobile (576px - 767px) */
@media (max-width: 767px) {
    :root {
        --sidebar-width: 280px;
    }

    .admin-sidebar {
        width: var(--sidebar-width);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1050;
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-main-content {
        margin-left: 0;
    }

    /* Sidebar backdrop overlay */
    .admin-sidebar::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: -1;
        pointer-events: none;
    }

    .admin-sidebar.active::before {
        opacity: 1;
        visibility: visible;
        z-index: 1049;
        pointer-events: none;
    }

    .admin-sidebar-header {
        flex-direction: row;
        padding: 20px;
        gap: 15px;
        justify-content: space-between;
        align-items: center;
    }

    .admin-logo {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .admin-logo i {
        font-size: 28px;
    }

    .logo-text {
        display: inline-block;
    }

    .sidebar-toggle {
        display: block;
        font-size: 24px;
    }

    .admin-sidebar-nav {
        padding: 20px 0;
    }

    .nav-link {
        padding: 14px 25px;
        justify-content: flex-start;
        gap: 15px;
        pointer-events: auto;
    }

    .nav-link span {
        display: inline-block;
    }

    .admin-sidebar-footer {
        position: static;
        padding: 20px 25px;
        width: 100%;
    }

    .logout-btn {
        padding: 10px 12px;
        justify-content: flex-start;
        gap: 12px;
        font-size: 14px;
        width: 100%;
    }

    .logout-btn i {
        font-size: 16px;
    }

    .sidebar-toggle-mobile {
        display: block;
        min-width: 40px;
        padding: 8px;
    }

    .page-title {
        font-size: 18px;
        flex: 1;
        margin: 0 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .admin-header {
        padding: 12px 12px;
        gap: 8px;
        min-height: 56px;
    }

    .admin-header-right {
        gap: 10px;
        display: flex;
        align-items: center;
    }

    .header-search {
        width: 150px;
    }

    .search-input {
        width: 100%;
        padding: 8px 10px 8px 30px;
        font-size: 13px;
    }

    .header-search i {
        left: 10px;
        font-size: 13px;
    }

    .admin-user-profile {
        gap: 10px;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 12px;
        flex-shrink: 0;
    }
        height: 36px;
        font-size: 12px;
    }

    .user-info {
        display: none;
    }

    .admin-content {
        padding: 15px;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .section-header h2 {
        font-size: 20px;
        width: 100%;
    }

    .section-header h3 {
        font-size: 18px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
        margin-bottom: 25px;
    }

    .stat-card {
        padding: 12px;
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .stat-value {
        font-size: 18px;
    }

    .stat-label {
        font-size: 11px;
    }

    .content-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .admin-table {
        font-size: 12px;
        table-layout: fixed;
    }

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

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

    .room-preview {
        height: 150px;
    }

    .reports-grid,
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .report-card,
    .settings-card {
        padding: 20px;
    }

    .report-download-link {
        width: 100%;
        justify-content: center;
        border: 1px solid rgba(33, 150, 243, 0.22);
        border-radius: 8px;
        padding: 8px 12px;
    }

    .report-view-link {
        width: 100%;
        justify-content: center;
        border: 1px solid rgba(33, 150, 243, 0.22);
        border-radius: 8px;
        padding: 8px 12px;
    }

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

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

    .reservation-filter-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .reservation-filter-clear {
        width: 100%;
        min-height: 40px;
    }

    .service-filter-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .service-filter-clear {
        width: 100%;
        min-height: 40px;
    }

    .newsletter-compose-card,
    .newsletter-subscribers-card,
    .hero-slider-form-card,
    .hero-slider-list-card {
        padding: 14px;
    }

    .newsletter-form-actions {
        justify-content: stretch;
    }

    .newsletter-form-actions .btn-action,
    .hero-slider-form-actions .btn-action {
        flex: 1;
    }

    .hero-slider-form-grid,
    .hero-slider-colors-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .hero-slider-editor-close {
        width: 32px;
        height: 32px;
    }

    .hero-slide-live-preview,
    .hero-slide-live-content {
        min-height: 180px;
    }

    .hero-slide-live-heading {
        font-size: 18px;
    }

    .hero-slide-live-description {
        font-size: 13px;
        max-width: 100%;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto;
    }

    /* .guest-modal-grid {
        grid-template-columns: 1fr;
    } */

    .service-status-wrap,
    .booking-status-wrap,
    .payment-status-wrap {
        min-width: 0;
    }

    .service-thumb {
        width: 56px;
        height: 40px;
    }

    .service-icon-chip {
        width: 40px;
        height: 40px;
    }

    .gallery-admin-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }

    .gallery-admin-media {
        height: 150px;
    }

    .news-admin-grid .gallery-admin-media {
        height: 165px;
    }

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

    .service-form-main,
    .service-form-media {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .service-form-actions {
        justify-content: stretch;
    }

    .service-form-actions .btn-action {
        flex: 1;
    }

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

    .room-form-actions {
        justify-content: stretch;
    }

    .room-form-actions .btn-action {
        flex: 1;
    }

    .room-status-row {
        flex-wrap: wrap;
    }

    .room-image-preview-wrap {
        max-width: 100%;
    }

    .service-image-preview-wrap {
        max-width: 100%;
    }

}

/* Mobile (< 576px) */
@media (max-width: 575px) {
    :root {
        --sidebar-width: 280px;
    }

    .admin-sidebar {
        width: var(--sidebar-width);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1050;
        pointer-events: auto;
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-main-content {
        margin-left: 0;
        pointer-events: auto;
    }

    /* Sidebar backdrop overlay - visual only, not interactive */
    .admin-sidebar::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: -1;
        pointer-events: none;
    }

    .admin-sidebar.active::before {
        opacity: 1;
        visibility: visible;
        z-index: 1049;
        pointer-events: none;
    }

    .sidebar-toggle-mobile {
        display: block;
        min-width: 40px;
        min-height: 40px;
        padding: 8px 10px;
        font-size: 20px;
    }

    .page-title {
        font-size: 16px;
        flex: 1;
        margin: 0 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .admin-header {
        width: 100%;
        padding: 10px 10px;
        gap: 6px;
        min-height: 52px;
        flex-wrap: nowrap;
    }

    /* Prevent theme scroll classes from affecting admin header on mobile */
    .admin-header.clone,
    .admin-header.smaller,
    .admin-header.nav-up {
        width: 100% !important;
        padding: 10px 10px !important;
        background: white !important;
        position: sticky !important;
        top: 0 !important;
        border: none !important;
        min-height: 52px !important;
    }

    .admin-header-right {
        gap: 8px;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .header-search {
        width: 120px;
    }

    .search-input {
        width: 100%;
        padding: 6px 8px 6px 28px;
        font-size: 12px;
        border-radius: 4px;
    }

    .header-search i {
        left: 8px;
        font-size: 12px;
    }

    .admin-user-profile {
        gap: 6px;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 11px;
        flex-shrink: 0;
    }

    .user-info {
        display: none;
    }

    .admin-content {
        padding: 12px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .section-header h3 {
        font-size: 16px;
    }

    .section-header button {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 20px;
    }

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

    .stat-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .stat-value {
        font-size: 16px;
    }

    .stat-label {
        font-size: 10px;
        margin-top: 4px;
    }

    .content-section {
        padding: 12px;
        margin-bottom: 15px;
    }

    .content-section .section-header {
        margin-bottom: 12px;
    }

    .table-responsive {
        margin: -12px;
        padding: 0 4px;
    }

    .admin-table {
        font-size: 11px;
    }

    .admin-table th {
        padding: 8px 6px;
        font-size: 10px;
    }

    .admin-table td {
        padding: 8px 6px;
    }

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

    .room-preview {
        height: 120px;
    }

    .room-info {
        padding: 15px;
    }

    .room-info h4 {
        font-size: 16px;
    }

    .reports-grid,
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .report-card,
    .settings-card {
        padding: 15px;
    }

    .report-download-link {
        width: 100%;
        justify-content: center;
        font-size: 13px;
    }

    .report-view-link {
        width: 100%;
        justify-content: center;
        font-size: 13px;
    }

    .btn-action {
        padding: 8px 10px;
        font-size: 12px;
        width: 100%;
    }

    .status-badge {
        padding: 4px 8px;
        font-size: 11px;
    }

    .service-status-control-row {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .service-status-unlock-btn {
        width: 100%;
        min-height: 28px;
    }

    .service-payment-control-row {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .service-payment-unlock-btn {
        width: 100%;
        min-height: 28px;
    }

    .booking-status-control-row {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .reservation-status-unlock-btn {
        width: 100%;
        min-height: 28px;
    }

    .reservation-payment-control-row {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .reservation-payment-unlock-btn {
        width: 100%;
        min-height: 28px;
    }

    .guest-modal-overlay {
        padding: 10px;
    }

    .guest-modal-header h3 {
        font-size: 18px;
    }

    .guest-modal-body {
        padding: 12px;
    }

    .admin-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .nav-link {
        padding: 14px 25px;
        pointer-events: auto;
    }

    .gallery-admin-grid {
        grid-template-columns: 1fr;
    }

    .room-status-row {
        flex-wrap: wrap;
    }

    .room-image-preview-wrap {
        max-width: 100%;
    }

    .service-image-preview-wrap {
        max-width: 100%;
    }

}

/* Extra Small Phones (< 480px) */
@media (max-width: 479px) {
    .page-title {
        font-size: 14px;
        margin: 0 6px;
    }

    .admin-header {
        width: 100%;
        padding: 8px 8px;
        gap: 4px;
        min-height: 48px;
    }

    /* Prevent theme scroll classes from affecting admin header on extra small phones */
    .admin-header.clone,
    .admin-header.smaller,
    .admin-header.nav-up {
        width: 100% !important;
        padding: 8px 8px !important;
        background: white !important;
        position: sticky !important;
        top: 0 !important;
        border: none !important;
        min-height: 48px !important;
    }

    .sidebar-toggle-mobile {
        min-width: 36px;
        min-height: 36px;
        font-size: 18px;
    }

    .admin-header-right {
        gap: 6px;
    }

    .header-search {
        width: 100px;
    }

    .search-input {
        padding: 5px 6px 5px 26px;
        font-size: 11px;
    }

    .header-search i {
        left: 6px;
        font-size: 11px;
    }

    .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }

    .admin-content {
        padding: 10px;
    }

    .section-header h2 {
        font-size: 16px;
    }

    .section-header h3 {
        font-size: 14px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .stat-card {
        padding: 8px;
        flex-direction: row;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .stat-value {
        font-size: 14px;
    }

    .admin-table {
        font-size: 10px;
    }

    .admin-table th {
        padding: 6px 4px;
        font-size: 9px;
    }

    .admin-table td {
        padding: 6px 4px;
    }

    .admin-notification {
        top: 8px;
        right: 8px;
        left: 8px;
        font-size: 12px;
        padding: 12px 12px;
    }
}

/* Tiny Phones (< 360px) */
@media (max-width: 359px) {
    .page-title {
        font-size: 12px;
        margin: 0 4px;
    }

    .admin-header {
        width: 100%;
        padding: 6px 6px;
        gap: 4px;
        min-height: 44px;
    }

    /* Prevent theme scroll classes from affecting admin header on tiny phones */
    .admin-header.clone,
    .admin-header.smaller,
    .admin-header.nav-up {
        width: 100% !important;
        padding: 6px 6px !important;
        background: white !important;
        position: sticky !important;
        top: 0 !important;
        border: none !important;
        min-height: 44px !important;
    }

    .sidebar-toggle-mobile {
        min-width: 32px;
        min-height: 32px;
        padding: 6px;
        font-size: 16px;
    }

    .header-search {
        width: 80px;
        display: none;
    }

    .search-input {
        padding: 4px 4px 4px 22px;
        font-size: 10px;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 9px;
    }

    .admin-content {
        padding: 8px;
    }

    .section-header h2 {
        font-size: 14px;
    }

    .stats-grid {
        gap: 4px;
    }

    .stat-card {
        padding: 6px;
    }

    .stat-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .stat-value {
        font-size: 12px;
    }

    .stat-label {
        font-size: 8px;
    }
}

/* Extra Small (< 360px) */
@media (max-width: 359px) {
    :root {
        --sidebar-width: 55px;
    }

    .admin-sidebar {
        width: var(--sidebar-width);
    }

    .admin-main-content {
        margin-left: var(--sidebar-width);
    }

    .page-title {
        font-size: 14px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 8px;
    }

    .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .stat-value {
        font-size: 14px;
    }

    .admin-table {
        font-size: 10px;
    }

    .admin-table th,
    .admin-table td {
        padding: 6px 4px;
    }
}

/* ============ NOTIFICATIONS ============ */
.admin-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 9999;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.admin-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.admin-notification-success {
    background: #E8F5E9;
    color: #2E7D32;
    border-left: 4px solid var(--success);
}

.admin-notification-error {
    background: #FFEBEE;
    color: #C62828;
    border-left: 4px solid var(--danger);
}

.admin-notification-info {
    background: #E1F5FE;
    color: #01579B;
    border-left: 4px solid var(--info);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.notification-content i {
    font-size: 18px;
    flex-shrink: 0;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

/* Scrollbar for content area */
.admin-content::-webkit-scrollbar {
    width: 8px;
}

.admin-content::-webkit-scrollbar-track {
    background: transparent;
}

.admin-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.admin-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}
