:root {
    color-scheme: light;
    --cor-fundo-01: #f8fafc;
    --cor-fundo-02: #f8fafc;
    --cor-texto: #1e293b;
    --cor-texto-suave: #64748b;
    --cor-borda: rgba(148, 163, 184, 0.25);
    --sombra-cartao: 0 6px 18px rgba(15, 23, 42, 0.05);
    --sombra-cartao-hover: 0 14px 30px rgba(15, 23, 42, 0.09);
    --foco: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    background: var(--cor-fundo-01);
    color: var(--cor-texto);
}

h1,
h2,
h3,
h4,
h5,
h6,
.marca-app {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    letter-spacing: -0.02em;
}

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 500,
        'GRAD' 0,
        'opsz' 24;
    line-height: 1;
    font-size: 20px;
}

.fundo-interface {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 92% 0%, rgba(99, 102, 241, 0.08), transparent 28%),
        radial-gradient(circle at 0% 100%, rgba(14, 165, 233, 0.06), transparent 24%),
        linear-gradient(180deg, var(--cor-fundo-01) 0%, var(--cor-fundo-02) 100%);
}

.menu-lateral {
    background: #0f172a;
}

.menu-link {
    border: 1px solid transparent;
    color: #cbd5e1;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.menu-link-ativo {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.topo-aplicacao {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(8px);
}

.painel-status-topo {
    backdrop-filter: blur(8px);
}

.cabecalho-modulo {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: var(--sombra-cartao);
}

.cabecalho-modulo h2 {
    color: #0f172a;
}

.cabecalho-modulo p {
    color: var(--cor-texto-suave);
}

main article {
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: var(--sombra-cartao);
    transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

main article:hover {
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow: var(--sombra-cartao-hover);
}

main table thead th {
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

main table tbody tr {
    transition: background-color 130ms ease;
}

main table tbody tr:hover {
    background: rgba(248, 250, 252, 0.85);
}

main input,
main select,
main textarea {
    border-color: rgba(148, 163, 184, 0.4);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

main input:focus,
main select:focus,
main textarea:focus {
    border-color: rgba(99, 102, 241, 0.58);
    box-shadow: var(--foco);
}

main button {
    transition: transform 120ms ease, filter 120ms ease;
}

main button:hover {
    filter: brightness(1.02);
}

main button:active {
    transform: translateY(1px);
}

.cartao-vidro {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--sombra-cartao);
    backdrop-filter: blur(8px);
}

.cartao-vidro:hover {
    transform: translateY(-3px);
}

.cartao-hero {
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.cartao-hero::before {
    content: '';
    position: absolute;
    right: -5rem;
    top: -5rem;
    width: 14rem;
    height: 14rem;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.25);
    filter: blur(36px);
}

.cartao-hero::after {
    content: '';
    position: absolute;
    left: -5rem;
    bottom: -5rem;
    width: 14rem;
    height: 14rem;
    border-radius: 9999px;
    background: rgba(14, 165, 233, 0.16);
    filter: blur(36px);
}

.barra-grafico {
    width: 2rem;
    border-radius: 0.85rem 0.85rem 0 0;
    background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.28);
}

.barra-grafico-neutra {
    width: 2rem;
    border-radius: 0.85rem 0.85rem 0 0;
    background: #e2e8f0;
}

.rodape-aplicacao,
.rodape-publico {
    backdrop-filter: blur(8px);
}

@media (max-width: 1023px) {
    .cartao-hero {
        border-radius: 1.5rem;
    }

    .barra-grafico,
    .barra-grafico-neutra {
        width: 1.5rem;
    }
}
