/* --- Premium Re-design Design Tokens & Variables for Calendar Hub --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-display: 'Outfit', Arial, sans-serif;
    --font-sans: 'Outfit', Arial, sans-serif;
    --font-mono: 'Inconsolata', monospace;
    
    /* Harmonious light theme colors matching Samay design system */
    --brand-primary: hsl(340, 71%, 54%); /* vibrant pink */
    --brand-accent: hsl(190, 90%, 45%); /* glowing cyan */
    --brand-blue: hsl(210, 90%, 50%); /* bright blue */
    --brand-success: hsl(150, 70%, 45%); /* emerald green */
    --brand-warning: hsl(25, 95%, 45%); /* caution orange */
    
    --bg-light: hsl(210, 40%, 98%);
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    
    --text-main: hsl(215, 25%, 27%);
    --text-muted: hsl(218, 11%, 47%);
    --text-light: hsl(210, 40%, 98%);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base resets & fonts */
.calendar-hub-container,
.calendar-hero-section,
.breadcrumbs-wrapper {
    font-family: var(--font-sans) !important;
    color: var(--text-main);
}

.calendar-hub-container h1,
.calendar-hub-container h2,
.calendar-hub-container h3,
.calendar-hub-container h4,
.calendar-hub-container p,
.calendar-hero-section h1,
.calendar-hero-section p {
    font-family: var(--font-sans) !important;
}

/* --- Hero Section --- */
.calendar-hero-section {
    background: #ffffff;
    position: relative;
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.calendar-hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(0,0,0,0.03) 1px, transparent 0);
    background-size: 24px 24px;
    opacity: 0.8;
    pointer-events: none;
}

.calendar-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.calendar-hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #0f172a 30%, var(--brand-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.calendar-hero-content p {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- Main Layout Container --- */
.calendar-hub-container {
    background: var(--bg-light);
    padding: 50px 0;
}

/* --- Search Panel Redesign --- */
.calendar-location-search-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    margin-bottom: 48px;
    transition: var(--transition-smooth);
    position: relative;
}

.calendar-location-search-panel:hover {
    box-shadow: var(--shadow-lg);
}

.calendar-location-search-form label {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}

.calendar-location-search-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.calendar-location-search-row .form-control {
    height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 15px;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
}

.calendar-location-search-row .form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(221, 53, 110, 0.15);
    outline: none;
}

.calendar-location-search-row .btn-primary {
    background: var(--brand-primary);
    border: none;
    border-radius: 10px;
    padding: 0 24px;
    font-weight: 600;
    font-size: 15px;
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.calendar-location-search-row .btn-primary:hover {
    background: hsl(340, 71%, 48%);
    transform: translateY(-1px);
}

.calendar-location-search-help {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
}

.calendar-location-search-results {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-top: 8px;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
    position: absolute;
    left: 28px;
    right: 28px;
    z-index: 100;
}

.calendar-location-search-item {
    background: var(--bg-card);
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    display: block;
    padding: 12px 16px;
    text-align: left;
    width: 100%;
    font-size: 14px;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.calendar-location-search-item:last-child {
    border-bottom: 0;
}

.calendar-location-search-item:hover,
.calendar-location-search-item.is-active {
    background: #fff1f5;
    color: var(--brand-primary);
    font-weight: 600;
}

/* Active Context (Holidays/Date info) */
.calendar-location-context {
    border-top: 1px dashed var(--border-color);
    margin-top: 24px;
    padding-top: 24px;
}

.calendar-location-context h4 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 16px;
    color: #0f172a;
}

.calendar-location-context p {
    font-size: 14px;
    margin-bottom: 8px;
}

.calendar-location-context strong {
    color: var(--brand-primary);
}

.calendar-location-holiday-list {
    margin-top: 16px;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    list-style-type: none;
}

.calendar-location-holiday-list li {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calendar-location-holiday-list li span:first-child {
    font-family: var(--font-mono);
    color: var(--brand-blue);
    font-weight: 600;
}

.calendar-location-holiday-list li span:nth-child(2) {
    font-weight: 600;
    color: var(--text-main);
}

.calendar-location-holiday-list li span:last-child {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
}

/* --- Redesigned Grids --- */
.calendar-section {
    margin-bottom: 48px;
}

.calendar-section-header {
    margin-bottom: 32px;
}

.calendar-section-header h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
    margin-bottom: 8px;
}

.calendar-section-header p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* --- Card Styles --- */
.calendar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    transition: var(--transition-smooth);
}

.calendar-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-accent) 0%, var(--brand-primary) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.calendar-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

.calendar-card:hover::before {
    opacity: 1;
}

/* Card Content styling */
.calendar-card-icon {
    font-size: 28px;
    margin-bottom: 14px;
    background: #fff5f7;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.calendar-card:hover .calendar-card-icon {
    background: linear-gradient(135deg, hsl(340, 71%, 95%) 0%, hsl(190, 90%, 95%) 100%);
    transform: scale(1.05);
}

.calendar-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.calendar-card h3 a {
    color: #0f172a;
    text-decoration: none !important;
    transition: var(--transition-smooth);
}

.calendar-card h3 a:hover {
    color: var(--brand-primary);
}

.calendar-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* --- SEO Content Section --- */
.calendar-seo-section {
    margin-top: 56px;
    border-top: 1px solid var(--border-color);
    padding-top: 48px;
}

.calendar-seo-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px;
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.calendar-seo-content h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.seo-text-block p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.seo-text-block p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calendar-hero-content h1 {
        font-size: 32px;
    }
    .calendar-hero-section {
        padding: 40px 0;
    }
    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .calendar-location-search-row {
        flex-direction: column;
    }
    .calendar-location-search-row .btn-primary {
        height: 48px;
    }
    .calendar-location-search-results {
        left: 28px;
        right: 28px;
        width: auto;
    }
}

/* --- Year Calendar Specific Styling --- */

.calendar-year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.calendar-month-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.calendar-month-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.calendar-month-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 16px;
    padding: 6px 12px;
    background: hsl(210, 40%, 96%);
    border-radius: 8px;
    font-size: 16px;
}

.calendar-month-title a {
    color: var(--text-main);
    text-decoration: none !important;
    transition: var(--transition-smooth);
}

.calendar-month-title a:hover {
    color: var(--brand-primary);
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.calendar-table th, 
.calendar-table td {
    text-align: center;
    padding: 6px 4px;
    width: 14.28%;
}

.calendar-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 8px;
}

.day-cell {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition-smooth);
    font-weight: 500;
    color: var(--text-main);
}

.day-cell span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.day-cell:hover span {
    background-color: hsl(210, 40%, 92%);
}

.day-today span {
    background-color: var(--brand-primary);
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(221, 53, 110, 0.3);
}

.day-weekend {
    color: hsl(0, 75%, 60%);
}

.day-holiday span {
    background-color: hsl(340, 71%, 95%);
    color: var(--brand-primary);
    font-weight: 600;
}

.day-today.day-holiday span {
    background-color: var(--brand-primary);
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(221, 53, 110, 0.3);
}

.day-other-month {
    color: hsl(210, 10%, 80%);
}

.day-other-month:hover span {
    background-color: transparent;
}

/* Calendar Year Navigation Pill Redesign */
.calendar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 32px 0;
}

.calendar-nav .btn-nav {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.calendar-nav .btn-nav:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.calendar-nav .current-year-label {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    min-width: 100px;
    text-align: center;
}

/* Keyboard Shortcuts Section Redesign */
.shortcuts-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-top: 48px;
    text-align: center;
}

.shortcuts-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 16px;
    color: #0f172a;
}

.shortcuts-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.shortcuts-list li {
    font-size: 14px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

kbd {
    background: hsl(210, 40%, 96%);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 3px 8px;
    box-shadow: 0 2px 0 var(--border-color);
}

/* --- Redesigned Holiday Search & Results --- */
.holiday-search-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
    transition: var(--transition-smooth);
}

.holiday-search-panel:hover {
    box-shadow: var(--shadow-lg);
}

.holiday-search-panel label {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}

.holiday-search-panel .form-control {
    height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 15px;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
    background-color: #ffffff;
    box-shadow: none;
}

.holiday-search-panel .form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(221, 53, 110, 0.15);
    outline: none;
}

.holiday-search-panel .btn-primary {
    background: var(--brand-primary);
    border: none;
    border-radius: 10px;
    height: 48px;
    font-weight: 600;
    font-size: 15px;
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.holiday-search-panel .btn-primary:hover {
    background: hsl(340, 71%, 48%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(221, 53, 110, 0.25);
}

/* Results section */
.holiday-results-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    margin-bottom: 48px;
}

.holiday-results-container h3 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 24px;
    text-align: center;
}

.holiday-table {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

.holiday-table .table {
    margin-bottom: 0;
}

.holiday-table .table th {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 2px solid #e2e8f0;
    padding: 16px;
}

.holiday-table .table td {
    padding: 16px;
    vertical-align: middle;
    font-size: 15px;
    color: var(--text-main);
    border-top: 1px solid #f1f5f9;
}

.holiday-table .table tbody tr {
    transition: var(--transition-smooth);
}

.holiday-table .table tbody tr:hover {
    background-color: hsl(340, 71%, 99.5%);
}

.holiday-table .table tbody tr:last-child td {
    border-bottom: none;
}

/* Holiday Badges */
.holiday-badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

.holiday-badge-public {
    background-color: hsl(0, 100%, 96%);
    color: hsl(0, 75%, 50%);
}

.holiday-badge-bank {
    background-color: hsl(35, 100%, 95%);
    color: hsl(35, 90%, 45%);
}

.holiday-badge-observance {
    background-color: hsl(210, 100%, 96%);
    color: hsl(210, 85%, 45%);
}

.holiday-badge-other {
    background-color: hsl(150, 70%, 96%);
    color: hsl(150, 70%, 35%);
}

/* Mobile responsive CSS transform */
@media (max-width: 768px) {
    .holiday-results-container {
        padding: 20px;
    }
    
    .holiday-table table, 
    .holiday-table thead, 
    .holiday-table tbody, 
    .holiday-table th, 
    .holiday-table tr { 
        display: block; 
    }
    
    .holiday-table thead {
        display: none;
    }
    
    .holiday-table tr {
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 16px;
        background: #ffffff;
        box-shadow: var(--shadow-sm);
    }
    
    .holiday-table tr:last-child {
        margin-bottom: 0;
    }
    
    .holiday-table .table>tbody>tr>td {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        border: none !important;
        padding: 12px 0 !important;
        text-align: left;
    }
    
    .holiday-table .table>tbody>tr>td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-muted);
        font-size: 13px;
        text-transform: uppercase;
        display: inline-block;
    }
}

/* --- Calendar Cards as Full Links --- */
a.calendar-card-link,
a.calendar-card {
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

a.calendar-card-link:hover,
a.calendar-card:hover {
    text-decoration: none !important;
}

a.calendar-card-link:hover h3,
a.calendar-card:hover h3 {
    color: var(--brand-primary, #be185d) !important;
}

.calendar-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 9999px;
    background: #fdf2f8;
    color: #be185d;
    border: 1px solid #fbcfe8;
    vertical-align: middle;
}

/* ========================================================
   QUARTER, MONTH, WEEK & DAY CALENDAR REDESIGN STYLES
   ======================================================== */

/* --- Stats & Metrics Strip --- */
.calendar-stats-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0 32px 0;
}

.calendar-stat-chip {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.calendar-stat-chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.calendar-stat-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-stat-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.calendar-stat-value {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.calendar-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

/* --- Pill Switchers (Quarters, Months) --- */
.calendar-switcher-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.calendar-switcher-pills {
    display: inline-flex;
    background: #ffffff;
    padding: 4px;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    gap: 4px;
}

.calendar-switcher-pill {
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none !important;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.calendar-switcher-pill:hover {
    color: var(--brand-primary);
    background: #fff1f5;
}

.calendar-switcher-pill.is-active {
    background: var(--brand-primary);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(221, 53, 110, 0.35);
}

/* --- Month Planner Table (Month View) --- */
.month-planner-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    overflow-x: auto;
}

.month-planner-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 6px;
    min-width: 680px;
}

.month-planner-table th {
    text-align: center;
    padding: 12px 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border-bottom: 2px solid #f1f5f9;
}

.month-planner-table th.col-weekend {
    color: hsl(0, 75%, 60%);
}

.month-day-cell {
    background: hsl(210, 40%, 98%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    height: 100px;
    vertical-align: top;
    padding: 10px;
    position: relative;
    transition: var(--transition-smooth);
}

.month-day-cell:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
    background: #ffffff;
}

.month-day-cell a.day-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
}

.month-day-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.month-day-num {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.month-day-cell.day-weekend .month-day-num {
    color: hsl(0, 75%, 55%);
}

.month-day-cell.day-other-month {
    opacity: 0.35;
    background: transparent;
    border-style: dashed;
}

.month-day-cell.day-today {
    border-color: var(--brand-primary);
    background: #fff9fb;
    box-shadow: 0 0 0 2px rgba(221, 53, 110, 0.2);
}

.month-day-cell.day-today .month-day-num {
    background: var(--brand-primary);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(221, 53, 110, 0.4);
}

.month-day-badge-today {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-primary);
    background: #ffe4ed;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.month-day-holiday-pill {
    background: #fee2e2;
    border-left: 3px solid #ef4444;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #991b1b;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: auto;
    display: block;
}

/* Month Holidays List Section */
.month-holidays-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.month-holidays-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.month-holidays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.month-holiday-item {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.month-holiday-item:hover {
    border-color: var(--border-hover);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.month-holiday-date {
    font-weight: 700;
    font-size: 13px;
    color: var(--brand-blue);
    margin-bottom: 2px;
}

.month-holiday-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

/* --- Week View Cards Layout --- */
.week-cards-wrapper {
    margin-bottom: 48px;
}

.week-cards-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

@media (max-width: 992px) {
    .week-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 576px) {
    .week-cards-grid {
        grid-template-columns: 1fr;
    }
}

.week-day-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px 14px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    min-height: 220px;
    transition: var(--transition-smooth);
    position: relative;
}

.week-day-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.week-day-card.is-today {
    border-color: var(--brand-primary);
    background: #fff9fb;
    box-shadow: 0 0 0 2px rgba(221, 53, 110, 0.2);
}

.week-day-card.is-weekend {
    background: hsl(210, 40%, 99%);
}

.week-day-header {
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 12px;
}

.week-day-name {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.week-day-card.is-weekend .week-day-name {
    color: hsl(0, 75%, 60%);
}

.week-day-number {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 4px 0;
    line-height: 1.1;
}

.week-day-card.is-today .week-day-number {
    color: var(--brand-primary);
}

.week-day-month {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.week-day-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.week-holiday-tag {
    background: #fee2e2;
    color: #b91c1c;
    border-left: 3px solid #ef4444;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.week-day-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 8px;
}

.week-day-action {
    margin-top: 10px;
    text-align: center;
}

.week-day-action .btn-day-view {
    display: block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-primary);
    background: #fff1f5;
    text-decoration: none !important;
    transition: var(--transition-smooth);
}

.week-day-action .btn-day-view:hover {
    background: var(--brand-primary);
    color: #ffffff !important;
}

/* --- Day View Spotlight & Timeline --- */
.day-spotlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.day-spotlight-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--brand-accent) 0%, var(--brand-primary) 100%);
}

.day-spotlight-header {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 8px;
}

.day-spotlight-num {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #0f172a 30%, var(--brand-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.day-spotlight-weekday {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

.day-spotlight-date-text {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 20px;
}

.day-holiday-banner {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 12px;
    padding: 12px 20px;
    color: #991b1b;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

/* Day 24h Timeline Redesign */
.day-timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.day-timeline-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-timeline-container {
    position: relative;
    padding: 10px 0;
}

.modern-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.modern-timeline-hour {
    display: flex;
    align-items: center;
    height: 48px;
    border-top: 1px solid #f1f5f9;
    position: relative;
    transition: var(--transition-smooth);
}

.modern-timeline-hour:hover {
    background: #f8fafc;
}

.modern-timeline-hour:last-child {
    border-bottom: 1px solid #f1f5f9;
}

.modern-timeline-time {
    width: 80px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}

.modern-timeline-slot {
    flex-grow: 1;
    height: 100%;
    border-left: 2px solid #e2e8f0;
    padding-left: 16px;
    display: flex;
    align-items: center;
}

.modern-timeline-slot-text {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
}

/* Live Current Time Line */
.live-time-indicator {
    position: absolute;
    left: 70px;
    right: 0;
    height: 2px;
    background: #e11d48;
    z-index: 10;
    display: flex;
    align-items: center;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(225, 29, 72, 0.5);
}

.live-time-badge {
    background: #e11d48;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    margin-left: 6px;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.4);
}

.live-time-dot {
    width: 10px;
    height: 10px;
    background: #e11d48;
    border-radius: 50%;
    margin-left: -5px;
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.25);
    animation: pulseTimeDot 2s infinite;
}

@keyframes pulseTimeDot {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.5);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(225, 29, 72, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
    }
}
