/* CSS VARIABLES & PREMIUM DESIGN SYSTEM */
:root {
    /* Fonts */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Theme Lights: Sea and Sand Palette */
    --bg-primary: #f0f7f9;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e6eff2;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    
    --text-primary: #1e3a47;
    --text-secondary: #5a7b8c;
    --text-muted: #8ca7b5;
    
    --color-ocean: #007799;
    --color-ocean-rgb: 0, 119, 153;
    --color-sand: #d4a373;
    --color-sea-foam: #e8f1f5;
    
    --accent-primary: #0099b8;
    --accent-hover: #005f73;
    --accent-success: #2a9d8f;
    --accent-warning: #f4a261;
    --accent-danger: #e76f51;
    --accent-past: #7d8f99;

    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
    --hover-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Palette overrides */
body.dark-theme {
    --bg-primary: #0b151a;
    --bg-secondary: #13222b;
    --bg-tertiary: #192d39;
    --glass-bg: rgba(19, 34, 43, 0.75);
    --glass-border: rgba(255, 255, 255, 0.06);
    
    --text-primary: #f0f7f9;
    --text-secondary: #9cb5c2;
    --text-muted: #627b87;
    
    --color-ocean: #00b4d8;
    --color-ocean-rgb: 0, 180, 216;
    --color-sand: #e9c46a;
    --color-sea-foam: #1e333f;
    
    --accent-primary: #00b4d8;
    --accent-hover: #90e0ef;
    
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --hover-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

/* Global Reset & Base Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Backdrop Graphic Blobs */
.bg-gradient-circle {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}
.bg-circle-1 {
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, var(--color-ocean) 0%, rgba(0,0,0,0) 70%);
}
.bg-circle-2 {
    bottom: -200px;
    left: -100px;
    background: radial-gradient(circle, var(--color-sand) 0%, rgba(0,0,0,0) 70%);
}

/* Layout Framework */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, var(--color-ocean), var(--color-sand));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 119, 153, 0.3);
}

.logo-icon {
    width: 24px;
    height: 24px;
}

.brand-name h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.brand-name span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.menu-item {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
}

.menu-item i {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.menu-item:hover {
    color: var(--color-ocean);
    background: var(--color-sea-foam);
}

.menu-item:hover i {
    transform: translateX(3px);
}

.menu-item.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-ocean), var(--accent-primary));
    box-shadow: 0 4px 15px rgba(0, 119, 153, 0.2);
}

.sidebar-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.theme-btn {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-primary);
    color: var(--text-primary);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.theme-btn:hover {
    background: var(--color-sea-foam);
    border-color: var(--color-ocean);
}

.dark-icon, .light-icon {
    width: 18px;
    height: 18px;
}

body.light-theme .light-icon { display: none; }
body.dark-theme .dark-icon { display: none; }

/* Main Content Workspace */
.main-content {
    flex-grow: 1;
    margin-left: 280px;
    padding: 2.5rem 3rem;
    max-width: 1600px;
    width: calc(100% - 280px);
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.header-title h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}

.header-title p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Button UI Elements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-ocean), var(--accent-primary));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 119, 153, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 119, 153, 0.35);
    transform: translateY(-2px);
}

.btn-outline {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-secondary);
}

.btn-danger {
    background: var(--accent-danger);
    color: white;
}

.btn-danger:hover {
    background: #d65a3c;
}

.w-100 { width: 100%; }

/* Alerts / Notification Bell Badge */
.alert-badge-container {
    position: relative;
    cursor: pointer;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    width: 46px;
    height: 46px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.alert-badge-container:hover {
    border-color: var(--color-ocean);
    background: var(--color-sea-foam);
}

.icon-bell {
    color: var(--text-primary);
    width: 20px;
    height: 20px;
}

.badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-danger);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--bg-secondary);
}

/* Notifications Dropdown */
.notifications-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    width: 320px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--hover-shadow);
    padding: 1rem;
    display: none;
    z-index: 200;
    cursor: default;
}

.notifications-dropdown.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

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

.dropdown-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.dropdown-list {
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dropdown-item {
    padding: 0.6rem 0.8rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    border-left: 4px solid var(--accent-warning);
    background: var(--bg-primary);
}

.dropdown-item.alert-danger-level {
    border-left-color: var(--accent-danger);
}

.dropdown-item-title {
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.dropdown-item-desc {
    color: var(--text-secondary);
}

.empty-notifications {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    padding: 1rem;
}

/* Content Sections Visibility */
.content-section {
    display: none;
    animation: fadeIn var(--transition-fast);
}

.content-section.active {
    display: block;
}

/* Financial Dashboard View */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.card-total .stat-icon { background: rgba(0, 180, 216, 0.15); color: var(--color-ocean); }
.card-received .stat-icon { background: rgba(42, 157, 143, 0.15); color: var(--accent-success); }
.card-pending .stat-icon { background: rgba(244, 162, 97, 0.15); color: var(--accent-warning); }
.card-occupancy .stat-icon { background: rgba(212, 163, 115, 0.15); color: var(--color-sand); }

.stat-info h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.15rem;
}

.stat-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Panel cards Layout */
.dashboard-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .dashboard-details-grid {
        grid-template-columns: 1fr;
    }
}

.panel-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.panel-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.panel-icon {
    color: var(--color-ocean);
}

.panel-body {
    padding: 1.75rem;
}

/* Accounts Distribution Items */
.account-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--glass-border);
    transition: transform var(--transition-fast);
}

.account-item:hover {
    transform: scale(1.02);
}

.account-name-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.account-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-sea-foam);
    color: var(--color-ocean);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.account-info-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.account-info-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.account-values {
    text-align: right;
}

.account-earned {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-success);
}

.account-pending {
    font-size: 0.8rem;
    color: var(--accent-warning);
}

/* Platforms / Booking Sources Bars */
.platform-stats-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.platform-stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.platform-stat-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
}

.platform-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.platform-count {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.8rem;
}

.platform-amount {
    color: var(--text-primary);
}

.platform-bar-bg {
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: 5px;
    overflow: hidden;
}

.platform-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width var(--transition-smooth);
}

/* Timeline of Alerts in Dashboard */
.alerts-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert-timeline-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius-md);
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
}

.alert-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    flex-shrink: 0;
}

.alert-icon-wrap.soon { background: rgba(244, 162, 97, 0.15); color: var(--accent-warning); }
.alert-icon-wrap.checkin { background: rgba(231, 111, 81, 0.15); color: var(--accent-danger); }
.alert-icon-wrap.checkout { background: rgba(0, 180, 216, 0.15); color: var(--color-ocean); }

.alert-card-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.alert-card-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Toolbars / Filter Cards */
.toolbar-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.search-box {
    flex-grow: 1;
    min-width: 280px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.search-box input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-ocean);
    box-shadow: 0 0 0 3px rgba(0, 119, 153, 0.1);
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    padding: 0.85rem 2rem 0.85rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    min-width: 140px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235a7b8c' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    transition: all var(--transition-fast);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--color-ocean);
}

/* Reservations View Styles */
.reservations-list-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.view-toggle {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.view-toggle button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.view-toggle button.active {
    background: var(--color-ocean);
    color: white;
}

/* Booking Cards */
.bookings-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.booking-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border-top: 5px solid var(--color-ocean);
}

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

/* Cards categorized styles */
.booking-card.status-active { border-top-color: var(--accent-success); }
.booking-card.status-upcoming { border-top-color: var(--accent-warning); }
.booking-card.status-past { 
    border-top-color: var(--accent-past);
    opacity: 0.75;
}
.booking-card.status-past:hover {
    opacity: 1;
}

.booking-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px dashed var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.guest-info-block h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.guest-info-block span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
}

.platform-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.platform-badge.airbnb { background: rgba(255, 90, 95, 0.15); color: #FF5A5F; }
.platform-badge.booking { background: rgba(0, 53, 128, 0.1); color: #003580; }
.platform-badge.directo { background: rgba(42, 157, 143, 0.15); color: var(--accent-success); }
.platform-badge.otro { background: rgba(125, 143, 153, 0.15); color: var(--text-secondary); }

.booking-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.detail-row i {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.dates-wrap {
    background: var(--bg-primary);
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
}

.dates-head {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.dates-value {
    font-weight: 600;
    color: var(--text-primary);
}

.price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.price-item {
    display: flex;
    flex-direction: column;
}

.price-item label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.price-item .val {
    font-size: 1.15rem;
    font-weight: 700;
}

.val.total { color: var(--text-primary); }
.val.debt { color: var(--accent-danger); }
.val.paid { color: var(--accent-success); }

.booking-card-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-badge-card {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.account-badge-card::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-ocean);
}

.card-actions-btn {
    display: flex;
    gap: 0.5rem;
}

.action-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.25rem;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.action-icon-btn:hover {
    background: var(--bg-tertiary);
    color: var(--color-ocean);
}

.action-icon-btn.delete-btn:hover {
    color: var(--accent-danger);
    background: rgba(231, 111, 81, 0.1);
}

/* Booking Table View Mode */
.hidden { display: none !important; }

.bookings-table-view {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
}

.bookings-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.bookings-table th {
    background: var(--bg-tertiary);
    padding: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--glass-border);
}

.bookings-table td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;
}

.bookings-table tr:hover {
    background: var(--bg-primary);
}

.bookings-table tr.status-past {
    opacity: 0.7;
    background: var(--bg-primary);
}

.table-guest-name {
    font-weight: 600;
}

/* Status Badges */
.status-pill {
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

.status-pill.past { background: var(--bg-tertiary); color: var(--text-secondary); }
.status-pill.active { background: rgba(42, 157, 143, 0.15); color: var(--accent-success); }
.status-pill.upcoming { background: rgba(244, 162, 97, 0.15); color: var(--accent-warning); }

/* Modals layout */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 21, 26, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
}

.modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease-out;
}

.modal-backdrop.show .modal-card {
    transform: translateY(0);
}

.modal-large {
    max-width: 900px;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.btn-close-modal {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.btn-close-modal:hover {
    color: var(--accent-danger);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex-grow: 1;
}

/* Forms general styling */
.form-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-ocean);
    margin: 1.5rem 0 0.75rem 0;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--glass-border);
}

.form-section-title:first-of-type {
    margin-top: 0;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input, .form-group select, .form-group textarea {
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-ocean);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 1rem;
}

/* Apartment presentation page layout */
.quotation-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .quotation-grid {
        grid-template-columns: 1fr;
    }
}

.image-previews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.preview-img-wrapper {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.preview-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-img-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(231, 111, 81, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
}

.date-inputs {
    display: flex;
    gap: 0.5rem;
}

.date-inputs input {
    flex: 1;
}

/* Quotation View styling */
.quote-preview-container {
    background: #ffffff;
    color: #1e3a47;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
}

.quote-header-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--color-sea-foam);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.quote-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-ocean);
}

.quote-logo h2 {
    font-size: 1.6rem;
    font-weight: 800;
}

.quote-date-badge {
    text-align: right;
}

.quote-date-badge h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-sand);
}

.quote-section-desc {
    margin-bottom: 2rem;
}

.quote-section-desc h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.quote-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.quote-gallery img {
    width: 100%;
    aspect-ratio: 1.5;
    object-fit: cover;
    border-radius: var(--border-radius-md);
}

.quote-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
    margin-bottom: 2rem;
}

.feature-li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.feature-li::before {
    content: '✓';
    color: var(--accent-success);
    font-weight: 700;
}

.quote-pricing-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

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

.quote-table-price tr td {
    padding: 0.5rem 0;
}

.quote-table-price tr.total-row td {
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.quote-footer-notes {
    border-top: 1px solid var(--color-sea-foam);
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

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

/* Print optimizations */
@media print {
    body * {
        visibility: hidden;
    }
    #quotation-modal, #quotation-modal * {
        visibility: visible;
    }
    #quotation-modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white;
    }
    .modal-header.no-border {
        display: none;
    }
}

/* MOBILE RESPONSIVE ADAPTATIONS */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 1.5rem 1.25rem;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .sidebar-brand {
        margin-bottom: 1.5rem;
        justify-content: center;
    }

    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        scrollbar-width: none; /* Hide scrollbar for clean tab look */
    }
    
    .sidebar-menu::-webkit-scrollbar {
        display: none;
    }

    .menu-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
        justify-content: center;
        flex-shrink: 0;
    }

    .menu-item i {
        width: 16px;
        height: 16px;
    }

    .sidebar-footer {
        display: none; /* Hide dark mode switch footer on mobile sidebar to save space */
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem 1.25rem;
        width: 100%;
    }

    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        margin-bottom: 2rem;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    /* Toolbar / Filters stacking fix */
    .toolbar-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding: 1.25rem;
    }

    .search-box {
        width: 100%;
        min-width: unset;
    }

    .filters-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        width: 100%;
        min-width: unset;
    }

    /* Cards adaptations */
    .bookings-grid-view {
        grid-template-columns: 1fr;
    }

    /* Modal spacing */
    .modal-card {
        width: 95%;
        max-height: 95vh;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Quote preview client view */
    .quote-preview-container {
        padding: 1.25rem;
    }

    .quote-header-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .quote-date-badge {
        text-align: left;
    }

    .quote-features-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

