/* ============================================================
   Saída Fácil — Folha de estilos principal
   Estilo SaaS moderno: azul + branco, glassmorphism, animações.
   ============================================================ */

:root {
    /* Paleta de cores (rampas) */
    --primary-50:  #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    --accent-400: #38bdf8;
    --accent-500: #0ea5e9;

    --success-400: #4ade80;
    --success-500: #22c55e;
    --success-600: #16a34a;
    --warning-400: #fbbf24;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --danger-400:  #f87171;
    --danger-500: #ef4444;
    --danger-600: #dc2626;

    /* Neutros */
    --neutral-50:  #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;

    /* Vidro */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.12);
    --glass-blur: 16px;

    /* Tipografia */
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;

    /* Espaçamento (múltiplos de 8) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
}

/* ---------------- Reset / Base ---------------- */
* { box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    background: linear-gradient(135deg, var(--primary-50) 0%, #ffffff 40%, var(--primary-100) 100%);
    color: var(--neutral-800);
    min-height: 100vh;
    margin: 0;
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; }

a { color: var(--primary-600); text-decoration: none; }
a:hover { color: var(--primary-700); }

/* ---------------- Fundo animado (blobs) ---------------- */
.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: float 18s ease-in-out infinite;
}
.blob-1 {
    width: 480px; height: 480px;
    background: radial-gradient(circle, var(--primary-400), var(--primary-200));
    top: -120px; left: -100px;
}
.blob-2 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, var(--accent-400), var(--primary-200));
    bottom: -140px; right: -80px;
    animation-delay: -6s;
}
.blob-3 {
    width: 360px; height: 360px;
    background: radial-gradient(circle, var(--primary-300), var(--primary-100));
    top: 40%; right: 30%;
    animation-delay: -12s;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(40px, -30px) scale(1.05); }
    66%      { transform: translate(-30px, 20px) scale(0.95); }
}

/* ---------------- Glassmorphism ---------------- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
}

/* ---------------- Topbar ---------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(37, 99, 235, 0.92);
    backdrop-filter: blur(12px);
    border: none;
    border-radius: 0;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25);
}
.topbar .navbar-brand { color: #fff; font-weight: 700; }
.topbar .navbar-brand:hover { color: #fff; }
.brand-logo {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    color: #fff;
}
.brand-name { font-size: 1.15rem; }
.user-chip {
    display: inline-flex; align-items: center; gap: 6px;
    color: #fff;
    font-size: .9rem;
}
.badge-role {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
    text-transform: capitalize;
}
.topbar .btn-outline-light:hover { background: rgba(255,255,255,0.15); }

/* ---------------- Main ---------------- */
.app-main {
    min-height: calc(100vh - 120px);
    padding: 0;
}
.page-title {
    font-weight: 700;
    color: var(--neutral-800);
    margin: 0;
}
.app-footer {
    color: var(--neutral-500);
    font-size: .85rem;
}

/* ---------------- Alertas glass ---------------- */
.glass-alert {
    margin: var(--space-2) auto;
    max-width: 1200px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
}

/* ---------------- Botões ---------------- */
.btn-glass-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.btn-glass-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: #fff;
}
.btn-glass-primary:disabled {
    opacity: .55;
    transform: none;
    box-shadow: none;
}

/* ---------------- Inputs glass ---------------- */
.glass-input {
    background: rgba(255,255,255,0.7) !important;
    border: 1px solid var(--neutral-200) !important;
    border-radius: var(--radius-sm) !important;
    transition: border-color .2s, box-shadow .2s;
}
.glass-input:focus {
    border-color: var(--primary-400) !important;
    box-shadow: 0 0 0 .25rem rgba(59, 130, 246, .18) !important;
    background: #fff !important;
}
.form-floating > label { color: var(--neutral-500); }

/* Toggle de senha */
.btn-toggle-pass {
    position: absolute;
    top: 50%; right: 12px;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--neutral-400);
    cursor: pointer;
    z-index: 5;
}
.btn-toggle-pass:hover { color: var(--primary-500); }

/* ---------------- Auth (login/trocar senha) ---------------- */
.auth-body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-2);
    overflow: hidden;
}
.auth-video-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.auth-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.auth-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 32, 68, 0.45);
}
.auth-wrap {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 2;
}
.auth-card {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    animation: fadeInUp .5s ease;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
}
.auth-header .brand-logo-lg {
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
    border-radius: 18px;
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: var(--space-2);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.auth-title { font-size: 1.6rem; font-weight: 700; color: var(--neutral-800); }
.auth-subtitle { color: var(--neutral-500); font-size: .92rem; margin-top: 4px; }
.auth-hint {
    text-align: center;
    color: var(--neutral-500);
    font-size: .85rem;
    padding-top: var(--space-2);
    border-top: 1px solid var(--neutral-200);
}
.auth-hint code {
    background: var(--primary-50);
    padding: 2px 6px;
    border-radius: 6px;
    color: var(--primary-700);
}

/* ---------------- Cards de estatística ---------------- */
.stat-card {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    transition: transform .2s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--neutral-800); line-height: 1; }
.stat-label { font-size: .82rem; color: var(--neutral-500); }

/* Soft backgrounds */
.bg-primary-soft { background: var(--primary-100); color: var(--primary-700); }
.bg-info-soft     { background: #e0f2fe; color: #0369a1; }
.bg-success-soft  { background: #dcfce7; color: var(--success-600); }
.bg-warning-soft  { background: #fef3c7; color: var(--warning-600); }
.bg-danger-soft   { background: #fee2e2; color: var(--danger-600); }
.text-success-soft { color: var(--success-600); }
.text-danger-soft  { color: var(--danger-600); }

/* ---------------- Cards de painel ---------------- */
.panel-card {
    padding: var(--space-3);
    border-radius: var(--radius);
    height: 100%;
    transition: transform .2s, box-shadow .2s;
}
.panel-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(31,38,135,.15); }

/* ---------------- Tabelas ---------------- */
.table-card { padding: var(--space-3); border-radius: var(--radius); overflow: hidden; }
.table > :not(caption) > * > * { padding: .85rem 1rem; }
.table thead th {
    color: var(--neutral-500);
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid var(--neutral-200);
}

/* Filtro */
.glass-filter {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}

/* ---------------- Modal glass ---------------- */
.glass-modal {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}
.glass-modal .modal-header { border-bottom: 1px solid var(--neutral-200); }
.glass-modal .modal-footer { border-top: 1px solid var(--neutral-200); }

/* ---------------- Fotos de alunos ---------------- */
.aluno-foto-thumb {
    width: 44px; height: 44px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary-200);
}
.aluno-foto-preview {
    width: 110px; height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-300);
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
}

/* ---------------- Painel do Pai ---------------- */
.filho-card {
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform .2s, box-shadow .2s;
    animation: fadeInUp .4s ease;
}
.filho-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(31,38,135,.15); }
.filho-foto-wrap { margin-bottom: var(--space-2); }
.filho-foto {
    width: 120px; height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-200);
    box-shadow: 0 6px 18px rgba(0,0,0,.1);
}
.filfo-info h5 { color: var(--neutral-800); }

.filho-status {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 600;
    margin-top: var(--space-1);
}
.status-pendente {
    background: var(--warning-500);
    color: #fff;
}
.status-chamado {
    background: var(--accent-500);
    color: #fff;
    animation: pulse 1.5s ease infinite;
}
.status-finalizado {
    background: var(--success-500);
    color: #fff;
}

/* ---------------- Painel da Escola (fila) ---------------- */
.escola-panel .fila-card {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    border-left: 4px solid var(--neutral-300);
    transition: transform .2s, box-shadow .2s;
    animation: slideIn .35s ease;
}
.escola-panel .fila-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(31,38,135,.12); }
.escola-panel .fila-card.status-pendente { border-left-color: var(--warning-500); }
.escola-panel .fila-card.status-chamado  { border-left-color: var(--accent-500); }

.fila-card-top {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    flex-wrap: wrap;
}
.fila-foto {
    width: 64px; height: 64px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid var(--primary-200);
    flex-shrink: 0;
}
.fila-info { flex: 1; min-width: 140px; }
.fila-info h5 { margin: 0; color: var(--neutral-800); }
.badge-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
}
.badge-status.status-pendente { background: var(--warning-500); color: #fff; }
.badge-status.status-chamado  { background: var(--accent-500); color: #fff; }

.fila-actions {
    display: flex;
    gap: var(--space-1);
    flex-wrap: wrap;
}
.fila-actions .btn { flex: 1; min-width: 120px; }

/* Ponto "ao vivo" */
.live-dot {
    width: 10px; height: 10px;
    background: var(--success-500);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s ease infinite;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

/* ---------------- Banner de anúncio ---------------- */
.announce-banner {
    position: fixed;
    bottom: 24px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.4);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: announceIn .4s ease;
}
.announce-banner i { font-size: 1.3rem; }

/* ---------------- Tela de chamada (TV/monitor) ---------------- */
.tela-chamada-body {
    margin: 0;
    min-height: 100vh;
    color: #fff;
    background: radial-gradient(circle at 15% 15%, #2563eb 0, transparent 34%),
                radial-gradient(circle at 85% 85%, #14b8a6 0, transparent 32%),
                #0f172a;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.tela-chamada {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: clamp(20px, 4vw, 56px);
}
.tela-chamada-header, .tela-chamada-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: clamp(.85rem, 1.5vw, 1.1rem);
    font-weight: 700;
    letter-spacing: .04em;
}
.tela-marca { font-size: clamp(1.1rem, 2.4vw, 1.7rem); }
.tela-status { display: flex; align-items: center; gap: 9px; color: #cbd5e1; }
.tela-status span { width: 11px; height: 11px; border-radius: 50%; background: #64748b; }
.tela-status span.ativo { background: #4ade80; box-shadow: 0 0 0 5px rgba(74,222,128,.2); animation: pulse 1.5s ease infinite; }
.tela-aluno { display: grid; place-items: center; text-align: center; }
.tela-aluno-conteudo { animation: fadeInUp .45s ease; }
.tela-label {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: #f59e0b;
    color: #1e293b;
    font-weight: 800;
    letter-spacing: .12em;
    font-size: clamp(.8rem, 1.4vw, 1.1rem);
}
.tela-foto {
    display: block;
    width: clamp(160px, 26vw, 360px);
    height: clamp(160px, 26vw, 360px);
    margin: clamp(20px, 3vw, 36px) auto;
    object-fit: cover;
    border: 8px solid rgba(255,255,255,.9);
    border-radius: 50%;
    box-shadow: 0 20px 48px rgba(0,0,0,.35);
}
.tela-aluno h1 { margin: 0; font-size: clamp(2.5rem, 7vw, 7rem); font-weight: 800; line-height: 1.05; }
.tela-aluno p { margin: 16px 0 0; color: #dbeafe; font-size: clamp(1.2rem, 3vw, 2.8rem); font-weight: 600; }
.tela-vazia { color: #cbd5e1; }
.tela-vazia i { font-size: clamp(4rem, 10vw, 8rem); color: #60a5fa; }
.tela-vazia h1 { margin: 24px 0 8px; font-size: clamp(2rem, 5vw, 4.5rem); color: #fff; }
.tela-vazia p { margin: 0; }
.tela-som { border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 10px 16px; background: transparent; color: #fff; font: inherit; cursor: pointer; }
.tela-som.ativo { background: #16a34a; border-color: #16a34a; }

@media (max-width: 560px) {
    .tela-chamada { padding: 20px; }
    .tela-chamada-header { align-items: flex-start; }
    .tela-status { font-size: .72rem; }
}

/* ---------------- Empty state ---------------- */
.empty-state {
    border-radius: var(--radius);
    padding: var(--space-4);
}

/* ---------------- Animações ---------------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .6; }
}
@keyframes announceIn {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------------- Responsividade geral ---------------- */
@media (max-width: 768px) {
    .stat-card {
        padding: var(--space-1) var(--space-2);
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .fila-foto {
        width: 56px;
        height: 56px;
    }

    .auth-card {
        padding: var(--space-3);
    }

    .announce-banner {
        font-size: .9rem;
        padding: 10px 18px;
        bottom: 16px;
    }
}

/* ============================================================
   Fundo de vídeo da tela de login
   Estas regras precisam ficar fora do @media acima
   ============================================================ */

/* Retira o limite de 460px do contêiner externo */
.auth-body {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.auth-body .auth-wrap {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: none;

    min-height: 100vh;
    min-height: 100dvh;

    margin: 0;
    padding: 0;
}

/* Vídeo cobrindo a tela */
.login-video-background {
    position: fixed;
    inset: 0;

    width: 100vw;
    height: 100vh;
    height: 100dvh;

    margin: 0;
    padding: 0;
    overflow: hidden;

    z-index: 0;
    background-color: #eaf3ff;
}

.login-video-background video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    max-width: none;
    object-fit: cover;
    object-position: center center;

    display: block;
}

/* Camada clara sobre o vídeo */
.login-video-overlay {
    position: fixed;
    inset: 0;

    width: 100vw;
    height: 100vh;
    height: 100dvh;

    z-index: 1;
    pointer-events: none;

    background: rgba(225, 234, 248, 0.48);

    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

/* Centraliza o cartão horizontal e verticalmente */
.login-page-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: none;

    min-height: 100vh;
    min-height: 100dvh;

    margin: 0;
    padding: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow-y: auto;
}

/* Tamanho do cartão */
.login-page-content .auth-card {
    width: 100%;
    max-width: 460px;

    margin: auto;
    padding: var(--space-4);

    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-lg);

    box-shadow:
        0 24px 70px rgba(13, 40, 80, 0.25),
        0 8px 28px rgba(13, 40, 80, 0.16);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* Celulares e tablets */
@media (max-width: 768px) {
    .login-page-content {
        padding: 20px;
    }

    .login-page-content .auth-card {
        max-width: 460px;
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .login-page-content {
        align-items: center;
        padding: 14px;
    }

    .login-page-content .auth-card {
        width: 100%;
        max-width: 100%;
        padding: 22px 18px;
        border-radius: 20px;
    }

    .auth-header .brand-logo-lg {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .auth-title {
        font-size: 1.4rem;
    }

    .auth-subtitle {
        font-size: .85rem;
    }

    .login-page-content .d-flex.justify-content-between {
        align-items: flex-start !important;
        gap: 12px;
    }

    .login-page-content .d-flex.justify-content-between a,
    .login-page-content .d-flex.justify-content-between span {
        max-width: 50%;
    }
}

/* Celulares baixos ou tela na horizontal */
@media (max-height: 650px) {
    .login-page-content {
        align-items: flex-start;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

/* Preferência por menos animação */
@media (prefers-reduced-motion: reduce) {
    .login-video-background video {
        animation: none;
    }

    .auth-card {
        animation: none;
    }
}

/* Ultimos chamdos aqui para baixo  */
/* Ultimos chamdos aqui para baixo  */
/* Ultimos chamdos aqui para baixo  */
/* Ultimos chamdos aqui para baixo  */
/* ============================================================
   Painel de alunos chamados e aguardando retirada
   ============================================================ */

.tela-ultimos-chamados {
    position: fixed;
    top: 100px;
    right: 28px;
    bottom: 100px;
    z-index: 20;

    width: clamp(290px, 27vw, 410px);
    padding: 18px;

    color: #ffffff;
    background: rgba(15, 23, 42, 0.76);

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 22px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    overflow: hidden;
}

.tela-ultimos-chamados[hidden] {
    display: none !important;
}

/* Cabeçalho do painel */

.ultimos-chamados-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding-bottom: 14px;
    margin-bottom: 14px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.16);

    font-size: 1rem;
    font-weight: 800;
}

.ultimos-chamados-titulo {
    display: flex;
    align-items: center;
    gap: 9px;
}

.ultimos-chamados-titulo i {
    color: #60a5fa;
    font-size: 1.1rem;
}

/* Contador */

.ultimos-chamados-contador {
    min-width: 32px;
    height: 32px;
    padding: 0 9px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #f59e0b;
    color: #ffffff;

    border-radius: 999px;

    font-size: 0.85rem;
    font-weight: 800;
}

/* Lista */

.ultimos-chamados-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;

    max-height: calc(100% - 58px);
    padding-right: 3px;

    overflow-x: hidden;
    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(255, 255, 255, 0.35)
        transparent;
}

.ultimos-chamados-lista::-webkit-scrollbar {
    width: 5px;
}

.ultimos-chamados-lista::-webkit-scrollbar-track {
    background: transparent;
}

.ultimos-chamados-lista::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 10px;
}

/* Item de aluno */

.ultimo-chamado-item {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    padding: 11px;

    background: rgba(255, 255, 255, 0.1);

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 15px;

    animation: ultimoChamadoEntrada 0.35s ease;
}

.ultimo-chamado-item:first-child {
    background: rgba(37, 99, 235, 0.25);
    border-color: rgba(96, 165, 250, 0.5);
}

/* Foto */

.ultimo-chamado-foto {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;

    object-fit: cover;
    object-position: center;

    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.15);
}

.ultimo-chamado-sem-foto {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #bfdbfe;
    background: rgba(255, 255, 255, 0.14);

    border-radius: 14px;
    font-size: 1.4rem;
}

/* Informações do aluno */

.ultimo-chamado-info {
    flex: 1;
    min-width: 0;
}

.ultimo-chamado-nome {
    display: block;
    overflow: hidden;

    color: #ffffff;

    font-size: 0.95rem;
    font-weight: 800;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.ultimo-chamado-turma {
    display: block;

    margin-top: 2px;
    color: #cbd5e1;

    font-size: 0.78rem;
}

.ultimo-chamado-horario {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    margin-top: 5px;

    color: #fde68a;

    font-size: 0.72rem;
    font-weight: 700;
}

/* Lista vazia */

.ultimos-chamados-vazia {
    padding: 25px 12px;

    color: #cbd5e1;

    text-align: center;
    font-size: 0.85rem;
}

/* Só abre espaço quando o JavaScript ativar o painel */

@media (min-width: 1100px) {
    .tela-chamada.lista-chamados-ativa .tela-aluno {
        padding-right: min(32vw, 450px);
        padding-left: 20px;
    }
}

/* Tablets e telas menores */

@media (max-width: 1099px) {
    .tela-ultimos-chamados {
        top: auto;
        right: 16px;
        bottom: 78px;
        left: 16px;

        width: auto;
        max-height: 230px;
        padding: 14px;
    }

    .ultimos-chamados-lista {
        flex-direction: row;

        max-height: none;
        padding-right: 0;
        padding-bottom: 4px;

        overflow-x: auto;
        overflow-y: hidden;
    }

    .ultimo-chamado-item {
        min-width: 245px;
        max-width: 285px;
    }

    .tela-chamada.lista-chamados-ativa .tela-aluno {
        padding-bottom: 235px;
    }
}

/* Celulares */

@media (max-width: 576px) {
    .tela-ultimos-chamados {
        right: 10px;
        bottom: 70px;
        left: 10px;

        max-height: 210px;
        padding: 12px;

        border-radius: 16px;
    }

    .ultimos-chamados-header {
        padding-bottom: 10px;
        margin-bottom: 10px;

        font-size: 0.86rem;
    }

    .ultimos-chamados-contador {
        min-width: 28px;
        height: 28px;

        font-size: 0.75rem;
    }

    .ultimo-chamado-item {
        min-width: 215px;
        padding: 9px;
    }

    .ultimo-chamado-foto,
    .ultimo-chamado-sem-foto {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .ultimo-chamado-nome {
        font-size: 0.85rem;
    }

    .tela-chamada.lista-chamados-ativa .tela-aluno {
        padding-bottom: 215px;
    }
}

/* Animação de entrada */

@keyframes ultimoChamadoEntrada {
    from {
        opacity: 0;
        transform: translateX(15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ultimo-chamado-item {
        animation: none;
    }
}
/* ============================================================
   Logo Saída Fácil — responsiva
   ============================================================ */

.logo-saida-facil {
    display: block !important;
    width: 128px !important;
    height: 36px !important;
    max-width: 128px !important;
    max-height: 36px !important;
    object-fit: contain !important;
    object-position: left center;
    flex-shrink: 0;
}

/* Logo centralizada no login */
.logo-saida-facil.logo-grande {
    width: 170px !important;
    height: 64px !important;
    max-width: 170px !important;
    max-height: 64px !important;
    object-position: center;
}

/* Logo da televisão */
.logo-saida-facil.logo-tv {
    width: 160px !important;
    height: 48px !important;
    max-width: 160px !important;
    max-height: 48px !important;
}

/* Celulares */
@media (max-width: 576px) {
    .logo-saida-facil {
        width: 105px !important;
        height: 30px !important;
        max-width: 105px !important;
        max-height: 30px !important;
    }

    .logo-saida-facil.logo-grande {
        width: 145px !important;
        height: 54px !important;
        max-width: 145px !important;
        max-height: 54px !important;
    }

    .logo-saida-facil.logo-tv {
        width: 125px !important;
        height: 38px !important;
        max-width: 125px !important;
        max-height: 38px !important;
    }
}

/* Logo exclusiva da página de login */
.auth-header .login-logo {
    display: block !important;
    width: 180px !important;
    height: 72px !important;
    max-width: 80% !important;
    max-height: 72px !important;
    margin: 0 auto 14px !important;
    object-fit: contain !important;
    object-position: center;
}

/* Tablets */
@media (max-width: 768px) {
    .auth-header .login-logo {
        width: 165px !important;
        height: 65px !important;
        max-height: 65px !important;
    }
}

/* Celulares */
@media (max-width: 480px) {
    .auth-header .login-logo {
        width: 145px !important;
        height: 56px !important;
        max-width: 75% !important;
        max-height: 56px !important;
        margin-bottom: 10px !important;
    }
}