/* /public_html/assets/css/styles.css */

/* ---------------- Base tokens ---------------- */
:root {
    --bg: #0f1b22;
    --brand: #d7b46a;
    --ink: #e8e6e3;
    --muted: #9fb0bb;
    --radius: 22px;
    /* altura do header sticky (ajusta no @media abaixo) */
    --header-h: 64px;
}

body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
}

    /* Quando houver header sticky, dá espaço no topo do conteúdo */
    body.has-sticky-header main,
    body.has-sticky-header .login-wrap,
    body.has-sticky-header #viewHome,
    body.has-sticky-header #viewLogin {
        padding-top: calc(var(--header-h) + 12px);
    }

/* ---------------- Utilidades / Layout genérico ---------------- */
.hidden {
    display: none !important;
}

.container {
    width: min(1100px,92vw);
    margin: auto;
}

.card {
    background: rgba(255,255,255,.05);
    border-radius: var(--radius);
    padding: 1rem;
}

.btn {
    border: 0;
    padding: .8rem 1rem;
    border-radius: 12px;
    cursor: pointer;
}

.btn-primary {
    background: var(--brand);
    color: #1b1306;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,.2);
    color: var(--ink);
}

.btn-dark {
    background: #0d151a;
    color: var(--ink);
}

.btn-full {
    width: 100%;
}

.muted {
    color: var(--muted);
    font-size: .9rem;
}

.lead {
    color: #cdd7dd;
}

footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    color: var(--muted);
    font-size: .85rem;
}

/* ---------------- Header (sticky) ---------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(15,27,34,.90); /* mesma paleta do app */
    border-bottom: 1px solid #ffffff1a;
    backdrop-filter: blur(6px);
    padding: 0; /* altura controlada pela var */
}

    .nav .wrap {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: min(1100px,92vw);
        margin: auto;
    }

.brand {
    display: flex;
    gap: .5rem;
    align-items: center;
}

    /* logo da navbar */
    .brand img {
        width: 42px;
        height: 42px;
        object-fit: contain;
        display: block;
    }

/* ---------------- Login ---------------- */
.login-wrap {
    display: grid;
    gap: 2rem;
    padding: 2rem;
    min-height: 100vh;
    align-items: center;
}

.login-card {
    max-width: 400px;
    margin: auto;
}

.field {
    display: grid;
    gap: .3rem;
}

input {
    padding: .7rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.2);
    background: #0b1419;
    color: var(--ink);
}

    input:focus {
        border-color: var(--brand);
        outline: none;
    }

.actions {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
    gap: 1rem;
}

.action {
    padding: 1rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    background: #0d171d;
    color: var(--ink);
    cursor: pointer;
}

/* garantir comportamento padrão das imagens */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* layout do bloco que contém o logo + lista de features */
.hero-content {
    display: grid;
    grid-template-columns: 140px 1fr; /* coluna fixa pro logo */
    align-items: start; /* alinha topo com o 1º card */
    gap: clamp(16px, 2vw, 28px);
}

/* tamanho/estilo do logo na área de login */
.logo-xl {
    height: clamp(96px, 10vw, 120px); /* 96–120px no desktop */
    width: auto;
    object-fit: contain;
    border-radius: 12px; /* conversa com os cards arredondados */
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* PATCH – estilos do título em 3 linhas) */
.hero-h1 {
    margin: 0 0 4px;
    line-height: 1.2;
    font-weight: 700;
    font-size: clamp(22px, 3.6vw, 40px);
}

.hero-kicker {
    color: var(--muted);
    font-weight: 600;
    letter-spacing: .2px;
    margin: 0 0 8px;
}

.hero-lead {
    margin-top: 0; /* gruda na kicker */
}


/* ---------------- Responsivo ---------------- */
@media (max-width: 900px) {
    :root {
        --header-h: 56px;
    }
    /* header um pouco menor no mobile */

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .logo-xl {
        margin-inline: auto;
        height: 96px;
    }
}

/* listas limpas e compactas */
ul.clean {
    list-style: none;
    padding: 0;
    margin: 0;
}

    ul.clean.small li {
        padding: 6px 0;
        border-bottom: 1px solid rgba(255,255,255,.06);
    }

        ul.clean.small li:last-child {
            border-bottom: 0;
        }

/* divisor sutil */
hr.divider {
    border: 0;
    border-top: 1px solid rgba(255,255,255,.08);
    margin: 10px 0;
}

/* badges de status (reusadas na fila/exames) */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .75rem;
    background: rgba(255,255,255,.08);
    color: var(--ink);
}

    .badge.ok {
        background: rgba(16,185,129,.18);
        color: #a7f3d0;
    }
    /* verde */
    .badge.busy {
        background: rgba(245,158,11,.18);
        color: #fde68a;
    }
    /* amarelo */
    .badge.full {
        background: rgba(239,68,68,.18);
        color: #fecaca;
    }
/* vermelho */

