/* ============================================================
   RizeUp Online — Painel Admin
   ============================================================ */

/* ---------- Login ---------- */
.admin-login-body {
    background: linear-gradient(135deg, #0a1736, #112252);
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-card {
    background: #fff;
    border-radius: 28px;
    padding: 48px 42px;
    width: min(440px, 100%);
    box-shadow: 0 40px 80px -20px rgba(0,0,0,.5);
}

.login-card .logo {
    color: var(--dk);
    margin-bottom: 28px;
}

.login-card h1 {
    font-size: 32px;
    margin-bottom: 6px;
}

.login-card .mut {
    color: var(--mut);
    margin: 0 0 28px;
}

.login-card label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
}

.login-card input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--ln);
    font: inherit;
    margin-bottom: 18px;
    outline: none;
    transition: border-color .2s;
}

.login-card input:focus {
    border-color: var(--roy);
}

.login-card .btn {
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

.login-card .voltar {
    text-align: center;
    margin: 26px 0 0;
    font-size: 14px;
    color: var(--mut);
}

.login-card .voltar a:hover {
    color: var(--roy);
}

.alert {
    background: #fee2e2;
    color: #991b1b;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14.5px;
    margin-bottom: 22px;
}

/* ---------- Layout do painel ---------- */
.admin-body {
    background: var(--pp);
    margin: 0;
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-side {
    background: var(--dk);
    color: #fff;
    padding: 30px 22px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo {
    color: #fff;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -.04em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-logo svg { width: 30px; height: 30px; }

.admin-nav {
    display: grid;
    gap: 4px;
}

.admin-nav a {
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15.5px;
    color: rgba(255,255,255,.75);
    transition: all .2s;
}

.admin-nav a:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.admin-nav a.on {
    background: var(--sun);
    color: #1a0d00;
}

.admin-rodape {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: 14px;
}

.admin-rodape strong { color: #fff; }
.admin-rodape small { color: rgba(255,255,255,.55); }

.admin-rodape .sair {
    display: inline-block;
    margin-top: 12px;
    color: var(--sun);
    font-weight: 700;
    font-size: 14px;
}

.admin-main {
    padding: 40px 46px 80px;
    max-width: 100%;
    overflow-x: auto;
}

/* ---------- Cabeçalho ---------- */
.admin-header {
    margin-bottom: 34px;
}

.admin-header h1 {
    font-size: 34px;
    margin-bottom: 6px;
}

.admin-header .mut {
    color: var(--mut);
    margin: 0;
}

/* ---------- Stats ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px -18px rgba(10,23,54,.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-card.accent {
    background: linear-gradient(135deg, var(--sun), #ff7a2e);
}

.stat-card.accent .stat-lbl { color: rgba(26,13,0,.7); }
.stat-card.accent .stat-val { color: #1a0d00; }

.stat-lbl {
    font-size: 13px;
    font-weight: 700;
    color: var(--mut);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.stat-val {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    color: var(--ink);
}

/* ---------- Secções ---------- */
.admin-section {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px -18px rgba(10,23,54,.15);
}

.admin-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.admin-section-head h2 {
    font-size: 22px;
}

.admin-section .link {
    color: var(--roy);
    font-weight: 700;
    font-size: 14.5px;
}

.admin-section .link:hover { text-decoration: underline; }

/* ---------- Tabela ---------- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.admin-table th {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--ln);
    font-size: 12.5px;
    font-weight: 800;
    color: var(--mut);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.admin-table td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--ln);
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-table a {
    color: var(--roy);
    font-weight: 700;
}

.admin-table a:hover { text-decoration: underline; }

/* Pills de estado */
.pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pill-novo       { background: #dbeafe; color: #1e40af; }
.pill-contactado { background: #fef3c7; color: #92400e; }
.pill-inscrito   { background: #d1fae5; color: #065f46; }
.pill-cancelado  { background: #fee2e2; color: #991b1b; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
    .admin-body {
        grid-template-columns: 1fr;
    }
    .admin-side {
        position: static;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 16px 20px;
        gap: 16px;
    }
    .admin-nav {
        grid-auto-flow: column;
        overflow-x: auto;
    }
    .admin-nav a {
        padding: 8px 14px;
        white-space: nowrap;
    }
    .admin-rodape {
        margin-top: 0;
        padding-top: 0;
        border: 0;
        margin-left: auto;
    }
    .admin-main { padding: 24px 20px 60px; }
    .admin-header h1 { font-size: 26px; }
    .admin-section { padding: 20px; }
    .admin-table { font-size: 14px; }
    .admin-table th, .admin-table td { padding: 10px 6px; }
}

/* ---------- Filtros ---------- */
.filtros-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}

.filtro label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--mut);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.filtro input,
.filtro select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--ln);
    font: inherit;
    background: #fff;
    color: var(--ink);
    outline: none;
}

.filtro input:focus,
.filtro select:focus {
    border-color: var(--roy);
}

.filtro-acoes {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filtro-acoes .btn {
    padding: 12px 22px;
}

.filtro-acoes .limpar {
    color: var(--mut);
    font-weight: 700;
    font-size: 14px;
}

.filtro-acoes .limpar:hover { color: var(--roy); }

/* ---------- Inline estado na tabela ---------- */
.inline-estado { display: inline; }

.estado-select {
    padding: 6px 10px;
    border-radius: 99px;
    border: 0;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    outline: none;
}

.estado-novo       { background: #dbeafe; color: #1e40af; }
.estado-contactado { background: #fef3c7; color: #92400e; }
.estado-inscrito   { background: #d1fae5; color: #065f46; }
.estado-cancelado  { background: #fee2e2; color: #991b1b; }

/* ---------- Paginação ---------- */
.paginacao {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--ln);
    font-size: 14.5px;
    color: var(--mut);
}

.paginacao a {
    color: var(--roy);
    font-weight: 700;
}

.paginacao a:hover { text-decoration: underline; }

/* ---------- Ver inscrição ---------- */
.detalhe-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 22px;
    align-items: start;
}

.detalhe-h {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--mut);
    margin: 0 0 14px;
}

.detalhe-dl {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px 20px;
    margin: 0;
    font-size: 16px;
}

.detalhe-dl dt {
    font-weight: 700;
    color: var(--mut);
}

.detalhe-dl dd {
    margin: 0;
}

.detalhe-dl a { color: var(--roy); font-weight: 700; }
.detalhe-dl a:hover { text-decoration: underline; }

.mensagem-box {
    background: var(--pp);
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 15.5px;
    line-height: 1.6;
    margin: 0;
}

.btn-perigo {
    width: 100%;
    padding: 12px 20px;
    border-radius: 12px;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 800;
    font-size: 14.5px;
    transition: background .2s;
}

.btn-perigo:hover {
    background: #fecaca;
}

@media (max-width: 900px) {
    .filtros-form { grid-template-columns: 1fr 1fr; }
    .filtro-acoes { grid-column: 1 / -1; }
    .detalhe-grid { grid-template-columns: 1fr; }
}

/* ---------- Formulários do admin ---------- */
.campo { margin-bottom: 18px; }

.campo label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--mut);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}

.campo input[type="text"],
.campo input[type="number"],
.campo input[type="password"],
.campo input[type="email"],
.campo select,
.campo textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--ln);
    font: inherit;
    background: #fff;
    color: var(--ink);
    outline: none;
    transition: border-color .2s;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    border-color: var(--roy);
}

.campo textarea { resize: vertical; }

.campo input[type="color"] {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--ln);
    cursor: pointer;
    background: #fff;
    padding: 4px;
}

.campo-duplo,
.campo-triplo {
    display: grid;
    gap: 18px;
}

.campo-duplo { grid-template-columns: 1fr 1fr; }
.campo-triplo { grid-template-columns: 1fr 1fr 1fr; }

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink);
    cursor: pointer;
    padding: 10px 0;
}

.checkbox input { width: auto; margin: 0; cursor: pointer; }

/* Cores das áreas (bolinhas) */
.cor-preview {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    border: 1px solid rgba(0,0,0,.08);
}

/* Links de ação */
.acao {
    color: var(--roy);
    font-weight: 700;
    font-size: 14px;
}

.acao:hover { text-decoration: underline; }

.acao-perigo {
    color: #991b1b;
    font-weight: 700;
    font-size: 14px;
}

.acao-perigo:hover { text-decoration: underline; }

/* Alertas verdes */
.alert-ok {
    background: #d1fae5;
    color: #065f46;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14.5px;
    margin-bottom: 22px;
}

@media (max-width: 900px) {
    .campo-duplo,
    .campo-triplo { grid-template-columns: 1fr; }
}

.acao-ok {
    color: #065f46;
    font-weight: 700;
    font-size: 14px;
}
.acao-ok:hover { text-decoration: underline; }