/**
 * Estilos Globais
 * Reset de estilos padrão — tokens em shared.css
 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }

p {
    color: var(--cor-texto);
}

a {
    color: var(--cor-principal);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--cor-secundaria);
}

/* Scrollbar Customizada */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--cor-fundo);
}

::-webkit-scrollbar-thumb {
    background: var(--cor-principal);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cor-secundaria);
}

/* Seleção de texto */
::selection {
    background-color: var(--cor-principal);
    color: white;
}

::-moz-selection {
    background-color: var(--cor-principal);
    color: white;
}

/* Inputs */
input,
textarea,
select {
    font-family: inherit;
    font-size: 1em;
}

/* Imagens responsivas */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Tabela */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--cor-border);
}

th {
    font-weight: 600;
    background: var(--cor-card);
}

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--cor-texto-muted);
}

.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.5em; }
    h3 { font-size: 1.2em; }
}
