body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f4f8;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 85%;
    max-width: 900px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
}

/* 📅 Estilos do Calendário */
.calendar {
    margin-bottom: 30px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.calendar-header button {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calendar-header button:hover {
    background-color: #2980b9;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-weight: 600;
    padding: 10px 0;
    text-align: center;
    color: #777;
}

.weekdays div {
    padding: 12px;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.days div {
    padding: 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.days div:hover {
    background-color: #ecf0f1;
}

.days div.selected {
    background-color: #2980b9;
    color: #fff;
}

.days div.today {
    background-color: #3498db;
    color: #fff;
    font-weight: 600;
}

/* 📌 Formulário de Eventos */
.event-form {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #dce4e9;
    border-radius: 8px;
    background-color: #f9fbfc;
}

.event-form h2 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.75em;
    margin-bottom: 20px;
}

.event-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.event-form input[type="text"],
.event-form input[type="date"],
.event-form input[type="time"],
.event-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #dce4e9;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    color: #444;
}

.event-form textarea {
    resize: vertical;
    height: 120px;
}

.event-form button {
    background-color: #2ecc71;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.event-form button:hover {
    background-color: #27ae60;
}

.event-form button#cancel-event {
    background-color: #e74c3c;
}

.event-form button#cancel-event:hover {
    background-color: #c0392b;
}

/* 📝 Lista de Eventos */
.event-list h2 {
    color: #2c3e50;
    font-size: 1.75em;
    margin-bottom: 20px;
}

.event-list ul {
    list-style: none;
    padding: 0;
}

.event-list li {
    background-color: #f9fbfc;
    border: 1px solid #dce4e9;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 🔹 Botões de Editar e Excluir */
.event-actions {
    display: flex;
    gap: 10px;
}

.event-list li button {
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.event-list li button.edit-event {
    background-color: #3498db;
    color: white;
}

.event-list li button.edit-event:hover {
    background-color: #2980b9;
}

.event-list li button.delete-event {
    background-color: #e74c3c;
    color: white;
}

.event-list li button.delete-event:hover {
    background-color: #c0392b;
}

/* 🌍 Responsividade */
@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 20px;
    }

    .calendar-header {
        flex-direction: column;
    }

    .calendar-header button {
        margin: 5px 0;
    }

    .weekdays,
    .days {
        grid-template-columns: repeat(7, 1fr);
    }

    .event-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-list li span {
        margin-bottom: 10px;
    }

    .event-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

