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

:root {
    /* Elan Light Theme Variables */
    --bg-dark: #fbfbfd;
    /* Very light gray/white */
    --bg-secondary: #ffffff;

    --c-primary: #800020;
    /* Royal Burgundy (kept) */
    --c-primary-light: #a52a2a;
    --c-gold: #d4af37;
    /* Champagne Gold (kept for accent) */

    --c-text: #2d2d2d;
    /* Dark gray for readability */
    --c-text-muted: #666666;

    /* Glass Effect for Light Theme */
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-bright: rgba(0, 0, 0, 0.15);

    --blur: 20px;
    --header-height: 0px;
    --side-nav-width: 300px;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.03);
}

body {
    background-color: var(--bg-dark);
    color: var(--c-text);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding-top: var(--header-height);
    -webkit-tap-highlight-color: transparent;
    line-height: 1.6;
}

/* Common Layout */
/* Standardized Header Container */
/* Standardized Header Container */
.cinematic-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    padding: 5px 0;
    /* Removed box-shadow and background for a cleaner, open look OR keep minimal */
    background: transparent;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    /* Gold separator */
    border-radius: 0;
    /* Removed card look */
    box-shadow: none;
    border-left: none;
    /* Removed the "uncool" mark */
    position: relative;
    overflow: visible;
}

.cinematic-header::before {
    /* Optional: Subtle spotlight effect instead */
    content: none;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 20px 30px;
    /* Reduced top padding */
    transition: padding-left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: var(--c-primary);
    margin: 0;
    line-height: 1.2;
}

.cinematic-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--c-text);
    /* Dark gray for elegance */
    padding-bottom: 0;
    margin-right: 15px;
    letter-spacing: 0.05em;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cinematic-title::before {
    /* Stylish diamond bullet */
    content: '◆';
    font-size: 0.8em;
    color: var(--c-gold);
    opacity: 0.8;
}

.cinematic-title::after {
    content: none;
}

/* Glassmorphism Components (Light) */
.glass-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.glass-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 20px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-card);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: var(--c-gold);
}

/* Inputs & Forms */
.cinematic-select,
.cinematic-input {
    background: #fff;
    border: 1px solid #ddd;
    color: var(--c-text);
    padding: 10px 15px;
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: 0.3s;
    min-width: 120px;
}

.cinematic-select:focus,
.cinematic-input:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

.cinematic-btn {
    background: #fff;
    border: 1px solid var(--glass-border);
    color: var(--c-text);
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cinematic-btn:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: white;
}

.cinematic-btn-primary {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: white;
}

/* Badges */
.cinematic-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(128, 0, 32, 0.08);
    color: var(--c-primary);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Hamburger Button */
.hbg-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1300;
}

.hbg-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--c-primary);
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: center;
}

/* Side Nav (Drawer) - Darker for contrast */
.side-nav {
    position: fixed;
    top: 0;
    left: -var(--side-nav-width);
    width: var(--side-nav-width);
    height: 100vh;
    background: #222;
    /* Keep dark for menu */
    color: #fff;
    z-index: 1500;
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 80px 20px 20px;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.1);
}

.side-nav.active {
    left: 0;
}

.side-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 1450;
    display: none;
    opacity: 0;
    transition: 0.3s;
}

.side-nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--c-primary);
}

/* Custom Modal */
.cinematic-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cinematic-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cinematic-modal {
    background: var(--bg-secondary);
    width: 90%;
    max-width: 400px;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.cinematic-modal-overlay.active .cinematic-modal {
    transform: translateY(0);
}

.cinematic-modal-title {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--c-primary);
}

.cinematic-modal-body {
    margin-bottom: 25px;
    color: var(--c-text);
    font-size: 1rem;
}

.cinematic-modal-actions {
    justify-content: center;
    gap: 15px;
}


/* Calendar Zebra Striping */
.week-alt-bg {
    background-color: rgba(0, 0, 0, 0.025);
}

/* Scrollable Tabs for Mobile UI */
.scrollable-tabs-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding: 10px 0 15px;
    /* bottom padding for scrollbar clearance */
    scrollbar-width: none;
    /* Firefox */
}

.scrollable-tabs-container::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.scrollable-tab-item {
    scroll-snap-align: start;
    flex: 0 0 auto;
    min-width: 80px;
    text-align: center;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--c-text-muted);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.scrollable-tab-item.active {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
    box-shadow: 0 4px 10px rgba(128, 0, 32, 0.2);
}

/* Swipeable Content Area */
.swipe-content-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    width: 100%;
}

.swipe-content-wrapper::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.swipe-panel {
    scroll-snap-align: start;
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 5px;
}

/* Gantt Chart Layout */
.gantt-table {
    /* Natural layout to fit content */
    table-layout: auto;
    width: auto;
}

.col-group {
    width: 40px;
}

.col-day {
    /* Hint width */
    min-width: 25px;
}

/* Header cells */
.header-day {
    min-width: 25px;
    box-sizing: border-box;
}

.day-weekday {
    background-color: rgba(0, 0, 0, 0.02);
    border-right: 1px solid rgba(0, 0, 0, 0.03);
}

.day-saturday,
.day-sunday,
.day-holiday {
    /* Existing colors */
}

/* Updated by Roo */