.events-dashboard {
    width: 96vw;
    height: 72vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* --- CALENDAR SECTION --- */
.calendar-section-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 5px;
}

/* Nav Arrows */
.cal-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.8);
    color: var(--text-gold);
    border: 1px solid var(--text-gold);
    padding: 10px 15px;
    cursor: pointer;
    z-index: 20;
    font-size: 1.5rem;
    transition: 0.3s;
}
.cal-nav-left { left: 10px; }
.cal-nav-right { right: 10px; }
.cal-nav-arrow:hover { background: var(--text-gold); color: black; }

/* Grid Display */
.year-grid-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    width: 92%;
    height: 96%;
}

/* Month Card */
.month-card {
    background: #0d0d0d;
    border: 1px solid #333;
    padding: 4px;
    display: flex;
    flex-direction: column;
}

.month-card h3 {
    font-size: 0.75rem;
    text-align: center;
    margin: 2px 0;
    color: var(--text-silver);
    font-family: 'Starcraft Regular';
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    flex: 1;
}

.cal-header {
    font-size: 0.55rem;
    text-align: center;
    color: gray;
}

/* --- TILE STYLES & VISUALS --- */
.cal-day {
    position: relative;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    color: white;
    background: #1a1a1a; /* Default "White" equiv */
    overflow: hidden;
}
.cal-day.empty { background: transparent; border: none; }

/* 1. MAINTENANCE: Blue & Gray Diagonals + M */
.evt-maintenance {
    background: repeating-linear-gradient(
        45deg,
        #000080,
        #000080 5px,
        #404040 5px,
        #404040 10px
    );
}
.maintenance-m {
    position: absolute;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 0 black;
    transform: rotate(-45deg); /* Diagonal M */
    z-index: 5;
}

/* 2. WEEKEND: Green Border/Shadow */
.evt-weekend {
    border: 1px solid #00ff00;
    box-shadow: inset 0 0 4px #00ff00;
}

/* 3. SPRING BREAK: Purple & Yellow Diagonals */
.evt-spring-break {
    background: repeating-linear-gradient(
        135deg,
        #800080,
        #800080 8px,
        #ffff00 8px,
        #ffff00 16px
    );
    color: black;
    text-shadow: 0 0 2px white;
    font-weight: bold;
}

/* 4. EASTER: Gold & Green */
.evt-easter {
    background: repeating-linear-gradient(
        90deg,
        #ffd700,
        #ffd700 5px,
        #008000 5px,
        #008000 10px
    );
    border: 1px solid #ffd700;
    color: white;
    text-shadow: 1px 1px 2px black;
}

/* 5. CHRISTMAS: Red/Green Gradient */
.evt-christmas {
    background: linear-gradient(to bottom, #8B0000, #006400);
    border: 1px solid #00ff00;
    box-shadow: 0 0 3px #00ff00;
}

/* 6. FULL MOON (Crosshair) */
.evt-full-moon {
    background: #222;
    cursor: crosshair;
}
.evt-full-moon::after {
    content: '+';
    position: absolute;
    color: #ffff00;
    font-size: 1.2rem;
}

/* 7. FULL MOON APPROACH (Light/Dark Purple Diagonals) */
.evt-full-moon-before {
    background: repeating-linear-gradient(
        45deg,
        #9370DB,
        #9370DB 5px,
        #4B0082 5px,
        #4B0082 10px
    );
}

/* 8. FULL MOON AFTERMATH (Red/Black Diagonals) */
.evt-full-moon-after {
    background: repeating-linear-gradient(
        45deg,
        #ff0000,
        #ff0000 5px,
        #000000 5px,
        #000000 10px
    );
}

/* 9. USER STATUS */
.user-probation {
    border: 2px solid yellow;
    color: yellow;
}
.user-softban {
    background: rgba(255, 0, 0, 0.65) !important;
}
.user-softban:hover {
    background: rgba(255, 0, 0, 1) !important;
}

/* --- LEGEND FOOTER STYLES --- */
.events-legend-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    padding: 10px;
    background: rgba(0,0,0,0.8);
    border-radius: 8px;
    border: 1px solid #333;
    font-size: 0.7rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-silver);
}

.legend-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    flex-shrink: 0;
    font-weight: bold;
    position: relative;
}

.maintenance-m-legend {
    color: white;
    font-size: 0.8rem;
    text-shadow: 1px 1px 0 black;
    transform: rotate(-45deg);
}

/* --- RESPONSIVE --- */
@media (max-width: 719px) {
    .year-grid-display {
        display: flex;
        overflow-x: auto;
        width: 100%;
        gap: 0;
        scroll-snap-type: x mandatory;
    }
    .month-card {
        min-width: 100%;
        scroll-snap-align: center;
    }
    .cal-nav-arrow { display: none; }
    .events-legend-footer {
        grid-template-columns: 1fr 1fr;
    }
}