/* ==========================================================================
   Base Styles - Reset & Typography
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* Scrollbar Moderno */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #C1C1C5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A1A1A6;
}

/* ==========================================================================
   PWA / App-like Behavior (Migrated from style.css)
   ========================================================================== */

html,
body {
    overscroll-behavior-y: none;
    /* Disables pull-to-refresh */
    -webkit-tap-highlight-color: transparent;
    /* Removes grey tap box */
    touch-action: manipulation;
    /* Improves touch response */
}

/* Prevent text selection on UI elements */
.btn,
.nav-item,
.navbar-brand,
.fa-solid,
.fa-regular {
    user-select: none;
    -webkit-user-select: none;
}

/* Table vertical alignment */
tbody {
    vertical-align: middle;
}

/* Login layout */
.login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 400px;
    height: 90dvh;
}

/* Container base */
.container {
    background-color: var(--surface);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--sombra);
}

h1 {
    color: var(--cor-secundaria);
}