:root {
    --blue:    #1A52E8;
    --blue-dk: #1340C0;
    --green:   #00C278;
    --black:   #0B0F1A;
    --bg:      #F5F5F0;
    --white:   #FFFFFF;
    --gray:    #6B7280;
    --radius:  10px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
}

/* ── Page content ── */
.page-content {
    padding: 2.5rem 2.5rem 3rem;
    max-width: 1200px;
}

/* ── Summary cards ── */
.summary-card {
    padding: 1.5rem 1.6rem !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0,0,0,0.07) !important;
}

/* ── Login layout ── */
.login-wrapper {
    display: flex;
    min-height: 100vh;
}

.login-left {
    width: 420px;
    flex-shrink: 0;
    background: var(--black);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 3rem;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(26,82,232,0.3) 0%, transparent 70%);
    pointer-events: none;
}

.login-left-content { position: relative; z-index: 1; }

.login-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.login-feat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--white);
}

.login-box {
    width: 100%;
    max-width: 400px;
}

.first-access {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #F9FAFB;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
}

/* ── Nav items active state ── */
.mud-nav-link.active {
    background: rgba(26,82,232,0.15) !important;
    color: #fff !important;
}

/* ── MudBlazor overrides ── */
.mud-drawer-content {
    overflow-x: hidden;
}

.mud-table-container {
    overflow-x: auto;
}

/* ── Error UI ── */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0; left: 0; right: 0;
    padding: 0.6rem 1.25rem;
    display: none;
    position: fixed;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; float: right; font-weight: bold; }

/* ── Responsive ── */
@media (max-width: 960px) {
    .login-left { width: 320px; padding: 2rem; }
    .page-content { padding: 1.75rem; }
}

@media (max-width: 768px) {
    .login-left { display: none; }
    .login-right { padding: 2rem 1.5rem; }
    .login-box { max-width: 100%; }
    .page-content { padding: 1.25rem; }
    .summary-card { padding: 1.2rem 1.25rem !important; }
}

@media (max-width: 480px) {
    .login-right { padding: 1.5rem 1rem; }
    .login-box { max-width: 100%; }
    .page-content { padding: 1rem 0.875rem 2rem; }
    .summary-card { padding: 1rem !important; }
}

/* Tabelas com scroll horizontal no mobile */
.mud-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Barra de topo mobile (AppBar) */
.mud-appbar {
    display: none;
}
@media (max-width: 959px) {
    .mud-appbar { display: flex; }
    .page-content { padding-top: 1.5rem; }
}
