* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #eef2f7;
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2937;
}

.topo {
    background: #ffffff;
    padding: 18px 28px;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.topo strong {
    font-size: 20px;
    color: #111827;
}

.topo span {
    color: #6b7280;
    margin-left: 6px;
}

.topo nav {
    margin-top: 10px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.topo nav a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

.container {
    max-width: 1180px;
    margin: 30px auto;
    padding: 0 18px;
}

h1 {
    font-size: 34px;
    margin-bottom: 24px;
    color: #111827;
}

h2 {
    color: #111827;
}

/* FORMULÁRIOS */
.card,
section.card,
form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 26px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

form > div {
    margin-bottom: 14px;
}

label {
    display: block;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
}

input[type="date"],
input[type="text"],
select {
    width: 100%;
    max-width: 430px;
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 14px;
    background: #ffffff;
}

input[type="date"]:focus,
input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

input[type="radio"] {
    margin-right: 6px;
}

button,
input[type="submit"] {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
}

button:hover,
input[type="submit"]:hover {
    background: #1d4ed8;
}

a {
    color: #2563eb;
    font-weight: 700;
}

/* TOPO DO CALENDÁRIO */
.cal-topo {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px 18px 0 0;
    padding: 18px 22px;
    margin-top: 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.cal-topo h2 {
    margin: 0;
    font-size: 26px;
}

.cal-topo a,
.btn-sec {
    background: #eff6ff;
    color: #2563eb;
    border-radius: 999px;
    padding: 8px 14px;
    text-decoration: none;
    font-size: 14px;
}

/* CALENDÁRIO */
.calendario {
    display: grid;
    grid-template-columns: repeat(7, minmax(130px, 1fr));

    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0 0 18px 18px;
    overflow: hidden;

    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.dia-semana {
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    padding: 14px 8px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.dia {
    min-height: 140px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 38px 8px 8px;
    position: relative;
}

.dia:hover {
    background: #f8fbff;
}

.dia.vazio {
    background: #f9fafb;
}

.num {
    position: absolute;
    top: 8px;
    right: 10px;

    width: 28px;
    height: 28px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: 800;
    color: #334155;
    background: #f1f5f9;
}

/* EVENTOS */
.evento {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.35;
    color: #1e293b;
}

.evento strong {
    color: #1e3a8a;
}

.evento p {
    margin: 4px 0;
}

.excluir {
    color: #dc2626;
    font-size: 12px;
    text-decoration: none;
    font-weight: 700;
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .container {
        overflow-x: auto;
    }

    .calendario {
        min-width: 900px;
    }

    .cal-topo {
        min-width: 900px;
    }
}