* { box-sizing: border-box; }

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: #f4f6f8;
    color: #1a1a1a;
    margin: 0;
}

.topbar {
    background: #0b6e4f;
    padding: 1rem 1.5rem;
}

.topbar .logo {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
}

.container {
    max-width: 720px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

h1 { margin-top: 0; }

.form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form label {
    font-weight: 600;
    margin-top: 0.6rem;
}

.form input,
.form select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

button, .button {
    margin-top: 1.2rem;
    background: #0b6e4f;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

button:hover, .button:hover {
    background: #095a40;
}

.slots-table, .details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.slots-table th, .slots-table td,
.details-table th, .details-table td {
    text-align: left;
    padding: 0.6rem;
    border-bottom: 1px solid #eee;
}

.details-table th {
    width: 40%;
    color: #555;
}

.alert {
    padding: 0.8rem 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.alert-warning { background: #fff3cd; color: #7a5b00; }
.alert-error   { background: #fde2e1; color: #8a1f1f; }
.alert-success { background: #dcf5e6; color: #14532d; }

.footer {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    margin: 2rem 0;
}

.summary {
    background: #eef7f2;
    padding: 0.8rem 1rem;
    border-radius: 4px;
}

/* ---------- Calendário ---------- */

.subtitle {
    color: #666;
    margin-top: -0.5rem;
}

.calendar-wrapper {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.calendar-card {
    flex: 1 1 320px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 1rem;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.calendar-month-label {
    font-weight: 600;
    font-size: 1.05rem;
}

.nav-arrow {
    text-decoration: none;
    color: #0b6e4f;
    font-size: 1.4rem;
    padding: 0 0.4rem;
}

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

.calendar-headers span {
    font-weight: 600;
    color: #888;
    font-size: 0.85rem;
    padding-bottom: 0.4rem;
}

.day-cell {
    padding: 0.6rem 0;
    border-radius: 50%;
    font-size: 0.95rem;
}

.day-cell.empty {
    visibility: hidden;
}

.day-cell.past,
.day-cell.unavailable {
    color: #ccc;
}

.day-cell.available {
    background: #dcf5e6;
    color: #0b6e4f;
    font-weight: 600;
    cursor: pointer;
}

.day-cell.available:hover {
    background: #b9ebcd;
}

.day-cell.selected {
    background: #0b6e4f !important;
    color: #fff !important;
}

.calendar-times-card {
    flex: 1 1 280px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 1.2rem;
}

.empty-state {
    color: #888;
}

.times-title {
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.times-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.time-slot {
    display: block;
    text-align: center;
    padding: 0.55rem;
    border: 1px solid #0b6e4f;
    border-radius: 4px;
    color: #0b6e4f;
    text-decoration: none;
    font-weight: 500;
}

.time-slot:hover {
    background: #0b6e4f;
    color: #fff;
}
