.container-principal{
    padding: 2rem;
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
}

/* ---------- estado deslogado ---------- */

.welcome-panel{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    max-width: 32rem;
    margin: 4rem auto;
    text-align: left;
    padding: 0 1rem;
}

.welcome-panel__badge{
    margin-bottom: 0.5rem;
}

.welcome-panel h1{
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--ink);
}

.welcome-panel p{
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

.btn-brand{
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--gold);
    color: white;
    font-family: var(--font-display);
    font-weight: 600;
    text-decoration: none;
    border-radius: 2rem;
    box-shadow: var(--shadow);
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-brand:hover,
.btn-brand:focus-visible{
    background: var(--gold-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ---------- estado logado ---------- */

.dashboard-header{
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.75rem;
}

.dashboard-header__eyebrow{
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.dashboard-header h1{
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ink);
}

.stat-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.stat-card{
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
}

.stat-card__icon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-card__icon--neutral{
    background: var(--gold-light);
    color: var(--gold-dark);
}

.stat-card__icon--success{
    background: #E3F1E9;
    color: var(--success);
}

.stat-card__icon--danger{
    background: #F5E3DE;
    color: var(--danger);
}

.stat-card__body{
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.stat-card__label{
    font-size: 0.8rem;
    color: var(--muted);
    white-space: nowrap;
}

.stat-card__value{
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ink);
}

.chart-card{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.chart-card h2{
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1rem;
}

.chart-card canvas{
    max-height: 22rem;
}

@media (max-width: 900px){
    .stat-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px){
    .container-principal{
        padding: 1.25rem;
    }
    .stat-grid{
        grid-template-columns: 1fr;
    }
}
