/* ==========================================================================
   Credenciamento — estilos compartilhados
   Cores da marca: roxo #523278 e coral #F9485C
   ========================================================================== */

/* Poppins (fonte do site simpleeducation.com.br), servida localmente */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-800.woff2") format("woff2"); }
:root {
    --brand: #F9485C;
    --brand-700: #D93448;
    --brand-600: #E83E52;
    --brand-100: #FED9DE;
    --brand-50: #FFF0F2;
    --accent: #FFB71B;
    --accent-600: #F2A600;
    --accent-50: #FFF6DF;

    --bg: #FFFFFF;
    --surface: #ffffff;
    --surface-2: #F9F9F9;
    --border: #ECECEC;
    --border-strong: #DCDCDC;
    --text: #2B2B2B;
    --text-2: #4A4349;
    --muted: #7B7579;

    --success: #17804f;
    --success-bg: #e6f5ed;
    --warning: #9a5b00;
    --warning-bg: #fff3dc;
    --danger: #c8333f;
    --danger-bg: #fdecee;
    --neutral: #5F6670;
    --neutral-bg: #F1F1F1;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(29, 24, 40, 0.06);
    --shadow: 0 1px 3px rgba(29, 24, 40, 0.06), 0 4px 12px rgba(29, 24, 40, 0.05);
    --shadow-lg: 0 10px 40px rgba(29, 24, 40, 0.18);
    --ring: 0 0 0 3px rgba(249, 72, 92, 0.22);

    --font: "Poppins", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--text); letter-spacing: -0.01em; line-height: 1.25; }
a { color: var(--brand); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

.icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }
.icon-xl { width: 32px; height: 32px; }

.muted { color: var(--muted); }
.text-sm { font-size: 13px; }
.hidden { display: none !important; }

/* ---------- Barra superior (telas de administração) ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
}
.topbar-brand img { height: 40px; width: auto; }
.topbar-brand span {
    padding-left: 12px;
    border-left: 1px solid var(--border);
    color: var(--text-2);
    font-size: 14px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.nav a:hover { background: var(--brand-50); color: var(--brand); }
.nav a.active { background: var(--brand-50); color: var(--brand); font-weight: 600; }

.nav-extra {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

/* ---------- Página ---------- */

.page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px 24px 48px;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.page-header h1 { font-size: 24px; font-weight: 700; }
.page-header p { color: var(--muted); margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

[hidden] { display: none !important; }   /* .alert, .btn e outros definem display e anulariam o atributo */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: 20px; }

@media (max-width: 960px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Cartões ---------- */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}
.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}
.card-title .icon { color: var(--brand); }
.card-subtitle { color: var(--muted); font-size: 13px; margin-top: 2px; }
.card-body { padding: 22px; }
.card-footer {
    padding: 16px 22px;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ---------- Indicadores ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.stat-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--brand-50);
    color: var(--brand);
    flex-shrink: 0;
}
.stat-icon .icon { width: 22px; height: 22px; }
.stat-icon.success { background: var(--success-bg); color: var(--success); }
.stat-icon.warning { background: var(--warning-bg); color: var(--warning); }
.stat-icon.accent { background: var(--accent-50); color: var(--accent-600); }
.stat-label { color: var(--muted); font-size: 13px; font-weight: 500; }
.stat-value {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}
.stat-hint { color: var(--muted); font-size: 12px; margin-top: 2px; min-height: 18px; }

/* ---------- Botões ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
    background: var(--surface);
    color: var(--text);
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-700); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover:not(:disabled) { background: var(--accent-600); }

.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-2); border-color: var(--brand); color: var(--brand); }

.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { background: var(--brand-50); color: var(--brand); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #ad2833; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover:not(:disabled) { background: #106a40; }

.btn-sm { padding: 6px 10px; font-size: 13px; }
.btn-lg { padding: 14px 22px; font-size: 16px; border-radius: var(--radius); }
.btn-xl { padding: 18px 28px; font-size: 19px; border-radius: var(--radius); }
.btn-block { width: 100%; }

.btn-icon { padding: 7px; }
.btn-icon.btn-sm { padding: 6px; }
.btn-icon-danger:hover:not(:disabled) { background: var(--danger-bg); color: var(--danger); }

/* ---------- Formulários ---------- */

.field { margin-bottom: 18px; }
.field > label, .label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}
.field-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

.input, .select, .textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #a6a1b0; }
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: var(--ring);
}
.select { cursor: pointer; }
.input-lg { padding: 16px 18px; font-size: 18px; border-radius: var(--radius); }

.input-group { position: relative; }
.input-group > .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}
.input-group > .input { padding-left: 38px; }

.toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.toolbar .input-group { flex: 1; min-width: 240px; }
.toolbar .select { width: auto; min-width: 200px; }

/* Seleção de dias (checkbox em formato de botão) */
.chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 8px;
}
.chip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-2);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    transition: all .15s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip:has(input:checked) {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.chip:has(input:focus-visible) { box-shadow: var(--ring); }

/* ---------- Tabelas ---------- */

.table-wrap { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.table th {
    text-align: left;
    padding: 11px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
    vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--brand-50); }
.table td.strong { color: var(--text); font-weight: 600; }
.table td.nowrap, .table th.nowrap { white-space: nowrap; }
.table td.actions { white-space: nowrap; text-align: right; }
.table .cell-empty { text-align: center; padding: 48px 16px; color: var(--muted); }

/* ---------- Badges ---------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    background: var(--neutral-bg);
    color: var(--neutral);
}
.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-brand { background: var(--brand-50); color: var(--brand); }
.badge-muted { background: var(--neutral-bg); color: var(--neutral); }
.badge-plain::before { display: none; }

.tag {
    display: inline-block;
    padding: 2px 7px;
    margin: 1px 2px 1px 0;
    border-radius: 6px;
    background: var(--neutral-bg);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.tag.today { background: var(--brand-100); color: var(--brand); font-weight: 700; }

/* ---------- Alertas ---------- */

.alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-size: 14px;
}
.alert .icon { margin-top: 1px; }
.alert-info { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }
.alert-success { background: var(--success-bg); border-color: #c6e9d6; color: var(--success); }
.alert-warning { background: var(--warning-bg); border-color: #f6dfb0; color: var(--warning); }
.alert-danger { background: var(--danger-bg); border-color: #f7c9ce; color: var(--danger); }
.alert strong { display: block; margin-bottom: 2px; }

/* ---------- Estado vazio / carregando ---------- */

.empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
}
.empty .icon { width: 36px; height: 36px; color: var(--border-strong); margin-bottom: 10px; }
.empty strong { display: block; color: var(--text-2); margin-bottom: 4px; }

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid var(--brand-100);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Modal ---------- */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(29, 24, 40, 0.5);
    overflow-y: auto;
    padding: 40px 16px;
}
.modal-dialog {
    max-width: 640px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 18px; }
.modal-body { padding: 22px; }
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 22px;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-row .field-largo { grid-column: 1 / -1; }

/* Perguntas de escolha única (rádio) e múltipla escolha (caixas) */
.escolhas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.escolha {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface);
    cursor: pointer; font-size: 15px;
}
.escolha:hover { border-color: var(--event, var(--brand)); }
.escolha:has(input:checked) { border-color: var(--event, var(--brand)); background: var(--brand-50); }
.escolha input { accent-color: var(--event, var(--brand)); width: 18px; height: 18px; margin: 0; flex: none; }
.escolha span { overflow-wrap: anywhere; }

/* ==========================================================================
   Telas públicas (totem e cadastro)
   ========================================================================== */

.kiosk {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(249, 72, 92, 0.22), transparent 60%),
        radial-gradient(900px 600px at 110% 110%, rgba(255, 255, 255, 0.10), transparent 60%),
        linear-gradient(160deg, #5c3887 0%, #523278 45%, #3c2259 100%);
}

.kiosk-card {
    width: 100%;
    max-width: 760px;
    background: var(--surface);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(20, 8, 40, 0.35);
    padding: 48px 56px;
}
@media (max-width: 640px) { .kiosk-card { padding: 32px 22px; border-radius: 18px; } }

.kiosk-logo { display: block; height: 72px; width: auto; margin: 0 auto 28px; }
.kiosk-title { text-align: center; font-size: 30px; font-weight: 700; }
.kiosk-subtitle { text-align: center; color: var(--muted); font-size: 17px; margin-top: 8px; }

.kiosk-footer {
    margin-top: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 15px;
}
.kiosk-footer a { font-weight: 600; text-decoration: none; }
.kiosk-footer a:hover { text-decoration: underline; }

/* ==========================================================================
   Sistema de eventos — complementos
   ========================================================================== */

/* Usuário logado na barra superior */
.topbar-user {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding-left: 12px;
    border-left: 1px solid var(--border);
    white-space: nowrap;
}
.topbar-user .nome { font-size: 13px; color: var(--text-2); font-weight: 500; }
.topbar-user .nivel { font-size: 11px; color: var(--muted); }

/* Cabeçalho de um evento no painel, com abas */
.event-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.event-header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 22px 24px 0;
}
.event-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.event-header .breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.event-header .breadcrumb a { color: var(--muted); text-decoration: none; }
.event-header .breadcrumb a:hover { color: var(--brand); }
.event-header h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
}
.event-header .event-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.event-header .event-meta { color: var(--muted); font-size: 14px; margin-top: 4px; }

.tabs {
    display: flex;
    gap: 4px;
    margin-top: 18px;
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 2px solid transparent;
    color: var(--text-2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
.tabs a:hover { color: var(--brand); }
.tabs a.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

/* Vitrine pública de eventos */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-header img { height: 52px; }

.hero {
    background:
        radial-gradient(900px 400px at 15% -20%, rgba(249, 72, 92, 0.25), transparent 60%),
        linear-gradient(160deg, #5c3887 0%, #523278 50%, #3c2259 100%);
    color: #fff;
    padding: 56px 24px 96px;
}
.hero-inner { max-width: 1200px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.hero p { color: rgba(255, 255, 255, 0.82); font-size: 18px; margin-top: 10px; max-width: 640px; }

.site-main { max-width: 1200px; margin: -56px auto 0; padding: 0 24px 64px; }

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.event-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform .15s, box-shadow .15s;
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.event-card-banner {
    aspect-ratio: 16 / 8;
    background-color: var(--brand);
    background-size: cover;
    background-position: center;
}
.event-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.event-card-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--event, var(--brand));
}
.event-card h2 { font-size: 19px; font-weight: 700; }
.event-card p {
    color: var(--muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.event-card-footer { margin-top: auto; padding-top: 6px; }

.event-banner {
    height: 300px;
    background-color: var(--event, var(--brand));
    background-size: cover;
    background-position: center;
    position: relative;
}
.event-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(20,10,35,0.45) 100%);
}
@media (max-width: 640px) {
    .event-banner { height: 180px; }
    .hero h1 { font-size: 28px; }
}

.event-page {
    max-width: 880px;
    margin: -80px auto 56px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.btn-event { background: var(--event, var(--brand)); color: #fff; }
.btn-event:hover:not(:disabled) { filter: brightness(0.92); }

/* Dia da programação (página do evento e cadastro) */
.day-block + .day-block { margin-top: 18px; }
.day-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
}
.day-title .icon { color: var(--event, var(--brand)); }
.activity {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-2);
}
.activity-time { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 92px; }

/* Escolha de dia com atividades (cadastro) */
.day-option {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.day-option + .day-option { margin-top: 10px; }
.day-option:hover { border-color: var(--event, var(--brand)); }
.day-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.day-option .check {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 1px;
    border: 2px solid var(--border-strong);
    border-radius: 6px;
    display: grid;
    place-items: center;
    color: transparent;
    transition: all .15s;
}
.day-option .check .icon { width: 14px; height: 14px; stroke-width: 3; }
.day-option:has(input:checked) {
    border-color: var(--event, var(--brand));
    background: var(--brand-50);
}
.day-option:has(input:checked) .check {
    background: var(--event, var(--brand));
    border-color: var(--event, var(--brand));
    color: #fff;
}
.day-option:has(input:focus-visible) { box-shadow: var(--ring); }
.day-option .day-name { font-weight: 700; }
.day-option .day-activities { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Barra superior em telas estreitas */
@media (max-width: 720px) {
    .topbar-inner { padding: 0 12px; gap: 10px; }
    .topbar-brand span, .topbar-user .nome, .topbar-user .nivel { display: none; }
    .topbar-user { padding-left: 6px; }
    .nav { min-width: 0; }
    .nav a { padding: 8px; }
    .event-header-inner { padding: 16px 12px 0; }
    .page { padding: 20px 12px 40px; }

    /* Celular: menu só com ícones (o nome fica no title), logo menor */
    .topbar-brand img { height: 32px; }
    .nav { justify-content: flex-end; }
    .nav a .rotulo { display: none; }
    .nav a .icon { width: 20px; height: 20px; }

    /* Abas do evento quebram linha em vez de esconder as últimas; nomes curtos */
    .tabs { flex-wrap: wrap; overflow: visible; gap: 0 2px; margin-top: 14px; }
    .tabs a { padding: 9px 10px; font-size: 13.5px; gap: 6px; }
    .tabs .rotulo-longo { display: none; }

    .event-header h1 { font-size: 20px; }
    .page-actions .btn { flex: 1 1 auto; justify-content: center; }

    /* Tabelas .table-cartoes: cada linha vira um cartão, com o título de cada coluna (data-rotulo) */
    .table.table-cartoes thead { display: none; }
    .table.table-cartoes, .table.table-cartoes tbody, .table.table-cartoes tr, .table.table-cartoes td { display: block; width: 100%; }
    .table.table-cartoes tr { padding: 12px 14px; border-bottom: 1px solid var(--border); }
    .table.table-cartoes tbody tr:last-child { border-bottom: none; }
    .table.table-cartoes td, .table.table-cartoes tbody tr:last-child td { padding: 2px 0; border: 0; white-space: normal; }
    .table.table-cartoes tbody tr:hover td { background: transparent; }
    .table.table-cartoes td[data-rotulo]::before {
        content: attr(data-rotulo);
        display: block; margin-top: 8px;
        font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
    }
    .table.table-cartoes td.actions, .table.table-cartoes td.acoes { text-align: left; padding-top: 10px; }
    .table.table-cartoes .cell-empty { padding: 32px 0; }

    /* Tabelas largas (relatórios): aviso e borda esmaecida enquanto houver colunas à direita */
    .aviso-deslizar:not([hidden]) { display: block; padding: 8px 16px 0; font-size: 12px; color: var(--muted); }
    .table-wrap.tem-mais {
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
        mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
    }
}
.aviso-deslizar { display: none; }

/* ==========================================================================
   Tema Simple — segue o site simpleeducation.com.br
   coral #F9485C como cor principal, amarelo #FFB71B nos destaques,
   fundo branco e cartões cinza-claros sem borda, cantos de 16 px
   ========================================================================== */

:root {
    --roxo-marca: #523278;   /* só no logo e em detalhes */
    --card: #F9F9F9;
}

body { font-size: 15px; }
h1, h2, h3, h4, .kiosk-title, .stat-value, .card-title { font-weight: 700; letter-spacing: -0.015em; }

/* Cartões e indicadores: cinza-claro, sem borda nem sombra */
.card, .stat {
    background: var(--card);
    border-color: transparent;
    box-shadow: none;
}
.card-header, .card-footer { border-color: #ECECEC; }
.card-footer { background: #F3F3F3; }
.stat { padding: 24px; }
.stat-icon { background: #FFFFFF; color: var(--brand); }
.stat-icon.success { background: #FFFFFF; }
.stat-icon.warning { background: #FFFFFF; }
.stat-icon.accent { background: #FFFFFF; color: var(--accent-600); }

.table th { background: #F1F1F1; color: #6B6570; }
.table td { border-color: #ECECEC; }
.table tbody tr:hover td { background: #FFF5F6; }

/* Botões */
.btn { border-radius: var(--radius-sm); font-weight: 600; }
.btn-accent { background: var(--accent); color: #2B2B2B; }
.btn-accent:hover:not(:disabled) { background: var(--accent-600); }
.btn-dark { background: #5F6670; color: #FFFFFF; }
.btn-dark:hover:not(:disabled) { background: #4C525B; }
.btn-secondary { background: #FFFFFF; border-color: #DCDCDC; }

/* Barra superior: branca como o cabeçalho do site, links em coral */
.topbar { border-bottom-color: #F1F1F1; }
.nav a { color: #4A4349; }
.nav a:hover, .nav a.active { background: transparent; color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }

/* Badges */
.tag.today { background: var(--brand-100); color: var(--brand-700); }
.badge-brand { background: var(--brand-50); color: var(--brand-700); }

/* Telas públicas (totem, cadastro, login): fundo coral como o topo do site */
.kiosk {
    background:
        radial-gradient(700px 500px at 88% 12%, rgba(255, 255, 255, 0.16), transparent 60%),
        radial-gradient(600px 420px at 6% 96%, rgba(255, 183, 27, 0.20), transparent 60%),
        #F9485C;
}
.kiosk-card { border-radius: 32px; box-shadow: 0 24px 60px rgba(120, 20, 35, 0.25); }
.kiosk-title { font-size: 32px; }

/* Vitrine pública (eventos) */
.hero {
    background:
        radial-gradient(700px 420px at 92% -10%, rgba(255, 255, 255, 0.18), transparent 60%),
        radial-gradient(600px 400px at 0% 120%, rgba(255, 183, 27, 0.22), transparent 60%),
        #F9485C;
}
.hero h1 { font-size: 44px; font-weight: 800; line-height: 1.1; }
.event-card { border: none; background: var(--card); box-shadow: none; }
.event-card:hover { box-shadow: 0 12px 30px rgba(43, 43, 43, 0.10); }
.event-card-banner { border-radius: 16px 16px 0 0; }
.event-header { border-bottom-color: #F1F1F1; }
.tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }
.day-option { background: #FFFFFF; }
.day-option:has(input:checked) { background: var(--brand-50); }

/* A Poppins é mais larga: tabelas um pouco mais compactas */
.table { font-size: 13.5px; }
.table th { padding: 10px 12px; font-size: 11.5px; }
.table td { padding: 12px 12px; }
.tag { font-size: 11.5px; padding: 2px 6px; }
.badge { font-size: 11.5px; }

/* Cartão que flutua sobre o banner (página do evento e cadastro): branco com sombra suave */
.event-page .card, .event-page > .card {
    background: #FFFFFF;
    box-shadow: 0 18px 48px rgba(43, 43, 43, 0.10);
}
.event-banner::after { background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(110, 20, 35, 0.28) 100%); }

/* Aviso informativo neutro (o coral fica reservado para ação e erro não parecer igual a aviso) */
.alert-info { background: #F0F4FA; border-color: #DCE4F0; color: #34495E; }
