/* Luxe Haven CSS Stylesheet - Premium Hotel Management Theme */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Accent teal for the new theme */
    --accent-teal: #20c997;
    --accent-teal-hover: #1eae86;
    --accent-teal-dark: #199c77;
    /* Replace gold with teal for consistency */
    --primary-gold: var(--accent-teal);
    --primary-gold-hover: var(--accent-teal-hover);
    --primary-gold-dark: var(--accent-teal-dark);
    /* Deep blue‑gray background palette */
    --bg-dark-900: #0a0c10;
    --bg-dark-800: #101217;
    --bg-dark-700: #1a1e24;
    --bg-dark-600: #2a2e36;
    --text-light: #ffffff;
    --text-muted: #d1d5db;
    /* Teal gradient for buttons and highlights */
    --gold-gradient: linear-gradient(135deg, #2dd4bf 0%, #20c997 50%, #1eae86 100%);
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
    --border-glass: rgba(255, 255, 255, 0.15);
}

body {
    background-color: var(--bg-dark-900);
    color: var(--text-light);
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
/* Global text color enforcement */
body {
    color: var(--text-light);
}
h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

.text-gold {
    color: var(--primary-gold) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Glassmorphism Card Style */
.glass-card {
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px -5px rgba(212, 175, 55, 0.15), var(--card-shadow);
}

/* Custom Buttons */
.btn-gold {
    background: var(--gold-gradient);
    color: #0b0f19 !important;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.5rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.btn-gold:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.btn-outline-gold {
    background: transparent;
    color: var(--primary-gold) !important;
    border: 1px solid var(--primary-gold);
    font-weight: 600;
    border-radius: 6px;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--primary-gold);
    color: #0b0f19 !important;
}

/* Glass Navigation Bar */
.navbar-custom {
    background: rgba(11, 15, 25, 0.85) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 0;
}

.navbar-brand-custom {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-gold) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.nav-link-custom {
    color: var(--text-light) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
}

.nav-link-custom:hover, .nav-link-custom.active {
    color: var(--primary-gold) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(11, 15, 25, 0.6) 0%, rgba(11, 15, 25, 0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Form Styles */
.form-control-custom {
    background: rgba(17, 24, 39, 0.6) !important;
    border: 1px solid var(--border-glass) !important;
    color: var(--text-light) !important;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}
.form-control-custom:focus {
    background: rgba(31, 41, 55, 0.8) !important;
    border-color: var(--primary-gold) !important;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25) !important;
}

select.form-control-custom {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2320c997' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    padding-right: 2rem !important;
    padding-left: 0.75rem !important;
}

.form-label-custom {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}
/* Table Design */
.table-custom {
    color: var(--text-light) !important;
}

.table-custom th {
    background-color: var(--bg-dark-800) !important;
    color: var(--primary-gold) !important;
    border-bottom: 2px solid var(--border-glass) !important;
    padding: 1rem;
}

.table-custom td {
    background-color: rgba(17, 24, 39, 0.4) !important;
    border-bottom: 1px solid var(--border-glass) !important;
    padding: 1rem;
    vertical-align: middle;
}

.table-custom tr:hover td {
    background-color: rgba(31, 41, 55, 0.5) !important;
}

/* Badges for status */
.badge-status-available {
    background-color: rgba(16, 185, 129, 0.15) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-status-occupied {
    background-color: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-status-maintenance {
    background-color: rgba(245, 158, 11, 0.15) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-status-dirty {
    background-color: rgba(107, 114, 128, 0.15) !important;
    color: #9ca3af !important;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Dashboard Sidebar & Analytics Styles */
.dashboard-container {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.dashboard-sidebar {
    background: var(--bg-dark-800);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-link i {
    margin-right: 10px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    color: var(--primary-gold);
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
    padding-left: 1.25rem;
}

/* Footer Section */
footer {
    background-color: var(--bg-dark-800);
    border-top: 1px solid var(--border-glass);
    padding: 2.5rem 0;
    margin-top: auto;
}

.footer-text {
    color: var(--text-light);
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.footer-heading {
    color: var(--primary-gold);
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.footer-contact-list li {
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.footer-contact-list li span {
    color: var(--text-light);
}

.footer-brand {
    color: var(--primary-gold);
}

.footer-divider {
    border-color: var(--border-glass);
}

.footer-bottom-text {
    color: var(--text-light);
}

.footer-version {
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer-social-icon {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-right: 0.75rem;
    transition: color 0.3s ease;
}

.footer-social-icon:hover {
    color: var(--primary-gold);
}

.footer-gold-accent {
    height: 4px;
    background: var(--gold-gradient);
}

/* Print Invoices styling */
@media print {
    body {
        background-color: #ffffff !important;
        color: var(--text-light) !important;
    }
    .no-print {
        display: none !important;
    }
    .print-invoice-card {
        border: 1px solid #ddd !important;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--text-light) !important;
        backdrop-filter: none !important;
    }
    .text-gold {
        color: var(--text-light) !important;
        font-weight: bold;
    }
    .table-custom th {
        background-color: #f1f1f1 !important;
        color: var(--text-light) !important;
        border-bottom: 2px solid #000000 !important;
    }
    .table-custom td {
        background-color: transparent !important;
        color: var(--text-light) !important;
        border-bottom: 1px solid #ddd !important;
    }

    /* Ensure text inside glass cards is readable */
    .glass-card .text-muted {
        color: var(--text-light) !important;
    }
}
.navbar-brand-custom {
    color: var(--text-light) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section { min-height: 60vh; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
  .glass-card { margin-bottom: 1rem; }
  .text-responsive { font-size: 1.5rem; }
}

@media (max-width: 576px) {
  .hero-section { min-height: 50vh; }
  .hero-content h1 { font-size: 1.75rem; }
  .hero-content p { font-size: 0.9rem; }
  .nav-link-custom { margin: 0 0.2rem; }
  .navbar-brand-custom { font-size: 1.2rem; }
  .text-responsive { font-size: 1.25rem; }
}

/* Ensure images are fluid */
img { max-width: 100%; height: auto; }

/* Responsive Utilities */
.text-responsive {
    font-size: clamp(1rem, 2.5vw, 2rem);
}

.container-fluid-max {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.btn-responsive {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

/* ------------------------------------------------------------------
   BREAKPOINTS (Bootstrap 5 default breakpoints + custom ultra-wide)
   ------------------------------------------------------------------ */
/* Mobile – 320‑767px */
@media (max-width: 767.98px) {
    .text-responsive {font-size: clamp(1rem, 4vw, 1.5rem);}
    /* Ensure containers are full‑width on mobile */
    .container,
    .container-fluid-max {
        max-width: 100% !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .hero-section {min-height: 70vh;}
    .glass-card {padding: 1rem;}
    .navbar-custom .navbar-brand {font-size: 1.25rem;}
    .btn-responsive {font-size: .875rem; padding: .5rem .75rem;}
    .table-responsive table {font-size: .75rem;}
}
/* Tablet – 768‑991px */
@media (min-width: 768px) and (max-width: 991.98px) {
    .text-responsive {font-size: clamp(1.125rem, 3vw, 1.75rem);}
    .hero-section {min-height: 80vh;}
    .glass-card {padding: 1.25rem;}
    .btn-responsive {font-size: .95rem;}
}
/* Small Laptop – 992‑1199px */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .text-responsive {font-size: clamp(1.25rem, 2.5vw, 2rem);}
    .hero-section {min-height: 85vh;}
    .glass-card {padding: 1.5rem;}
}
/* Large Laptop – 1200‑1439px */
@media (min-width: 1200px) and (max-width: 1439.98px) {
    .text-responsive {font-size: clamp(1.5rem, 2vw, 2.25rem);}
    .hero-section {min-height: 90vh;}
    .glass-card {padding: 1.75rem;}
}
/* Desktop – 1440‑1919px */
@media (min-width: 1440px) and (max-width: 1919.98px) {
    .text-responsive {font-size: clamp(1.75rem, 1.5vw, 2.5rem);}
    .hero-section {min-height: 95vh;}
    .glass-card {padding: 2rem;}
}
/* Ultra‑Wide – ≥1920px */
@media (min-width: 1920px) {
    .text-responsive {font-size: clamp(2rem, 1.25vw, 3rem);}
    .hero-section {min-height: 100vh;}
    .glass-card {padding: 2.5rem;}
    .container-fluid-max {max-width: 1920px;}
}

/* ------------------------------------------------------------------
   Metric cards – distinct accent backgrounds
   ------------------------------------------------------------------ */
.metric-card {
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-light) !important;
}
.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px -5px rgba(0,0,0,0.4);
}
.metric-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}
.metric-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
}
.metric-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    color: #0b0f19 !important;
}
.metric-card-active .metric-icon { background: var(--accent-teal) !important; }
.metric-card-checkin .metric-icon { background: var(--accent-teal-dark) !important; }
.metric-card-checkout .metric-icon { background: var(--accent-teal-hover) !important; }

/* Mobile Accommodation Slider */
@media (max-width: 767.98px) {
    .rooms-slider-mobile {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important; /* Fix first card negative offset overflow bug */
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        padding-bottom: 2rem !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .rooms-slider-mobile::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }
    
    .rooms-slider-mobile > div {
        flex: 0 0 85% !important;
        max-width: 85% !important;
        scroll-snap-align: center !important;
        margin-right: 1rem !important;
    }
    
    .rooms-slider-mobile > div:last-child {
        margin-right: 0 !important;
    }
}

