:root {
    --msc-primary: #3b82f6;
    --msc-accent: #10b981;
    --msc-bg: #ffffff;
    --msc-text: #111827;
    --msc-muted: #6b7280;
    --msc-border: #e5e7eb;
    --msc-radius: 12px;
    --msc-calendar-red: #d73527;
    --msc-calendar-blue: #4299e1;
    --msc-calendar-dark: #1a1a1a;
    --msc-calendar-gray: #8e8e93;
}

.msc-calendar {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
    color: var(--msc-text);
}

.msc-card {
    background: var(--msc-bg);
    border: 1px solid var(--msc-border);
    border-radius: var(--msc-radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

/* Toolbar removed - no calendar navigation needed */

/* Calendar Event Card Styles - Replicating the screenshot design */
.msc-event-card {
    display: flex;
    align-items: stretch;
    margin: 20px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: white;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.msc-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.msc-calendar-date {
    background: url('calendar-bg.svg') no-repeat center center;
    background-size: cover;
    border: none;
    border-radius: 8px 0 0 8px;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.msc-calendar-date::before {
    display: none;
}

.msc-calendar-date::after {
    display: none;
}


.msc-day {
    font-size: 80px;
    font-weight: 900;
    color: #000;
    line-height: 1;
    margin: 0;
    position: absolute;
    top: 27%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.msc-month {
    font-size: 20px;
    font-weight: 600;
    color: black;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.msc-time-info {
    font-size: 11px;
    color: var(--msc-calendar-gray);
    text-align: center;
    font-weight: 400;
    margin-bottom: 2px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.msc-day-name {
    font-size: 17px;
    color: #000;
    text-align: center;
    font-weight: 400;
    margin: 0;
    position: absolute;
    top: 67%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.msc-event-info {
    background: linear-gradient(135deg, var(--msc-calendar-blue) 0%, #2b77cb 100%);
    color: white;
    padding: 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 16px 16px 0;
}

.msc-event-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent rgba(255, 255, 255, 0.1) transparent transparent;
}

.msc-event-title {
    font-size: 22px;
    font-weight: 600;
    color: white;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.msc-event-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin: 0 0 8px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: italic;
}

.msc-event-location {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.msc-event-time {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.25);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Agenda view for multiple events */
.msc-agenda {
    padding: 16px;
}

.msc-agenda-item {
    margin-bottom: 16px;
}

/* Grid view removed - event list only */

.msc-tooltip {
    position: absolute;
    z-index: 50;
    background: #111827;
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .2);
    max-width: 220px;
}

.msc-tooltip:after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 12px;
    border: 6px solid transparent;
    border-top-color: #111827;
}

.msc-date-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid var(--msc-border);
}

/* View-specific styles removed - single event list layout */

/* Responsive design */
@media (max-width: 768px) {
    .msc-event-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .msc-calendar-date {
        min-width: auto;
        border-radius: 8px 8px 0 0;
        flex-direction: row;
        justify-content: space-between;
        padding: 12px 16px;
    }
    
    .msc-calendar-date::before,
    .msc-calendar-date::after {
        display: none;
    }
    
    .msc-day {
        font-size: 32px;
    }
    
    .msc-event-title {
        font-size: 20px;
    }
}

/* Past events styling */
.msc-past-event {
    position: relative;
}

.msc-past-event::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(128, 128, 128, 0.2) 0%, rgba(128, 128, 128, 0.2) 100%);
    z-index: 1;
    pointer-events: none;
}

.msc-past-event .msc-event-info {
    opacity: 0.3;
    position: relative;
    z-index: 2;
}

.msc-past-event .msc-calendar-date {
    opacity: 0.7;
    position: relative;
    z-index: 2;
}

/* Desktop responsive styles */
@media (min-width: 769px) {
    .msc-calendar {
        min-height: 200px;
    }
    
    .msc-calendar-date {
        min-height: 190px;
    }
    
    .msc-event-info {
        min-height: 190px;
    }
}

/* Background Style Options - Applied to Individual Event Cards */
.msc-calendar[data-background="funny"] .msc-event-card {
    background-image: url('./funny-calendar-bg.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 15px;
    border: none;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
    position: relative;
    overflow: hidden;
    min-height: 120px;
    padding: 15px;
}

.msc-calendar[data-background="funny"] .msc-event-card .msc-event-title,
.msc-calendar[data-background="funny"] .msc-event-card .msc-event-time,
.msc-calendar[data-background="funny"] .msc-event-card .msc-event-location {
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
    margin: 2px 0;
    display: inline-block;
    font-weight: 600;
    color: #333;
}

.msc-calendar[data-background="elegant-paper"] .msc-event-card {
    background-image: url('./elegant-calendar-bg.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 12px;
    border: none;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 120px;
    padding: 15px;
}

.msc-calendar[data-background="elegant-paper"] .msc-event-card .msc-event-title,
.msc-calendar[data-background="elegant-paper"] .msc-event-card .msc-event-time,
.msc-calendar[data-background="elegant-paper"] .msc-event-card .msc-event-location {
    background: rgba(253, 252, 251, 0.95);
    padding: 3px 8px;
    border-radius: 3px;
    margin: 2px 0;
    display: inline-block;
    font-weight: 500;
    color: #2c2c2c;
    border: 1px solid #d4af37;
    border-opacity: 0.3;
}

.msc-calendar[data-background="realistic"] .msc-event-card {
    background-image: url('./realistic-calendar-bg.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    min-height: 120px;
    padding: 15px;
}

.msc-calendar[data-background="realistic"] .msc-event-card .msc-event-title,
.msc-calendar[data-background="realistic"] .msc-event-card .msc-event-time,
.msc-calendar[data-background="realistic"] .msc-event-card .msc-event-location {
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 6px;
    border-radius: 2px;
    margin: 2px 0;
    display: inline-block;
    font-weight: 500;
    color: #333;
    border: 1px solid #ddd;
}

/* Remove ring clips from individual event cards with background styles */
.msc-calendar[data-background] .msc-event-card::before {
    display: none;
}

/* Responsive adjustments for background styles */
 @media (max-width: 768px) {
     .msc-calendar[data-background] {
         background-size: cover;
         border-radius: 8px;
     }
     
     .msc-calendar[data-background] .msc-event-card {
         margin: 15px 0;
         border-radius: 12px;
     }
 }

/* Paper Style Background */
.msc-paper-style {
    position: relative;
    background-color: #f8f6f0;
    background-image: 
        linear-gradient(90deg, #e8e6e0 1px, transparent 1px),
        linear-gradient(180deg, #e8e6e0 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 0 0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.msc-paper-style::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    width: 2px;
    height: 100%;
    background-color: #ff6b6b;
    z-index: 1;
}

.msc-paper-style .msc-event-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(232, 230, 224, 0.5);
}

.msc-paper-style .msc-agenda {
    position: relative;
    z-index: 2;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .msc-event-card {
        flex-direction: column;
        align-items: stretch;
    }
    
    .msc-calendar-date {
        min-width: 100%;
        width: 100%;
        aspect-ratio: 4/3;
        border-radius: 8px 8px 0 0;
        min-height: auto;
    }
    
    .msc-event-info {
        border-radius: 0 0 16px 16px;
    }
    
    .msc-month {
        font-size: 20px;
    }
    
    .msc-day {
        font-size: 80px;
    }
    
    .msc-day-name {
        font-size: 17px;
    }
    
    .msc-event-time {
        position: static;
        background: rgba(0, 0, 0, 0.25);
        color: white;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 500;
        margin-bottom: 8px;
        display: inline-block;
    }
}
