/* =============================================================================
   Sele Gestão — Estilo global
   Identidade visual oficial (manual 2021):
     #002F8E azul royal | #AEE046 verde-lima | #007FFF azul vivo | #6C6764 cinza
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@600;700;800&display=swap');

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    background-color: #ECEAE2;
    color: #2A2F3A;
    -webkit-font-smoothing: antialiased;
}

/* Títulos em serifa elegante (Playfair) — estilo SeleIA Admin */
h1, h2, h3, h4,
.mud-typography-h1, .mud-typography-h2, .mud-typography-h3,
.mud-typography-h4, .mud-typography-h5 {
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: 0;
    font-weight: 700;
    color: #1E3A8A;
}

/* AppBar marinho escuro (topo do modelo) — barra mais alta */
:root {
    --mud-appbar-height: 84px;
    --mud-appbar-min-height: 84px;
}
.mud-appbar.mud-appbar-fixed-top {
    background-image: linear-gradient(90deg, #0A1A3F 0%, #11264F 60%, #163172 100%) !important;
    box-shadow: 0 2px 14px rgba(10, 26, 63, 0.22) !important;
    height: 84px !important;
    min-height: 84px !important;
}
/* Estica a toolbar interna pra altura total e centraliza o conteúdo verticalmente */
.mud-appbar .mud-toolbar {
    height: 84px !important;
    min-height: 84px !important;
    align-items: center !important;
}

/* Empurra o conteúdo e o menu lateral pra baixo da barra de 84px (senão sobrepõe) */
.mud-main-content {
    padding-top: 84px !important;
}
.mud-drawer.mud-drawer-fixed {
    top: 84px !important;
    height: calc(100% - 84px) !important;
}

/* Rótulo "sobrescrito" com dash verde (— ACESSO RÁPIDO) — reutilizável nas telas */
.sele-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8A8F98;
    display: block;
    margin-bottom: 6px;
}
.sele-eyebrow::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 2px;
    background: #A3D039;
    vertical-align: middle;
    margin-right: 10px;
}

/* Faixa hero escura reutilizável (boas-vindas, topo de seções) */
.sele-hero {
    border-radius: 22px;
    padding: 30px 34px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 25%, rgba(60,130,255,.20) 0, transparent 45%),
        linear-gradient(135deg, #0E2350 0%, #0A1A3F 60%, #0B1A3E 100%);
    box-shadow: 0 16px 40px rgba(10,26,63,.26);
}
.sele-hero h1, .sele-hero h2, .sele-hero h3 { color: #fff; }
.sele-hero .sele-eyebrow { color: #AEE046; }
.sele-hero .sele-eyebrow::before { background: #AEE046; }

/* Cabeçalho de página elegante (estilo SeleIA Admin) */
.sele-pagehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.sele-pagehead .when {
    text-align: right; color: #A7AAB0; font-size: 11px;
    letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.7; white-space: nowrap;
}
hr.sele-div { border: none; border-top: 1px solid #E7E4DC; margin: 18px 0 26px; }

/* Card de indicador sóbrio: número grande serifado, rótulo e ícone discretos */
.sele-stat {
    background: #fff; border: 1px solid #ECEAE3; border-radius: 18px;
    padding: 22px 24px; box-shadow: 0 6px 18px rgba(20, 30, 60, 0.05);
    transition: transform .12s, box-shadow .12s; cursor: pointer; height: 100%;
}
.sele-stat:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20, 30, 60, 0.10); }
.sele-stat .stat-top { display: flex; align-items: center; justify-content: space-between; }
.sele-stat .label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8A8F98;
}
.sele-stat .num { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 46px; line-height: 1.05; margin: 8px 0 6px; }
.sele-stat .desc { font-size: 13px; color: #6B7280; }

/* Brand do header (logo + slogan) */
.sele-brand {
    display: flex;
    align-items: center;
    gap: 24px;
}
.sele-brand img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}
.sele-brand .slogan {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #AEE046;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Drawer com borda direita azul muito sutil */
.mud-drawer {
    border-right: 1px solid #E5E7EB;
}
.mud-nav-link.active, .mud-nav-link.mud-nav-link-active {
    background: linear-gradient(90deg, rgba(0, 47, 142, 0.08), rgba(174, 224, 70, 0.04)) !important;
    border-left: 3px solid #AEE046 !important;
    color: #002F8E !important;
    font-weight: 600;
}
.mud-nav-link .mud-icon-root.mud-svg-icon {
    color: #002F8E;
}

/* Cards arredondados com borda discreta e sombra suave (estilo SeleIA Admin) */
.mud-card, .mud-paper {
    border-radius: 18px !important;
}
.mud-paper-elevation-2, .mud-paper-elevation-1 {
    border: 1px solid #ECEAE3 !important;
    box-shadow: 0 6px 18px rgba(20, 30, 60, 0.05) !important;
}

/* Botões primários com tipografia mais firme */
.mud-button {
    text-transform: none !important;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.mud-button-filled-primary {
    background-color: #002F8E !important;
    color: #FFFFFF !important;
}
.mud-button-filled-primary:hover {
    background-color: #0E47B6 !important;
}
.mud-button-filled-secondary {
    background-color: #AEE046 !important;
    color: #1F2937 !important;
}
.mud-button-filled-secondary:hover {
    background-color: #99CC3A !important;
}

#blazor-error-ui {
    background: #DC2626;
    bottom: 0;
    color: #FFFFFF;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Cards clicáveis no Dashboard: hover discreto */
.card-clicavel {
    transition: transform 120ms ease, box-shadow 120ms ease;
    border-top: 3px solid #AEE046;
}
.card-clicavel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 47, 142, 0.18) !important;
}

/* =============================================================================
   Tela de Login — visual institucional
   ========================================================================== */
/* Paleta SeleIA (reutilizável no resto do sistema depois) */
:root {
    --sele-navy-900: #050B1F;
    --sele-navy-800: #0A1A3F;
    --sele-navy-700: #11264F;
    --sele-green: #A3D039;
    --sele-green-bright: #AEE046;
    --sele-ink: #0F1B2D;
}

.sele-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: #050B1F url('/img/fundo-plexus.png') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
}

/* Cartão único dividido: hero escuro à esquerda + form branco à direita */
.sele-login-page > .sele-login-shell {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: 1040px;
    min-height: 560px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.sele-login-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 44px;
    color: #FFFFFF;
    background:
        linear-gradient(160deg, rgba(14,35,80,0.78) 0%, rgba(10,26,63,0.72) 55%, rgba(6,14,38,0.82) 100%),
        url('/img/fundo-plexus.png') center / cover no-repeat;
    position: relative;
}
.sele-login-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}
.sele-login-hero img.logo {
    max-width: 200px;
    width: 100%;
    height: auto;
}
.sele-login-hero .console-tag {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sele-green-bright);
    padding-left: 2px;
}
/* Remove qualquer borda/contorno herdado dentro do hero (some a "linha torta") */
.sele-login-hero,
.sele-login-hero div,
.sele-login-hero h1,
.sele-login-hero span,
.sele-login-hero .eyebrow {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.sele-login-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 44px;
    line-height: 1.08;
    margin: 0;
    color: #FFFFFF;
}
.sele-login-hero h1 span {
    color: var(--sele-green-bright);
    font-style: italic;
}
.sele-login-hero .eyebrow {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.sele-login-hero .eyebrow::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 2px;
    background: var(--sele-green-bright);
    vertical-align: middle;
    margin-right: 10px;
}

.sele-login-card {
    width: 460px;
    max-width: 50%;
    background: #FFFFFF;
    padding: 52px 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.sele-login-card .eyebrow {
    color: #6B7280;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.sele-login-card .eyebrow::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 2px;
    background: var(--sele-green);
    vertical-align: middle;
    margin-right: 10px;
}
.sele-login-card h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: var(--sele-ink);
    margin: 0 0 6px 0;
    font-size: 32px;
}
.sele-login-card .subtitulo {
    color: #6B7280;
    margin-bottom: 30px;
    font-size: 14px;
}
.sele-login-card label {
    display: block;
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.sele-login-card input[type=email],
.sele-login-card input[type=password] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #E2E5EA;
    border-radius: 14px;
    font-size: 15px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    transition: border-color .15s, box-shadow .15s;
}
.sele-login-card input[type=email]:focus,
.sele-login-card input[type=password]:focus {
    outline: none;
    border-color: var(--sele-green);
    box-shadow: 0 0 0 3px rgba(163, 208, 57, 0.18);
}
.sele-login-btn {
    width: 100%;
    padding: 15px;
    background: var(--sele-green);
    color: #15240A;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}
/* ============================================================
   Cabeçalho de página enxuto ("faixa delicada") — vale p/ TODAS as telas.
   Reduz o título, o eyebrow, o subtítulo e as margens da divisória,
   liberando espaço vertical para o conteúdo logo abaixo.
   ============================================================ */
.mud-main-content .mud-typography-h3 {
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
    margin: 0 0 2px !important;
}
.mud-main-content .sele-eyebrow {
    font-size: 11px;
    margin-bottom: 1px;
}
.mud-main-content .sele-pagehead .when {
    line-height: 1.4;
}
.mud-main-content .sele-pagehead .mud-typography-body1 {
    font-size: 0.9rem;
}
hr.sele-div {
    margin: 8px 0 14px;
}

/* Linha unica dos 5 cards de indicador do Dashboard (panorama) */
.sele-stats-row { display: flex; flex-wrap: wrap; gap: 16px; }
.sele-stats-row > .sele-stat { flex: 1 1 0; min-width: 165px; }
