/* =========================
   VARIÁVEIS (ALINHADO À LANDING)
========================= */
:root {
    --bg-gradient: linear-gradient(135deg, #f5f7fb, #eef2f7);
    --color-bg-card: rgba(255,255,255,0.85);
    --color-text: #2c3e50;
    --color-link: #2563eb;
    --color-link-hover: #1d4ed8;
    --primary: linear-gradient(135deg, #2563eb, #1e40af);
    --danger: #e74c3c;

    --radius: 14px;
    --transition: all .25s ease;
    --font-base: "Inter", "Segoe UI", Arial, sans-serif;
}

/* =========================
   RESET / BASE
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-base);
}

body {
    background: var(--bg-gradient);
    color: var(--color-text);
    padding: 20px;
    line-height: 1.6;
}

/* =========================
   TOPO / BOAS-VINDAS
========================= */
.welcome {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    padding: 8px 14px;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    transition: var(--transition);
}

.logout:hover {
    opacity: .9;
    transform: translateY(-1px);
}

/* =========================
   CARDS / TOGGLE
========================= */
.card {
    background: var(--color-bg-card);
    backdrop-filter: blur(10px);
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: 0 15px 35px rgba(0,0,0,.06);
    margin-bottom: 18px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

.toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle span {
    font-size: 15px;
    color: #64748b;
}

/* Conteúdo escondido */
.toggle-box {
    display: none;
    margin-top: 18px;
}

.toggle-box.open {
    display: block;
    animation: fadeIn .25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================
   TÍTULOS
========================= */
h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

h2 {
    margin: 18px 0 10px;
    font-size: 18px;
    color: #334155;
}

/* =========================
   LINKS
========================= */
a {
    color: var(--color-link);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--color-link-hover);
}

/* =========================
   BOTÕES
========================= */
button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

button:hover {
    opacity: .9;
    transform: translateY(-1px);
}

td button {
    background: none;
    color: var(--danger);
    padding: 0;
}

td button:hover {
    text-decoration: underline;
}

/* =========================
   FORMULÁRIOS
========================= */
form {
    background: #fff;
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: 0 15px 35px rgba(0,0,0,.06);
    max-width: 620px;
    margin: 0 auto;
}

label {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 11px;
    margin-top: 6px;
    border-radius: 10px;
    border: 1px solid #dbeafe;
    font-size: 14px;
    transition: var(--transition);
}

input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* =========================
   NÃO SOU ROBÔ
========================= */
.nao-robo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    font-size: 14px;
    color: #475569;
}

/* =========================
   TABELA
========================= */
table {
    width: 100%;
    background: #fff;
    border-radius: var(--radius);
    border-collapse: collapse;
    margin-top: 18px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,.06);
}

th, td {
    padding: 14px;
    text-align: left;
}

th {
    background: #f1f5f9;
    font-size: 12px;
    text-transform: uppercase;
    color: #64748b;
}

tr:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

/* =========================
   STATUS
========================= */
.status-ativo {
    color: #16a34a;
    font-weight: 600;
}

.status-inativo {
    color: #dc2626;
    font-weight: 600;
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 16px;
        border-radius: var(--radius);
        background: #fff;
        box-shadow: 0 10px 25px rgba(0,0,0,.05);
        padding: 12px;
    }

    td {
        padding: 8px 0;
    }

    td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        color: #64748b;
        font-size: 12px;
    }
}
