body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 14px;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 0;
}

header {
    background-color: #B20000;
    color: white;
    padding: 15px 0;
    text-align: center;
}

.filter-section {
    margin: 15px 0;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-form input {
    padding: 10px;
    width: 100%;
    margin-right: 0;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-form button {
    padding: 10px 15px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.calendar-container {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background-color: white;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.calendar-header button {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.calendar-header button:hover {
    background: #b3b3b357;
}

.calendar-header h2 {
    margin: 0;
    text-transform: capitalize;
    font-weight: bold;
    font-size: 16px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.day-header {
    padding: 8px 5px;
    text-align: center;
    font-weight: bold;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
    font-size: 12px;
}

.day-cell {
    min-height: 50px;
    padding: 3px;
    border: 1px solid #eee;
    position: relative;
    font-size: 12px;
}

.day-cell.empty {
    background-color: #f9f9f9;
}

.day-cell.has-event {
    background-color: #fce8e8;
}

.day-cell.has-event:hover {
    background-color: #f8d0d0;
}

/* Estilos para a lista de eventos (DESKTOP) */
.events-container {
    margin-top: 20px;
    padding: 15px;
}

.events-title {
    font-size: 1.1em;
    margin-bottom: 10px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-item {
    display: grid;
    grid-template-columns: 120px 610px 1fr auto;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.event-date {
    color: #666;
    font-weight: bold;
}

.event-title {
    font-weight: bold;
}

.event-course {
    margin-left: 15px;
    margin-right: 15px;
    color: #555;
    font-weight: bold;
}

.event-time {
    color: #666;
    text-align: right;
}

.no-events {
    color: #999;
    font-style: italic;
    padding: 15px 0;
    text-align: center;
}

/* VERSÃO MOBILE - Aplica apenas abaixo de 768px */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .filter-form {
        flex-direction: column;
    }

    .filter-form input,
    .filter-form button {
        width: 100%;
    }

    .calendar-header h2 {
        font-size: 16px;
    }

    .day-header {
        font-size: 11px;
        padding: 6px 2px;
    }

    .day-cell {
        min-height: 45px;
        font-size: 11px;
    }

    /* LISTA DE EVENTOS MOBILE */
    .event-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        background-color: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .event-date {
        color: #666;
        margin-bottom: 5px;
        font-size: 0.9em;
    }

    .event-title {
        font-size: 1.1em;
        margin-bottom: 8px;
    }

    .event-details {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin-top: 8px;
        font-size: 0.9em;
    }

    .event-course {
        margin-left: 0;
        color: #666;
        font-weight: bold;
    }

    .event-time {
        color: #666;
        font-weight: 500;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 360px) {
    .day-header {
        font-size: 10px;
    }
    
    .day-cell {
        min-height: 40px;
    }
    
    .event-item {
        padding: 12px;
    }
}