/* ============================================================
   TRANSVILLE - Estilo Global
   Identidade: Vermelho #E30613 | Preto #1a1a1a | Branco
   ============================================================ */

:root {
    --tv-red: #E30613;
    --tv-red-dark: #b0040f;
    --tv-black: #1a1a1a;
    --tv-gray: #6b7280;
    --tv-gray-light: #f3f4f6;
    --tv-border: #e5e7eb;
    --tv-white: #ffffff;
    --tv-success: #16a34a;
    --tv-warning: #d97706;
    --tv-danger: #dc2626;
    --tv-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --tv-shadow-lg: 0 10px 25px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.05);
    --tv-radius: 12px;
    --tv-font: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--tv-font);
    background: var(--tv-gray-light);
    color: var(--tv-black);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--tv-red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    font-family: inherit;
}
.btn-primary { background: var(--tv-red); color: #fff; }
.btn-primary:hover { background: var(--tv-red-dark); text-decoration: none; }
.btn-secondary { background: #fff; color: var(--tv-black); border: 1px solid var(--tv-border); }
.btn-secondary:hover { background: var(--tv-gray-light); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--tv-gray); }
.btn-danger { background: var(--tv-danger); color: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Formulários ---------- */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 7px;
    color: #374151;
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--tv-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
    background: #fff;
}
.form-control:focus {
    outline: none;
    border-color: var(--tv-red);
    box-shadow: 0 0 0 3px rgba(227,6,19,.12);
}

/* ---------- Alertas ---------- */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}
.alert-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--tv-gray); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.badge-ativo { background: #dcfce7; color: #166534; }
.badge-inativo { background: #fee2e2; color: #991b1b; }
.badge-admin { background: #1a1a1a; color: #fff; }
