/* 
 * HotelBooking Pro 2.0 - Premium UI Styles
 * Enterprise-grade design with modern aesthetics
 */

/* ==================== CSS Variables ==================== */
:root {
    /* Primary Colors - Elegant Navy & Gold */
    --primary: #1a365d;
    --primary-light: #2d4a7c;
    --primary-dark: #0f2341;
    --accent: #d4a574;
    --accent-light: #e8c9a8;
    --accent-dark: #b8864a;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-gold: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    --gradient-dark: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ==================== Base Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--gray-50);
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

/* ==================== Typography ==================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.3;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

.text-muted {
    color: var(--gray-500) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-danger {
    color: var(--danger) !important;
}

/* ==================== Cards ==================== */
.card {
    background: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--gray-100);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    padding: 1rem 1.5rem;
}

/* Glass Card Effect */
.card-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==================== Buttons ==================== */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--gradient-gold);
    color: var(--gray-800);
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: var(--white);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

/* ==================== Forms ==================== */
.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.input-group-text {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    color: var(--gray-500);
}

/* Floating Labels */
.form-floating label {
    color: var(--gray-500);
}

.form-floating .form-control:focus~label {
    color: var(--primary);
}

/* ==================== Navigation ==================== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

.navbar-brand span {
    color: var(--accent);
}

.nav-link {
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* ==================== Sidebar ==================== */
.sidebar {
    background: var(--gradient-dark);
    width: 80px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: width 0.3s ease, box-shadow 0.3s ease;
    overflow-x: hidden;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
}

/* Professional scrollbar - collapsed (thin & subtle) */
.sidebar::-webkit-scrollbar {
    width: 3px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

/* Close button positioned outside expanded sidebar */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 10px;
    right: -42px;
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    background: #fef2f2;
    color: #7f1d1d;
    border: 1px solid #fecaca;
    cursor: pointer;
    font-size: 0.85rem;
    align-items: center;
    justify-content: center;
    z-index: 1060;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: var(--transition-fast);
}

.sidebar-close-btn:hover {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
    transform: scale(1.05);
}

.sidebar.expanded .sidebar-close-btn {
    display: flex;
}

/* Sidebar toggle button (hamburger in collapsed view) */
.sidebar-toggle-wrap {
    padding: 0.6rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--gray-400);
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

/* Sidebar logo - hidden in collapsed, shown in expanded */
.sidebar-logo {
    padding: 0;
    border-bottom: none;
    text-align: center;
    display: none;
}

.sidebar-logo h4 {
    color: var(--white);
    margin: 0;
    font-size: 1.3rem;
}

.sidebar-logo span {
    color: var(--accent);
}

.sidebar-subtitle {
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
}

/* Hide text labels in collapsed state */
.sidebar .sidebar-logo .menu-text,
.sidebar .sidebar-subtitle,
.sidebar .sidebar-footer .menu-text {
    display: none;
}

/* Sidebar menu */
.sidebar-menu {
    padding: 0.25rem 0;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* Scrollbar for sidebar-menu inner scroll */
.sidebar-menu::-webkit-scrollbar {
    width: 3px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar-menu {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

/* Collapsed: icon + small label stacked */
.sidebar-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.5rem 0.25rem;
    color: var(--gray-400);
    font-weight: 500;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
    text-align: center;
    text-decoration: none;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--accent);
}

.sidebar-menu a i {
    font-size: 1.15rem;
    width: auto;
    flex-shrink: 0;
}

.sidebar-menu a .menu-text {
    font-size: 0.65rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 72px;
    display: block;
    letter-spacing: 0.01em;
}

/* Collapsed: show short label, hide full label */
.sidebar .menu-expanded { display: none; }
.sidebar .menu-collapsed { display: inline; }

/* Sidebar footer - collapsed */
.sidebar-footer {
    margin-top: auto;
    padding: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.4rem 0.25rem;
    color: var(--gray-400);
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.sidebar-footer a:hover {
    color: var(--white);
}

.sidebar-footer a.text-danger {
    color: var(--danger);
}

.sidebar-footer a.text-danger:hover {
    color: #ff6b6b;
}

/* ==================== Sidebar Expanded (Modal/Overlay) ==================== */
.sidebar.expanded {
    width: 260px;
    z-index: 1050;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.4);
    overflow: visible;
}

/* Hide hamburger in expanded mode */
.sidebar.expanded .sidebar-toggle-wrap {
    display: none;
}

/* Show logo in expanded mode */
.sidebar.expanded .sidebar-logo {
    display: block;
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar.expanded .sidebar-logo .menu-text,
.sidebar.expanded .sidebar-subtitle,
.sidebar.expanded .sidebar-footer .menu-text {
    display: inline;
}

.sidebar.expanded .sidebar-subtitle {
    display: block;
}

/* Expanded: scrollable menu area */
.sidebar.expanded .sidebar-menu {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Expanded scrollbar - slightly wider */
.sidebar.expanded .sidebar-menu::-webkit-scrollbar {
    width: 5px;
}

.sidebar.expanded .sidebar-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.sidebar.expanded .sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.sidebar.expanded .sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.sidebar.expanded .sidebar-menu {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Expanded: icon + text in a row */
.sidebar.expanded .sidebar-menu a {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    text-align: left;
}

.sidebar.expanded .sidebar-menu a i {
    font-size: 1.25rem;
    width: 24px;
}

.sidebar.expanded .sidebar-menu a .menu-text {
    font-size: 0.875rem;
    max-width: none;
    white-space: normal;
    overflow: visible;
}

/* Expanded: show full label, hide short label */
.sidebar.expanded .menu-expanded { display: inline; }
.sidebar.expanded .menu-collapsed { display: none; }

/* Expanded: footer */
.sidebar.expanded .sidebar-footer {
    padding: 0.75rem 1.5rem;
}

.sidebar.expanded .sidebar-footer a {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.85rem;
}

/* Main content - offset by collapsed sidebar width */
.main-content {
    margin-left: 80px;
    padding: 2rem;
    min-height: 100vh;
}

/* ==================== Stats Cards ==================== */
.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-200);
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.stat-card:hover .stat-icon {
    transform: scale(1.15);
}

.stat-card:hover .stat-icon.primary { background: rgba(26, 54, 93, 0.18); }
.stat-card:hover .stat-icon.success { background: rgba(16, 185, 129, 0.18); }
.stat-card:hover .stat-icon.warning { background: rgba(245, 158, 11, 0.18); }
.stat-card:hover .stat-icon.danger { background: rgba(239, 68, 68, 0.18); }
.stat-card:hover .stat-icon.accent { background: rgba(212, 165, 116, 0.18); }

.stat-icon.primary {
    background: rgba(26, 54, 93, 0.1);
    color: var(--primary);
}

.stat-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.stat-icon.accent {
    background: rgba(212, 165, 116, 0.1);
    color: var(--accent-dark);
}

.stat-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.15rem;
    font-weight: 700;
}

.stat-content span {
    color: var(--gray-500);
    font-size: 0.8rem;
    letter-spacing: 0.01em;
}

/* ==================== Tables ==================== */
.table-wrap {
    overflow-x: auto;
}
.table {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table thead th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
}

.table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

/* ==================== Badges ==================== */
.badge {
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.badge-primary {
    background: rgba(26, 54, 93, 0.1);
    color: var(--primary);
}

.badge-secondary {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.badge-dark {
    background: rgba(52, 58, 64, 0.15);
    color: #343a40;
}

/* ==================== Room Cards ==================== */
.room-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.room-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.room-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
}

.room-card-body {
    padding: 1.5rem;
}

.room-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.room-card-amenities {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.room-card-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.room-card-price strong {
    font-size: 1.5rem;
    color: var(--primary);
}

.room-card-price span {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ==================== Hero Section ==================== */
.hero {
    background: var(--gradient-dark);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-pattern.svg') repeat;
    opacity: 0.05;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-300);
    max-width: 600px;
}

/* ==================== Booking Widget ==================== */
.booking-widget {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.booking-widget .form-group {
    margin-bottom: 0;
}

/* ==================== Alerts ==================== */
.alert {
    border: none;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

/* ==================== Loader ==================== */
.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== Avatar ==================== */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-lg {
    width: 64px;
    height: 64px;
}

.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-placeholder {
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* ==================== Responsive ==================== */
@media (max-width: 991.98px) {
    .sidebar {
        width: 260px;
        transform: translateX(-100%);
        overflow: visible;
    }

    .sidebar.show {
        transform: translateX(0);
        z-index: 1050;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.4);
    }

    .sidebar.show .sidebar-close-btn {
        display: flex;
    }

    /* On mobile, show sidebar always as expanded layout */
    .sidebar.show .sidebar-toggle-wrap {
        display: none;
    }

    .sidebar.show .sidebar-logo {
        display: block;
        padding: 1.25rem 1.5rem;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar.show .sidebar-logo .menu-text,
    .sidebar.show .sidebar-subtitle,
    .sidebar.show .sidebar-footer .menu-text {
        display: inline;
    }

    .sidebar.show .sidebar-subtitle {
        display: block;
    }

    .sidebar.show .sidebar-menu a {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        padding: 0.875rem 1.5rem;
        text-align: left;
    }

    .sidebar.show .sidebar-menu a i {
        width: 24px;
    }

    .sidebar.show .sidebar-menu a .menu-text {
        font-size: 0.875rem;
        max-width: none;
    }

    /* Mobile expanded: show full label, hide short label */
    .sidebar.show .menu-expanded { display: inline; }
    .sidebar.show .menu-collapsed { display: none; }

    .sidebar.show .sidebar-footer {
        padding: 0.75rem 1.5rem;
    }

    .sidebar.show .sidebar-footer a {
        flex-direction: row;
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .main-content {
        margin-left: 0;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .booking-widget {
        padding: 1.5rem;
    }

    .card-body {
        padding: 1rem;
    }

    .table thead th,
    .table tbody td {
        padding: 0.75rem;
    }

    /* Public pages mobile polish */
    .navbar .btn-sm {
        padding: 0.3rem 0.7rem;
        font-size: 0.78rem;
    }
    footer.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    footer h5, footer h6 {
        font-size: 0.95rem;
    }
}

@media (max-width: 575.98px) {
    /* Global extra-small screen adjustments */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.15rem; }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .card {
        border-radius: var(--radius) !important;
    }

    .card-body {
        padding: 0.875rem !important;
    }

    .table {
        font-size: 0.8rem;
    }

    .table thead th,
    .table tbody td {
        padding: 0.5rem;
    }

    /* Navbar mobile tightening */
    .navbar-brand img {
        max-height: 32px !important;
    }

    .navbar .d-flex.gap-2 {
        gap: 0.35rem !important;
    }

    /* Footer mobile */
    footer .row.g-4 {
        --bs-gutter-y: 1rem;
    }
    footer p, footer li {
        font-size: 0.85rem;
    }
    footer .d-flex.gap-3 a {
        font-size: 0.75rem !important;
    }
}

/* ==================== Utilities ==================== */
.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

.rounded-2xl {
    border-radius: var(--radius-2xl);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-xl {
    box-shadow: var(--shadow-xl);
}

.bg-primary {
    background: var(--primary) !important;
}

/* Fix Bootstrap bg-opacity-* utilities that are broken by the !important override above.
   Without this, bg-primary + bg-opacity-10 renders as solid dark navy with invisible text. */
.bg-primary.bg-opacity-10 {
    background: rgba(26, 54, 93, 0.1) !important;
}

.bg-primary.bg-opacity-25 {
    background: rgba(26, 54, 93, 0.25) !important;
}

.bg-primary.bg-opacity-50 {
    background: rgba(26, 54, 93, 0.5) !important;
    color: #fff;
}

.bg-primary.bg-opacity-75 {
    background: rgba(26, 54, 93, 0.75) !important;
    color: #fff;
}

/* Ensure text-muted remains readable inside light-tinted cards */
.bg-primary.bg-opacity-10 .text-muted {
    color: var(--gray-600) !important;
}

.bg-accent {
    background: var(--accent) !important;
}

.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-dark {
    background: var(--gradient-dark) !important;
}

/* ==================== Dark Background Contrast Fix ==================== */
/* Force white/light text on all dark-background containers so headings,
   paragraphs, labels, and links remain readable.                        */
.bg-primary,
.bg-gradient-primary,
.bg-dark,
.bg-gradient-dark {
    color: #fff;
}

.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6,
.bg-gradient-primary h1,
.bg-gradient-primary h2,
.bg-gradient-primary h3,
.bg-gradient-primary h4,
.bg-gradient-primary h5,
.bg-gradient-primary h6,
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6,
.bg-gradient-dark h1,
.bg-gradient-dark h2,
.bg-gradient-dark h3,
.bg-gradient-dark h4,
.bg-gradient-dark h5,
.bg-gradient-dark h6 {
    color: #fff;
}

.bg-primary p,
.bg-primary span,
.bg-primary label,
.bg-primary li,
.bg-gradient-primary p,
.bg-gradient-primary span,
.bg-gradient-primary label,
.bg-gradient-primary li,
.bg-dark p,
.bg-dark span,
.bg-dark label,
.bg-dark li,
.bg-gradient-dark p,
.bg-gradient-dark span,
.bg-gradient-dark label,
.bg-gradient-dark li {
    color: rgba(255, 255, 255, 0.9);
}

.bg-primary a,
.bg-gradient-primary a,
.bg-dark a,
.bg-gradient-dark a {
    color: var(--accent-light);
}

.bg-primary a:hover,
.bg-gradient-primary a:hover,
.bg-dark a:hover,
.bg-gradient-dark a:hover {
    color: #fff;
}

.bg-primary .text-muted,
.bg-gradient-primary .text-muted,
.bg-dark .text-muted,
.bg-gradient-dark .text-muted {
    color: rgba(255, 255, 255, 0.65) !important;
}

.bg-primary .text-white-50,
.bg-gradient-primary .text-white-50,
.bg-dark .text-white-50,
.bg-gradient-dark .text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Ensure icons inside dark backgrounds are visible */
.bg-primary i,
.bg-gradient-primary i,
.bg-dark i,
.bg-gradient-dark i {
    color: rgba(255, 255, 255, 0.9);
}

/* Don't override text color inside nested light-background card bodies */
.bg-primary .card>.card-body,
.bg-gradient-primary .card>.card-body,
.bg-dark .card>.card-body,
.bg-gradient-dark .card>.card-body,
.bg-primary .card>.card-footer,
.bg-gradient-primary .card>.card-footer,
.bg-dark .card>.card-footer,
.bg-gradient-dark .card>.card-footer {
    color: var(--gray-700);
}

.bg-primary .card>.card-body h1,
.bg-primary .card>.card-body h2,
.bg-primary .card>.card-body h3,
.bg-primary .card>.card-body h4,
.bg-primary .card>.card-body h5,
.bg-primary .card>.card-body h6,
.bg-gradient-primary .card>.card-body h1,
.bg-gradient-primary .card>.card-body h2,
.bg-gradient-primary .card>.card-body h3,
.bg-gradient-primary .card>.card-body h4,
.bg-gradient-primary .card>.card-body h5,
.bg-gradient-primary .card>.card-body h6 {
    color: var(--gray-800);
}

/* Card-header with bg-primary INSIDE a card should keep white text */
.card>.card-header.bg-primary,
.card>.card-header.bg-primary h1,
.card>.card-header.bg-primary h2,
.card>.card-header.bg-primary h3,
.card>.card-header.bg-primary h4,
.card>.card-header.bg-primary h5,
.card>.card-header.bg-primary h6,
.card>.card-header.bg-primary i {
    color: #fff !important;
}

/* ==================== Animation ==================== */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-3px);
}

/* ==================== Footer ==================== */
footer.bg-gradient-dark {
    background: var(--gradient-dark) !important;
}

footer .text-gray-400,
footer .text-gray-400 a,
footer a.text-gray-400 {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer a.text-gray-400:hover {
    color: var(--white) !important;
}

footer h5,
footer h6 {
    color: var(--white);
}

footer .text-accent {
    color: var(--accent) !important;
}

footer ul.list-unstyled li {
    color: rgba(255, 255, 255, 0.7);
}

footer .btn-icon.btn-light {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

footer .btn-icon.btn-light:hover {
    background: rgba(255, 255, 255, 0.2);
}

footer .btn-accent {
    background: var(--accent);
    color: var(--gray-900);
}

footer .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

footer .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

footer .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
    color: var(--white);
}