/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Nunito:wght@400;600;700;800&display=swap');

/* Basic Resets & Variables */
:root {
    /* Refined Modern Theme */
    --primary: #1B2B48;       /* Premium Dark Navy */
    --primary-gradient: linear-gradient(180deg, #2B3674 0%, #1B2B48 100%);
    --secondary: #2B3674;     /* Deep Navy */
    --accent: #F38120;        /* Primary Accent / Action Orange */
    --accent-soft: #D98A62;   /* Informational Coral */
    --canvas: #FBF9F6;        /* Dashboard Background */
    --surface: #FFFFFF;       /* Pure White Surface */
    --text-main: #2B3674;     /* Text Primary (Navy) */
    --text-muted: #8F9BBA;    /* Muted Text */
    --text-muted-strong: #727C95; /* Muted Text (Stronger) */
    
    /* Legacy Mapping (synchronized with new palette) */
    --forest: var(--secondary);
    --moss: var(--primary);
    --terracotta: var(--accent-soft);
    --burnt: #C7774C;
    --linen: #DCE4EF;         /* Light slate for borders */
    --warmwhite: var(--surface);
    --espresso: var(--text-main);
    --olive: var(--text-muted);
    
    /* Sidebar Tokens */
    --sidebar-bg-top: #2C3E50;
    --sidebar-bg-bottom: #1E293B;
    --sidebar-text: #FFFFFF;
    --sidebar-text-muted: #E0E7FF;
    --sidebar-active-bg: rgba(255, 255, 255, 0.2);
    --sidebar-hover-bg: rgba(255, 255, 255, 0.1);
    --primary-accent: #F38120;
    --sidebar-border: rgba(255, 255, 255, 0.08);
    
    --maize: #FFD166;
    --heading-dark: var(--secondary);
    --status-paid: #6B9E88;
    --status-dp: #C9A273;
    --status-pending: #B38253;
    --status-pending-bg: rgba(201, 162, 115, 0.15);
    --status-confirmed: #4F8C78;
    --status-confirmed-bg: rgba(79, 140, 120, 0.15);
    --status-checked-in: #0e7b6b;
    --status-checked-in-bg: #e0f7f4;
    --status-cancelled: #B06B6B;
    --status-cancelled-bg: rgba(176, 107, 107, 0.15);
    --status-completed: #2B3674;
    --status-completed-bg: rgba(43, 54, 116, 0.12);
    
    --heading-font: 'Nunito', sans-serif;
    --body-font: 'Inter', sans-serif;
    
    /* Modernism Tokens */
    --shadow-sm: 0 2px 4px rgba(163, 174, 208, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(163, 174, 208, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(163, 174, 208, 0.3);
    --radius-lg: 16px;
    --radius-xl: 24px;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --danger: #e53e3e;

    /* Responsive Transitions */
    --transition-speed: 0.4s;
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 70px;
}

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

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    max-width: 100vw;
}

body {
    overflow-x: hidden; /* Only on body to preserve sticky */
}

body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

body {
    background-color: var(--canvas);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    margin: 0;
    font-family: var(--body-font);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--heading-font);
    letter-spacing: 0.02em;
    color: var(--heading-dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

[x-cloak] {
    display: none !important;
}

/* Buttons */
.btn {
    border-radius: 16px;
    padding: 14px 28px;
    font-weight: 700;
    font-family: var(--heading-font);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(243, 129, 32, 0.3);
}

.btn-primary:hover {
    background-color: #E27310;
}

.btn-accent {
    background-color: var(--primary);
    color: #fff;
}

.btn-accent:hover {
    background-color: #121E32;
}

.btn-terracotta {
    background-color: var(--accent);
    color: #fff;
    border: none;
}

.btn-terracotta:hover {
    background-color: #E27310;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 50;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    box-shadow: var(--shadow-sm);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--forest);
    font-family: var(--heading-font);
}

.nav-brand svg {
    width: 24px;
    height: 24px;
    color: var(--moss);
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-weight: 600;
    font-family: var(--heading-font);
    color: var(--moss);
}

.nav-links a:hover {
    color: var(--forest);
}

/* Base Form Inputs */
.form-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    background-color: #fff;
    font-family: var(--body-font);
    color: var(--text-main);
    transition: all 0.2s ease;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(217, 119, 87, 0.1);
}

.form-group label {
    display: block;
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.6rem;
    font-size: 0.875rem;
}

.form-label-minimal {
    color: var(--text-muted-strong);
}

/* Sections */
.section {
    padding: 6rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 12rem;
    background-color: var(--forest);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 98, 102, 0.75), rgba(255, 112, 0, 0.25));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--warmwhite);
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(245, 240, 232, 0.9);
    margin-bottom: 3rem;
}

/* Availability Checker */
.availability-checker {
    position: absolute;
    bottom: -4rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--warmwhite);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 90%;
    max-width: 1000px;
    border-top: 4px solid var(--terracotta);
    z-index: 20;
    align-items: end;
}

/* Highlights Grid */
.highlights-strip {
    background-color: var(--warmwhite);
    padding: 8rem 3rem 4rem;
}
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.highlight-card {
    background-color: var(--linen);
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.2s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.highlight-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.highlight-icon svg { width: 32px; height: 32px; }
.icon-moss { background-color: rgba(45, 106, 79, 0.2); color: var(--moss); }
.icon-terracotta { background-color: rgba(197, 160, 89, 0.2); color: var(--terracotta); }
.icon-burnt { background-color: rgba(176, 139, 73, 0.2); color: var(--burnt); }
.icon-forest { background-color: rgba(27, 67, 50, 0.2); color: var(--forest); }

.highlight-card h4 { font-size: 1.125rem; color: var(--espresso); margin-bottom: 0.5rem; }
.highlight-card p { font-size: 0.875rem; color: var(--olive); }

/* Accommodations */
.section-accommodations {
    background-color: var(--linen);
    padding: 6rem 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--forest);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--olive);
    max-width: 600px;
    margin: 0 auto;
}

.accommodations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.accommodations-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(59, 47, 47, 0.03);
    border: 1px solid rgba(59, 47, 47, 0.05);
    display: flex;
    flex-direction: column;
}

.acc-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.acc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.accommodations-card:hover .acc-image img {
    transform: scale(1.05);
}

.acc-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(250, 250, 247, 0.9);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--forest);
    font-family: var(--heading-font);
}

.acc-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.acc-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.acc-desc {
    color: var(--olive);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.acc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--linen);
    padding-top: 1rem;
}

.acc-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--terracotta);
    font-family: var(--heading-font);
}

.acc-price span {
    font-size: 0.875rem;
    color: var(--olive);
    font-weight: 400;
    font-family: var(--body-font);
}

/* Inclusions & Booking Ways */
.section-inclusions {
    padding: 6rem 3rem;
    background-color: var(--warmwhite);
}

.inclusions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.booking-types {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.booking-types h3 {
    font-size: 1.5rem; color: var(--forest); margin-bottom: 0.5rem;
}

.type-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    border-left: 8px solid;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.type-single { border-left-color: var(--moss); }
.type-exclusive { border-left-color: var(--terracotta); }

.type-card h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.type-card p { color: var(--olive); margin-bottom: 1rem; font-size: 0.9rem; }
.pill {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}
.pill-currency {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}
.pill-money {
    background-color: rgba(43, 54, 116, 0.12);
    color: var(--secondary);
    border: 1px solid rgba(43, 54, 116, 0.18);
    font-weight: 700;
}
.pill-moss { background-color: rgba(45, 106, 79, 0.1); color: var(--moss); }
.pill-terracotta { background-color: rgba(217, 138, 98, 0.18); color: var(--accent-soft); }

.pill-paid { background-color: rgba(107, 158, 136, 0.16); color: var(--status-paid); }
.pill-dp { background-color: rgba(201, 162, 115, 0.2); color: var(--status-dp); }
.pill-confirmed { background-color: #E8F5E9; color: #4F8C78; border: 1px solid rgba(79, 140, 120, 0.15); }
.pill-checked_in { background-color: #e0f7f4; color: #0e7b6b; border: 1px solid rgba(14, 123, 107, 0.15); }
.pill-pending { background-color: #FFF8E1; color: #B38253; border: 1px solid rgba(179, 130, 83, 0.15); }
.pill-completed { background-color: var(--primary); color: #FFFFFF; }
.pill-cancelled { background-color: var(--status-cancelled-bg); color: var(--status-cancelled); }
.pill-espresso { background-color: rgba(176, 107, 107, 0.18); color: var(--status-cancelled); }


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

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

.money-amount {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.badge-tonal {
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.badge-booking-exclusive {
    background: rgba(108, 121, 173, 0.12);
    color: #6674AF;
    border-color: rgba(102, 116, 175, 0.2);
}

.badge-booking-unit {
    background: rgba(119, 168, 206, 0.12);
    color: #5C86AD;
    border-color: rgba(92, 134, 173, 0.2);
}

.badge-daytour {
    background: rgba(217, 197, 165, 0.18);
    color: #A47A4F;
    border-color: rgba(164, 122, 79, 0.2);
}

.badge-overnight {
    background: rgba(170, 195, 220, 0.18);
    color: #5A7FA2;
    border-color: rgba(90, 127, 162, 0.2);
}

.badge-status {
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* Primary Utility Override */
.bg-primary {
    background-color: var(--primary) !important;
}

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

.bg-primary-subtle {
    background-color: rgba(27, 43, 72, 0.1) !important;
    color: var(--primary) !important;
}

.badge-status-confirmed {
    background: var(--status-confirmed-bg);
    color: var(--status-confirmed);
    border-color: rgba(79, 140, 120, 0.28);
}

.badge-status-checked-in {
    background: var(--status-checked-in-bg);
    color: var(--status-checked-in);
    border-color: rgba(14, 123, 107, 0.28);
}

.badge-status-pending {
    background: var(--status-pending-bg);
    color: #B38253;
    border-color: rgba(179, 130, 83, 0.28);
}

.badge-status-cancelled {
    background: var(--status-cancelled-bg);
    color: var(--status-cancelled);
    border-color: rgba(176, 107, 107, 0.28);
}

.badge-status-completed {
    background: var(--status-completed-bg);
    color: var(--status-completed);
    border-color: rgba(43, 54, 116, 0.25);
}

.inclusions-box {
    background-color: var(--linen);
    border-radius: 24px;
    padding: 2.5rem;
}
.inclusions-box h3 {
    font-size: 1.5rem;
    color: var(--forest);
    margin-bottom: 1.5rem;
}
.inclusion-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.inclusion-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.inclusion-icon {
    background-color: rgba(74, 124, 89, 0.2);
    color: var(--moss);
    padding: 0.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}
.inclusion-icon svg { width: 20px; height: 20px; }
.inclusion-text h4 { font-size: 1rem; color: var(--espresso); margin-bottom: 0.25rem; }
.inclusion-text p { font-size: 0.875rem; color: var(--olive); }

/* Booking Form */
.section-booking {
    background-color: var(--forest);
    color: var(--warmwhite);
    padding: 6rem 3rem;
    position: relative;
    overflow: hidden;
}

.booking-decor {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    color: var(--moss);
    opacity: 0.2;
    transform: translate(50%, -50%);
}

.booking-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}
.booking-header h2 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--warmwhite); }
.booking-header p { color: rgba(245, 240, 232, 0.8); font-size: 1.125rem; }

.booking-form-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--espresso);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    position: relative;
    z-index: 10;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.form-submit {
    width: 100%;
    font-size: 1.125rem;
    padding: 1rem;
    margin-top: 1rem;
}
.form-note {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(245, 240, 232, 0.7);
    margin-top: 1.5rem;
    font-style: italic;
    position: relative;
    z-index: 10;
}

/* Footer */
.footer {
    background-color: #001A1A;
    color: var(--warmwhite);
    padding: 4rem 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-brand svg { width: 32px; height: 32px; color: var(--terracotta); }
.footer-text { color: rgba(245, 240, 232, 0.7); margin-bottom: 1.5rem; font-size: 0.95rem; line-height: 1.5; max-width: 300px; }

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.9);
}
.contact-info svg { width: 20px; height: 20px; color: var(--terracotta); }

.footer-links h4 {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    font-family: var(--heading-font);
}
.footer-links a {
    display: block;
    color: rgba(245, 240, 232, 0.7);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}
.footer-links a:hover { color: var(--warmwhite); }
.highlight-link {
    color: var(--terracotta) !important;
    border-bottom: 1px solid var(--terracotta);
    display: inline-block;
    padding-bottom: 2px;
}

.footer-map {
    height: 150px;
    background-color: rgba(74, 124, 89, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--moss);
    font-size: 0.875rem;
    color: rgba(245, 240, 232, 0.5);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(74, 124, 89, 0.5);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: rgba(245, 240, 232, 0.5);
}
.footer-bottom-links { display: flex; gap: 1rem; }
.footer-bottom-links a:hover { color: var(--warmwhite); }

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive basics */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .navbar { padding: 1rem; }
    .nav-links { display: none; }
    .hero-title { font-size: 2.5rem; }
    .availability-checker {
        grid-template-columns: 1fr;
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 3rem;
        width: 100%;
    }
    .highlights-grid { grid-template-columns: 1fr; }
    .accommodations-grid { grid-template-columns: 1fr; }
    .inclusions-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .section, .section-accommodations, .section-inclusions, .section-booking {
        padding: 4rem 1rem;
    }
    .highlights-strip {
        padding: 4rem 1rem 2rem;
    }
}

/* ----------------------------------
   Dashboard Layout & Components
   ---------------------------------- */

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, rgba(44, 62, 80, 0.92) 0%, rgba(30, 41, 59, 0.92) 100%);
    background-color: var(--sidebar-bg-bottom);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    box-shadow: 10px 0 40px rgba(30, 41, 59, 0.25);
    border-right: 1px solid var(--sidebar-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: width var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1), 
                left var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
                transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sidebar::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("../images/sky-sunset.jpeg");
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
}

.sidebar::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

.sidebar > * { position: relative; z-index: 2; }

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.5rem 0.75rem;
}

.sidebar-brand-logo {
    width: 128px;
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.25));
}


.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    white-space: nowrap;
}

.sidebar-toggle {
    cursor: pointer;
    color: var(--sidebar-text-muted);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px;
    border-radius: 8px;
    position: relative;
    z-index: 10;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.sidebar-nav {
    flex-grow: 1;
    padding: 1.5rem 0.75rem;
    overflow-y: auto;
    scrollbar-width: none;
}

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

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem; /* Increased for better touch targets (approx 44px total height) */
    color: var(--sidebar-text-muted);
    text-decoration: none;
    font-family: var(--body-font);
    font-weight: 400;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin: 0.2rem 0.75rem;
    border-radius: 12px;
    white-space: nowrap;
    min-height: 44px; /* Native feel touch target */
}

.nav-item:hover {
    color: #fff;
    background-color: var(--sidebar-hover-bg);
}

.nav-item svg {
    color: #fff;
    opacity: 0.7;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.nav-item:hover svg,
.nav-item.active svg {
    opacity: 1;
    transform: scale(1.1);
}

.nav-item.active {
    color: #fff;
    background: var(--sidebar-active-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-section {
    padding: 1.5rem 1.25rem 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.sidebar-user {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.user-avatar {
    width: 38px;
    height: 38px;
    background: #fff;
    color: #3677E0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.user-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    white-space: nowrap;
}

.user-role {
    font-size: 0.75rem;
    color: var(--sidebar-text-muted);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

.logout-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary-accent);
    color: #fff;
    padding: 0.85rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
    min-height: 44px;
}

/* Sidebar Collapsed State */
.sidebar.collapsed { width: var(--sidebar-collapsed-width); }
.sidebar.collapsed .sidebar-brand {
    padding: 0.85rem 0.5rem;
}
.sidebar.collapsed .sidebar-brand-logo {
    width: 38px;
}
.sidebar.collapsed .sidebar-logo-text,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-section,
.sidebar.collapsed .user-info,
.sidebar.collapsed .logout-text {
    display: none;
}

.sidebar.collapsed .user-profile {
    flex-direction: column;
    gap: 0.8rem;
    padding: 0;
    align-items: center;
}

.sidebar.collapsed .sidebar-user {
    padding: 1.5rem 0.5rem;
    display: flex;
    justify-content: center;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0.85rem 0;
    margin: 0.2rem 0.5rem;
    gap: 0;
}

.sidebar.collapsed .sidebar-toggle { 
    transform: rotate(180deg);
    padding: 8px;
}

.sidebar.collapsed .sidebar-footer {
    padding: 1rem 0.5rem;
}

.sidebar.collapsed .logout-link {
    padding: 0.85rem 0;
    gap: 0;
    justify-content: center;
}

.main-wrapper {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: calc(100% - var(--sidebar-width));
    transition: margin-left var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
                width var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.main-wrapper.expanded {
    margin-left: var(--sidebar-collapsed-width);
    width: calc(100% - var(--sidebar-collapsed-width));
}

/* Dashboard Mobile Styles Override */
@media (max-width: 1024px) {
    .sidebar {
        left: 0 !important;
        width: 240px !important;
        transform: translateX(-100%);
        z-index: 1100 !important;
    }

    .sidebar.mobile-open {
        transform: translateX(0) !important;
    }

    .sidebar-toggle {
        display: none !important;
    }

    /* Ensure labels and info are visible in mobile drawer */
    .sidebar.mobile-open .nav-label,
    .sidebar.mobile-open .nav-section,
    .sidebar.mobile-open .user-info,
    .sidebar.mobile-open .logout-text,
    .sidebar.mobile-open .sidebar-logo-text {
        display: block !important;
        opacity: 1 !important;
        width: auto !important;
    }
    
    .sidebar.mobile-open .nav-item {
        justify-content: flex-start !important;
        padding: 0.6rem 1rem !important;
        margin: 0.15rem 0.5rem !important;
        gap: 0.75rem !important;
        transform: none !important;
    }

    .sidebar.mobile-open .user-profile {
        flex-direction: row !important;
        gap: 1rem !important;
        justify-content: flex-start !important;
    }

    .sidebar-user {
        padding: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .sidebar-footer {
        padding: 1rem !important;
    }

    .main-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .topbar {
        padding: 0 1rem !important;
        height: 60px !important;
        min-height: 60px !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        width: 100% !important;
        left: 0 !important;
    }

    .topbar-search-container {
        display: none;
    }

    .mobile-toggle {
        display: flex !important;
    }

    .topbar-toggle {
        display: none !important;
    }

    .page-header {
        padding: 1rem !important;
    }

    .page-title {
        font-size: 1.35rem;
    }

    .content-body {
        padding: 0 1rem 1.5rem !important;
        max-width: none !important; 
    }

    .stat-grid {
        grid-template-columns: 1fr !important;
    }

    .premium-card {
        padding: 0.85rem !important; /* Reclaimed 16px of horizontal space */
    }

    /* Table Responsiveness - Card View for Mobile */
    .table-responsive, .dataTable-wrapper {
        width: 100%;
        margin-bottom: 1rem;
    }

    .table-responsive table, .table-responsive thead, .table-responsive tbody, .table-responsive th, .table-responsive td, .table-responsive tr,
    .dataTable, .dataTable thead, .dataTable tbody, .dataTable th, .dataTable td, .dataTable tr {
        display: block;
        width: 100%;
    }

    .table-responsive thead tr, .dataTable thead tr {
        display: none;
    }

    .table-responsive tr, .dataTable tr {
        border: 1px solid var(--linen);
        border-radius: 12px;
        margin-bottom: 1rem;
        background: #fff;
        padding: 0.5rem;
    }

    .table-responsive td, .dataTable td {
        border: none !important;
        border-bottom: 1px dashed var(--linen) !important;
        position: relative;
        padding-left: 45% !important;
        text-align: right !important;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        min-height: 2.5rem;
        flex-wrap: wrap;
    }

    .table-responsive td:last-child, .dataTable td:last-child {
        border-bottom: 0 !important;
    }

    .table-responsive td::before, .dataTable td::before {
        content: attr(data-label);
        position: absolute;
        left: 0.5rem;
        width: 40%;
        text-align: left;
        font-weight: 700;
        color: var(--olive);
        font-size: 0.75rem;
        text-transform: uppercase;
        display: block;
    }

    /* Auth Mobile */
    .auth-form-card {
        padding: 2rem 1.5rem;
    }

    .auth-hero {
        display: none;
    }
}

/* ----------------------------------
   Dashboard UI Components 
   ---------------------------------- */

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1050;
    animation: fadeIn 0.3s ease;
}

.sidebar-backdrop.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    color: var(--primary);
    padding: 8px;
    border-radius: 10px;
    background: rgba(54, 119, 224, 0.05);
    align-items: center;
    justify-content: center;
}

.topbar {
    height: 60px;
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(43, 54, 116, 0.12);
    background: #fff;
    color: var(--secondary);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(31, 42, 90, 0.08);
    transition: all 0.2s ease;
}

.topbar-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(31, 42, 90, 0.12);
}

.topbar-user {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.topbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(31, 42, 90, 0.12);
    border: 1px solid rgba(43, 54, 116, 0.12);
}

.page-header {
    padding: 1rem 1.5rem;
}

.page-title {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--espresso);
    margin: 0;
}

.content-body {
    padding: 0 1.5rem 1.25rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.15rem;
    border-radius: 20px;
    border: 1px solid rgba(54, 119, 224, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(54, 119, 224, 0.08);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0; /* Flexbox overflow fix */
    z-index: 1;
}

@media (max-width: 768px) {
    .stat-card, .premium-card {
        padding: 1rem !important;
    }
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(54, 119, 224, 0.12);
    border-color: var(--primary);
}

.premium-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(54, 119, 224, 0.08);
    box-shadow: 0 10px 40px rgba(54, 119, 224, 0.06);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0; /* Flexbox overflow fix */
}

.premium-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(54, 119, 224, 0.1);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-family: var(--heading-font);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
}

/* Stat Card Tonal Accents */
.stat-card-teal {
    background: #F0F7F4 !important;
    border: 1px solid rgba(79, 140, 120, 0.15) !important;
}
.stat-card-teal .stat-label { color: #4F8C78; }
.stat-card-teal .stat-value { color: #2D5A4C; }

.stat-card-coral {
    background: #FFF5F2 !important;
    border: 1px solid rgba(217, 138, 98, 0.15) !important;
}
.stat-card-coral .stat-label { color: #D98A62; }
.stat-card-coral .stat-value { color: #8B4D2E; }

.stat-card-slate {
    background: #F4F7FB !important;
    border: 1px solid rgba(108, 137, 184, 0.15) !important;
}
.stat-card-slate .stat-label { color: #6C89B8; }
.stat-card-slate .stat-value { color: #3E5A8B; }

.stat-card-amber {
    background: #FFF9F2 !important;
    border: 1px solid rgba(201, 162, 115, 0.15) !important;
}
.stat-card-amber .stat-label { color: #C9A273; }
.stat-card-amber .stat-value { color: #846543; }

.stat-card-navy {
    background: #F0F2F9 !important;
    border: 1px solid rgba(43, 54, 116, 0.15) !important;
}
.stat-card-navy .stat-label { color: #2B3674; }
.stat-card-navy .stat-value { color: #1B2559; }

.stat-card-crimson {
    background: #FEF6F6 !important;
    border: 1px solid rgba(176, 107, 107, 0.15) !important;
}
.stat-card-crimson .stat-label { color: #B06B6B; }
.stat-card-crimson .stat-value { color: #7A3E3E; }

.empty-state {
    position: relative;
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 16px;
    border: 1px dashed var(--linen);
    overflow: hidden;
}

.empty-state::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/ameera.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 140px;
    opacity: 0.06;
    filter: grayscale(1);
    pointer-events: none;
    z-index: 1;
}

.empty-state > * {
    position: relative;
    z-index: 2;
}

.empty-state-icon {
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.empty-state-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
}

.empty-state-subtext {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .sidebar-header {
        padding: 1rem;
    }
}

/* Dashboard Refinements */
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    border-color: var(--moss) !important;
}

.pill {
    transition: all 0.2s ease;
}

.pill:hover {
    filter: brightness(0.95);
    transform: scale(1.05);
}
/* Modernism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

.shadow-premium {
    box-shadow: var(--shadow-lg);
}

.grad-primary {
    background: linear-gradient(135deg, var(--primary), #e68d71);
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Visibility Utilities */
.visible-mobile {
    display: none !important;
}

@media (max-width: 1024px) {
    .hidden-mobile {
        display: none !important;
    }
    .visible-mobile {
        display: flex !important;
    }
    
    /* Flex Utilities for Mobile */
    .flex-col-mobile {
        flex-direction: column !important;
    }
    
    /* Grid Utilities for Mobile */
    .grid-1-mobile {
        grid-template-columns: 1fr !important;
    }
    
    /* Spacing Utilities for Mobile */
    .p-mobile-sm {
        padding: 1rem !important;
    }
    .m-mobile-0 {
        margin: 0 !important;
    }
    
    /* Layout Utilities for Mobile */
    .w-full-mobile {
        width: 100% !important;
    }
}

/* Tablet Utilities */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid-2-tablet {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .hidden-tablet {
        display: none !important;
    }
}

/* Desktop Utilities */
@media (min-width: 1025px) {
    .hidden-desktop {
        display: none !important;
    }
}

/* General Layout Utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 0.75rem; }
.gap-6 { gap: 1.15rem; }
.gap-8 { gap: 1.5rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }

/* Grid System Utilities */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }

/* Grid Tablet Overrides (769px - 1024px) */
@media (max-width: 1024px) {
    .grid-1-tablet { grid-template-columns: 1fr !important; }
    .grid-2-tablet { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Margin Utilities */
.m-bottom-2 { margin-bottom: 0.5rem; }
.m-bottom-4 { margin-bottom: 1rem; }
.m-bottom-6 { margin-bottom: 1.5rem; }
.m-bottom-8 { margin-bottom: 2rem; }
.m-bottom-10 { margin-bottom: 1.75rem; }

/* Typography Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-heading { font-family: var(--heading-font); }
.font-bold { font-weight: 700; }

/* ----------------------------------
   Sales Reports UI Components 
   ---------------------------------- */

.sales-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.report-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--linen);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(54, 119, 224, 0.05);
}

.report-header-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.report-header-label {
    font-weight: 700;
    color: var(--secondary);
    font-family: var(--heading-font);
}

.report-header-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-report {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-report-monthly {
    background: var(--secondary);
    color: white;
}
.btn-report-monthly:hover {
    background: #1d2551;
    transform: translateY(-2px);
}

.btn-report-excel {
    background: #107c41;
    color: white;
}
.btn-report-excel:hover {
    background: #0c5b2f;
    transform: translateY(-2px);
}

.btn-report-print {
    background: var(--secondary);
    color: white;
}
.btn-report-print:hover {
    background: #1d2551;
    transform: translateY(-2px);
}

.sales-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
}

.performance-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--linen);
    box-shadow: 0 4px 15px rgba(54, 119, 224, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.performance-panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(54, 119, 224, 0.1);
}

.panel-title {
    font-family: var(--heading-font);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-title.success { color: #107c41; }
.panel-title.warning { color: var(--accent); }

.day-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--warmwhite);
    transition: background-color 0.2s ease;
    border-radius: 8px;
}
.day-row:hover {
    background-color: rgba(54, 119, 224, 0.03);
}

.day-date {
    font-weight: 600;
}

.day-amount {
    font-weight: 700;
}
.day-amount.success { color: #107c41; }
.day-amount.warning { color: var(--accent); }
.day-amount.empty { color: var(--text-muted); }

.badge-weekend {
    background: var(--linen);
    color: var(--secondary);
    font-size: 0.7rem;
    margin-left: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
}

.empty-day-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-style: italic;
}

/* Sales Table Styles */
.table-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--linen);
    box-shadow: 0 4px 15px rgba(54, 119, 224, 0.05);
}

.table-title {
    font-family: var(--heading-font);
    color: var(--secondary);
    margin-bottom: 1rem;
}

.sales-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.sales-table th {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--linen);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sales-table td {
    padding: 1rem 0.5rem;
    border-bottom: 1px solid var(--warmwhite);
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.sales-table tr:hover td {
    background-color: rgba(54, 119, 224, 0.02);
}

.sales-table a.booking-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.sales-table a.booking-link:hover {
    color: var(--secondary);
}

.badge-exclusive {
    background: rgba(217, 138, 98, 0.18);
    color: var(--accent-soft);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-accommodation {
    background: rgba(54, 119, 224, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.payment-type {
    text-transform: capitalize;
    font-weight: 500;
}

.amount-value {
    font-weight: 700;
    font-family: var(--heading-font);
}

.running-total {
    font-weight: 700;
    color: #107c41;
    font-family: var(--heading-font);
}

.sales-table tfoot td {
    padding: 1.5rem 0.5rem;
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--secondary);
    border-bottom: none;
}

.action-link {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    background: rgba(54, 119, 224, 0.05);
    transition: all 0.2s ease;
}

.action-link:hover {
    background: rgba(54, 119, 224, 0.15);
    color: var(--secondary);
}

/* Purple Theme for Exclusive Bookings */
.text-purple {
    color: #5b21b6 !important;
}
.bg-purple-subtle {
    background-color: #ede9fe !important;
}
.border-purple {
    border-color: #ddd6fe !important;
}

/* DataTables Global Pagination Theming */
.dt-paging {
    padding: 1rem 1.5rem !important;
    background: #fff !important;
    border-top: 1px solid var(--linen) !important;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.dt-paging-button {
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    border: 1px solid var(--linen) !important;
    background: #fff !important;
    color: var(--espresso) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    margin: 0 2px !important;
}

.dt-paging-button.current {
    background: #fff !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 4px rgba(54, 119, 224, 0.1) !important;
}

.dt-paging-button:hover:not(.current) {
    background: var(--linen) !important;
    color: var(--secondary) !important;
}

.dt-paging-button.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: #f8fafc !important;
}


/* User Dropdown Styles */
.user-dropdown-menu {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    margin-top: 0.5rem !important;
}

.user-dropdown-header {
    padding: 0.5rem 1rem 1rem;
    border-bottom: 1px solid var(--linen);
    margin-bottom: 0.5rem;
}

.user-dropdown-name {
    display: block;
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.95rem;
    line-height: 1.2;
}

.user-dropdown-role {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.user-dropdown-item:hover {
    background-color: rgba(243, 129, 32, 0.08);
    color: var(--accent);
}

.user-dropdown-item i, 
.user-dropdown-item svg {
    font-size: 1rem;
    width: 1.2rem;
    text-align: center;
    color: var(--text-muted);
}

.user-dropdown-item:hover i,
.user-dropdown-item:hover svg {
    color: var(--accent);
}

.user-dropdown-item.logout {
    color: var(--status-cancelled);
}

.user-dropdown-item.logout:hover {
    background-color: rgba(176, 107, 107, 0.08);
    color: var(--status-cancelled);
}

.user-dropdown-item.logout:hover i,
.user-dropdown-item.logout:hover svg {
    color: var(--status-cancelled);
}

/* Global Loader Overlay - Advanced Coastal Edition */
#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(27, 43, 72, 0.5); /* Much lower opacity for a lighter feel */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Faster transition */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#loader-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 1. Logo Liquid Fill (Coastal Water Edition) */
.logo-liquid-container {
    position: relative;
    width: 180px; 
    height: 180px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(243, 129, 32, 0.2));
}

.logo-base, .logo-fill {
    position: absolute;
    inset: 0;
    mask-image: url('../images/noun-ocean-sunset.svg');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url('../images/noun-ocean-sunset.svg');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.logo-base {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-fill {
    overflow: hidden;
}

/* Subtle Pouring Stream */
.pouring-stream {
    position: absolute;
    top: -20px;
    left: 50%;
    width: 2px; /* Much thinner */
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0) 0%, 
        var(--accent) 20%, 
        var(--accent) 80%, 
        rgba(255, 255, 255, 0) 100%);
    transform: translateX(-50%);
    opacity: 0;
    z-index: 2;
    filter: blur(0.5px); /* Softer edges */
    animation: stream-pour 1.5s infinite ease-in;
}

@keyframes stream-pour {
    0% { height: 0; opacity: 0; transform: translateX(-50%) translateY(0); }
    10% { height: 100%; opacity: 0.4; transform: translateX(-50%) translateY(0); }
    90% { height: 100%; opacity: 0.4; transform: translateX(-50%) translateY(0); }
    100% { height: 100%; opacity: 0; transform: translateX(-50%) translateY(5px); }
}

.liquid {
    position: absolute;
    top: 100%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--accent);
    animation: liquid-fill-cycle 1.5s infinite cubic-bezier(0.445, 0.05, 0.55, 0.95);
    z-index: 1;
}

/* Overlapping Wave Layers for Fluidity */
.liquid::before,
.liquid::after {
    content: "";
    position: absolute;
    width: 150%; /* Larger for smoother rotation */
    height: 150%;
    top: 0;
    left: 50%;
    background: var(--accent);
    opacity: 0.6;
}

.liquid::before {
    border-radius: 43%;
    transform: translate(-50%, -96%) rotate(0deg);
    animation: wave-spin 3s infinite linear;
}

.liquid::after {
    border-radius: 40%;
    transform: translate(-50%, -94%) rotate(0deg);
    animation: wave-spin 7s infinite linear;
    background: var(--accent-soft);
    opacity: 0.4;
}

@keyframes liquid-fill-cycle {
    0% { top: 100%; }
    10% { top: 100%; } /* Slight pause before filling */
    90% { top: -10%; }
    100% { top: -20%; }
}

@keyframes wave-spin {
    from { transform: translate(-50%, -96%) rotate(0deg); }
    to { transform: translate(-50%, -96%) rotate(360deg); }
}

/* 2. Skeleton Wave (Tide) Shimmer */
.skeleton-wave {
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.skeleton-wave::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: tide-roll 1.2s infinite linear; /* Faster tide */
}

@keyframes tide-roll {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 3. Infinite Horizon Line */
.horizon-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.horizon-line {
    position: absolute;
    height: 100%;
    width: 200%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--secondary) 25%, 
        var(--accent) 50%, 
        var(--secondary) 75%, 
        transparent 100%);
    animation: horizon-flow 1.5s infinite linear; /* Faster flow */
}

.horizon-line:nth-child(2) {
    animation-delay: -0.75s;
    opacity: 0.6;
    height: 2px;
    top: 1px;
}

@keyframes horizon-flow {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

.loader-text {
    color: #fff;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: text-fade 1.5s infinite ease-in-out;
}

@keyframes text-fade {
    0%, 100% { opacity: 0.6; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); }
}
