/* Schedule Styles */

.filter-section {
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    border: 2px solid #1E3A5F;
    background: white;
    color: #1E3A5F;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: #f0f0f0;
}

.filter-btn.active {
    background: #1E3A5F;
    color: white;
}

.schedule-months {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.month-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.month-title {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #1E3A5F;
    text-align: center;
}

.calendar-grid {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #1E3A5F;
    color: white;
}

.day-header {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: #e0e0e0;
}

.calendar-day {
    min-height: 100px;
    background: white;
    padding: 0.75rem;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day:hover {
    background: #f5f5f5;
}

.calendar-day.empty {
    background: #fafafa;
    cursor: default;
}

.calendar-day.has-events {
    background: #e3f2fd;
    border: 2px solid #2196f3;
}

.calendar-day.has-events:hover {
    background: #bbdefb;
}

.day-number {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
}

.event-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #f6c200;
    color: #1E3A5F;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.event-popup {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: white;
    border: 2px solid #1E3A5F;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.calendar-day:hover .event-popup {
    display: block;
}

.event-preview {
    padding: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.event-preview:last-child {
    border-bottom: none;
}

.event-preview strong {
    display: block;
    color: #1E3A5F;
    margin-bottom: 0.25rem;
}

.event-preview small {
    color: #666;
    font-size: 0.75rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.modal-close:hover {
    color: #000;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1E3A5F;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.event-detail strong {
    color: #666;
    font-size: 0.875rem;
}

.event-detail span,
.event-detail p {
    color: #333;
}

.btn-primary {
    background: #1E3A5F;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #152d49;
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-day {
        min-height: 60px;
        padding: 0.5rem;
    }
    
    .day-number {
        font-size: 0.875rem;
    }
    
    .event-badge {
        width: 20px;
        height: 20px;
        font-size: 0.625rem;
    }
    
    .filter-btn {
        padding: 0.375rem 1rem;
        font-size: 0.875rem;
    }
    
    .month-title {
        font-size: 1.25rem;
    }
}