/* Calendar View Styles */
.calendar-view-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    color: var(--text-color);
}

/* Calendar Header & Filters */
.calendar-header-section {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    overflow: hidden;
}

.calendar-filters-container {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 70px;
}

.filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.filter-pill.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-light);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.filter-pill.month-pill {
    padding: 6px 12px;
    font-size: 0.8rem;
    min-width: 45px;
    text-align: center;
}

.calendar-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.2);
}

/* Original Title & Controls (Adjusted) */
.calendar-title-group h2 {
    font-size: 1.5rem;
    margin: 0;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.calendar-controls {
    display: flex;
    gap: 10px;
}

.calendar-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.calendar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    /* Grid lines color */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.calendar-day-header {
    background: rgba(15, 23, 42, 0.9);
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar-day-cell {
    background: rgba(15, 23, 42, 0.4);
    min-height: 150px;
    padding: 10px;
    position: relative;
    transition: background 0.2s;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.calendar-day-cell:hover {
    background: rgba(15, 23, 42, 0.6);
}

.calendar-day-cell.inactive {
    background: rgba(15, 23, 42, 0.2);
    opacity: 0.5;
}

.calendar-day-cell.today {
    background: rgba(59, 130, 246, 0.05);
}

.day-number {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.calendar-day-cell.today .day-number {
    background: var(--accent-color);
    color: white;
}

/* Events */
.calendar-event {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.1s, box-shadow 0.1s;
    border-left: 3px solid rgba(255, 255, 255, 0.5);
    position: relative;
}

.calendar-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Event Types Colors */
.event-type-conference {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border-left-color: #3b82f6;
}

.event-type-airshow {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border-left-color: #10b981;
}

.event-multi-day-start {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-right: -10px;
    /* Pull to edge */
    z-index: 2;
}

.event-multi-day-mid {
    border-radius: 0;
    margin-left: -10px;
    margin-right: -10px;
    z-index: 2;
}

.event-multi-day-end {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: -10px;
    z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-day-cell {
        min-height: 100px;
    }

    .calendar-event {
        font-size: 0.7rem;
        padding: 2px 4px;
    }

    .calendar-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .calendar-controls {
        width: 100%;
        justify-content: space-between;
    }
}