/* Alap: reset, tipográfia, oldalváz, akadálymentességi alapok */

html {
    font-size: 15px;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: var(--fs-xl);
    font-weight: 600;
    letter-spacing: -0.01em;
}

h2 {
    font-size: var(--fs-lg);
    font-weight: 600;
}

h3 {
    font-size: var(--fs-md);
    font-weight: 600;
}

a {
    color: var(--link);
}

/* Szerkesztőségi kislabel: nagybetűs, ritkított, tompított */
.eyebrow {
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* Tabuláris számok idő/darabszám oszlopokhoz, stat-értékekhez */
.tnum {
    font-variant-numeric: tabular-nums;
}

/* Tabler SVG ikonok – currentColor-t öröklik, így a dark mode automatikus */
.icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    vertical-align: -0.2em;
    flex-shrink: 0;
}

/* Nap/hold váltás a téma-toggle gombban */
html:not(.dark-mode) .icon-sun {
    display: none;
}

html.dark-mode .icon-moon {
    display: none;
}

/* Globális, látható fókusz-jelölés billentyűzetes navigációhoz */
:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 2px;
}

/* Ugrás a tartalomhoz – csak fókuszban látszik */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--sp-3);
    z-index: 10000;
    padding: var(--sp-2) var(--sp-4);
    background: var(--accent);
    color: var(--accent-ink);
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: var(--sp-2);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--rule);
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

/* Oldalcímek, oldalszintű akciók */
.page-header {
    margin-bottom: 1.5rem;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    margin-top: 0.25rem;
}

.users-page h1 {
    margin-bottom: 1rem;
}

.page-actions {
    margin-bottom: 1rem;
}

/* Tompított szöveg (sablonokban elterjedt osztálynév) */
.text-muted {
    color: var(--text-muted);
}

/* Csak képernyőolvasónak szánt tartalom */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1024px) {
    .main-content {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 0.75rem;
    }

    .footer {
        padding: 0.75rem;
        font-size: var(--fs-xs);
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .filter-section,
    .dashboard-actions,
    .modal-actions,
    .action-buttons-cell {
        display: none !important;
    }

    .main-content {
        padding: 0;
        max-width: none;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
