/* =====================================================
   CONTROLE DE ACESSO AO GABINETE
   Design: Glassmorphism · Sofisticação · Profundidade
   Paleta: Laranja #E88009 · Dark Grey #333 · Off-White #f8f9fa
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Cores base */
    --laranja: #E88009;
    --laranja-hover: #d67408;
    --laranja-claro: #FF9F43;
    --laranja-escuro: #c46207;
    --dark: #333;
    --dark-80: rgba(51, 51, 51, 0.8);
    --dark-60: rgba(51, 51, 51, 0.6);
    --dark-40: rgba(51, 51, 51, 0.4);
    --fundo: #f8f9fa;
    /* Gradiente metálico (bronze → ouro queimado) */
    --gradiente-cta: linear-gradient(135deg, #E88009 0%, #FF9F43 50%, #d67408 100%);
    --gradiente-cta-hover: linear-gradient(135deg, #d67408 0%, #E88009 50%, #c46207 100%);
    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: linear-gradient(135deg, rgba(255,255,255,.6) 0%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.4) 100%);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
    /* Soft shadows (camadas Z) */
    --sombra-z1: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --sombra-z2: 0 8px 24px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    --sombra-z3: 0 16px 48px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.06);
    --sombra-cta: 0 4px 14px rgba(232, 128, 9, 0.35), 0 2px 6px rgba(0, 0, 0, 0.08);
    --sombra-cta-hover: 0 6px 20px rgba(214, 116, 8, 0.4), 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Semânticas */
    --cor-erro: #c53030;
    --cor-erro-bg: rgba(197, 48, 48, 0.08);
    --cor-sucesso: #276749;
    --cor-sucesso-bg: rgba(39, 103, 73, 0.08);
    --cor-alerta: #b45309;
    --cor-alerta-bg: rgba(232, 128, 9, 0.08);
    --cor-vip: #7c3aed;
    /* Tipografia */
    --fonte: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --tracking: 0.01em;
    --tracking-titulo: 0.02em;
    --raio: 12px;
    --raio-grande: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--fonte);
    background: var(--fundo);
    color: var(--dark);
    line-height: 1.6;
    letter-spacing: var(--tracking);
    -webkit-font-smoothing: antialiased;
}

/* ========== LOGIN ========== */


.pagina-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}


/* ========== VIDEO BACKGROUND LOGIN ========== */

.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Overlay com seu degradê original */
.overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(240, 115, 53, 0.7) 0%,
        rgba(96, 96, 98, 0.6) 100%
    );
    z-index: -1;
}

/* Garante que o glass fique acima do overlay */
.container-login {
    position: relative;
    z-index: 1;
}

/* ========== fim BACKGROUND LOGIN ========== */

.container-login {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem 2.25rem;
    border-radius: var(--raio-grande);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid transparent;
    background-clip: padding-box;
    box-shadow: var(--sombra-z3), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    position: relative;
}

.container-login::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--glass-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.cabecalho-login {
    text-align: center;
    margin-bottom: 2rem;
}

.cabecalho-login h1 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: var(--tracking-titulo);
}

.cabecalho-login p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--dark-60);
}

.form-login .campo {
    margin-bottom: 1.25rem;
}

.form-login label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--dark-80);
}

.form-login input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(51, 51, 51, 0.12);
    border-radius: var(--raio);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-login input:focus {
    outline: none;
    border-color: var(--laranja);
    box-shadow: 0 0 0 3px rgba(232, 128, 9, 0.18);
}

.msg-erro {
    margin: 0.75rem 0;
    padding: 0.75rem 1rem;
    background: var(--cor-erro-bg);
    color: var(--cor-erro);
    border-radius: var(--raio);
    font-size: 0.875rem;
    display: none;
    border: 1px solid rgba(197, 48, 48, 0.2);
}

.msg-erro.visivel {
    display: block;
}

.form-login .btn-primario {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.875rem 1.25rem;
}

/* ========== BOTÕES ========== */
.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--raio);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: var(--tracking);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover:not(:disabled) {
    transform: scale(1.02);
}

.btn:active:not(:disabled) {
    transform: scale(0.98);
}

.btn-primario {
    background: var(--gradiente-cta);
    color: #fff;
    box-shadow: var(--sombra-cta);
}

.btn-primario:hover:not(:disabled) {
    background: var(--gradiente-cta-hover);
    box-shadow: var(--sombra-cta-hover);
    filter: brightness(1.05);
}

.btn-secundario {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-80);
    border: 1px solid rgba(51, 51, 51, 0.12);
    box-shadow: var(--sombra-z1);
}

.btn-secundario:hover:not(:disabled) {
    background: #fff;
    border-color: rgba(51, 51, 51, 0.2);
    box-shadow: var(--sombra-z2);
}

.btn-saida {
    background: transparent;
    color: var(--laranja);
    border: 1px solid rgba(232, 128, 9, 0.5);
}

.btn-saida:hover:not(:disabled) {
    background: rgba(232, 128, 9, 0.1);
    border-color: var(--laranja);
    box-shadow: 0 0 0 3px rgba(232, 128, 9, 0.15);
}

.btn-grande {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========== TOPO ========== */
.topo {
    background: linear-gradient(135deg, #2d2d2d 0%, #333 50%, #1a1a1a 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: var(--sombra-z2);
    position: relative;
}

.topo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 128, 9, 0.4), transparent);
    opacity: 0.8;
}

.topo h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: var(--tracking-titulo);
}

.usuario-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-admin {
    display: flex;
    gap: 0.5rem;
}

.nav-admin a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    padding: 0.5rem 0.875rem;
    border-radius: var(--raio);
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-admin a:hover,
.nav-admin a.ativo {
    background: rgba(232, 128, 9, 0.25);
    color: #fff;
}

/* ========== CARDS (GLASS) ========== */
.card {
    border-radius: var(--raio-grande);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--glass-shadow), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    position: relative;
}

.card h2 {
    margin: 0 0 1.25rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: var(--tracking-titulo);
}

.card h3, .card h4 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-80);
}

.conteudo-portaria,
.conteudo-assessor,
.conteudo-admin {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ========== CAMPOS ========== */
.campo {
    margin-bottom: 1.25rem;
}

.campo label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--dark-80);
}

.campo input[type="text"],
.campo input[type="email"],
.campo input[type="number"],
.campo input[type="date"],
.campo input[type="password"],
.campo select,
.campo textarea {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid rgba(51, 51, 51, 0.12);
    border-radius: var(--raio);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.85);
    color: var(--dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    outline: none;
    border-color: var(--laranja);
    box-shadow: 0 0 0 3px rgba(232, 128, 9, 0.15);
}

.campo-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 1.25rem;
}

.campo-inline label {
    margin-right: 0.25rem;
}

.campo-inline input {
    flex: 1;
    min-width: 160px;
    padding: 0.625rem 1rem;
    border: 1px solid rgba(51, 51, 51, 0.12);
    border-radius: var(--raio);
    background: rgba(255, 255, 255, 0.85);
}

.grid-campos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.filtro-data {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filtro-data input[type="date"] {
    padding: 0.5rem 0.75rem;
}

.campo-dica {
    margin: -0.5rem 0 1rem;
    font-size: 0.8125rem;
    color: var(--dark-60);
}

/* ========== RESULTADO CONSULTA CPF ========== */
.resultado-consulta {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: var(--raio);
    font-size: 0.9375rem;
}

.resultado-consulta.vazio {
    color: var(--dark-60);
}

.resultado-consulta.encontrado {
    background: rgba(255, 255, 255, 0.7);
    border-left: 4px solid var(--laranja);
    box-shadow: var(--sombra-z1);
}

.alerta {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: var(--raio);
    border-left: 4px solid;
}

.alerta-erro {
    background: var(--cor-erro-bg);
    border-color: var(--cor-erro);
    color: var(--dark-80);
}

.alerta-erro strong {
    color: var(--cor-erro);
}

.instrucao {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: var(--dark-60);
}

.destaque-vip {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(232, 128, 9, 0.06) 100%);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: var(--raio-grande);
    box-shadow: var(--sombra-z1);
}

.foto-vip {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--sombra-z2);
}

/* ========== FORM CADASTRO NOVO ========== */
.form-cadastro-novo {
    margin-top: 1.25rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--raio-grande);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--sombra-z1);
}

.area-webcam {
    margin: 0.75rem 0;
}

.area-webcam video,
.area-webcam canvas {
    display: block;
    border-radius: var(--raio);
    background: #1a1a1a;
    box-shadow: var(--sombra-z2);
}

.botoes-webcam {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.foto-visitante-triagem .foto-atual-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.foto-visitante-triagem .foto-atual-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--raio);
    object-fit: cover;
    box-shadow: var(--sombra-z2);
}

.foto-visitante-triagem .sem-foto-msg {
    color: var(--dark-60);
    font-size: 0.9rem;
}

.area-editar-foto {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--raio);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.botoes-editar-foto {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.msg-setor {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--cor-erro);
}

/* ========== LISTA VISITAS ========== */
.lista-visitas {
    min-height: 140px;
}

.item-visita {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(51, 51, 51, 0.08);
    border-radius: var(--raio);
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    box-shadow: var(--sombra-z1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.item-visita:hover {
    box-shadow: var(--sombra-z2);
}

.item-visita.dentro {
    border-left: 4px solid var(--laranja);
    background: rgba(255, 255, 255, 0.75);
}

.item-visita .info {
    flex: 1;
    min-width: 200px;
}

.item-visita .nome {
    font-weight: 700;
    color: var(--dark);
    letter-spacing: var(--tracking);
}

.item-visita .detalhes {
    font-size: 0.875rem;
    color: var(--dark-60);
    margin-top: 0.25rem;
}

.item-visita .acoes {
    display: flex;
    gap: 0.5rem;
}

/* Foto do visitante à esquerda do nome (círculo borda metálica) */
.visitante-foto-wrap {
    flex-shrink: 0;
}

.visitante-foto {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--laranja);
    box-shadow: 0 0 0 1px rgba(232, 128, 9, 0.25), 0 2px 8px rgba(232, 128, 9, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
}

.visitante-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visitante-foto--inicial .visitante-inicial {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark-80);
}

.item-visita .foto-mini {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--sombra-z1);
}

/* ========== LISTA CRUD (ADMIN) ========== */
.lista-crud .item-crud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(51, 51, 51, 0.08);
    transition: background 0.2s ease;
}

.lista-crud .item-crud:last-child {
    border-bottom: none;
}

.lista-crud .item-crud:hover {
    background: rgba(255, 255, 255, 0.5);
}

.form-modal {
    margin-top: 1.25rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--raio-grande);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--sombra-z1);
}

.botoes-form {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.75rem;
}

/* ========== OCORRÊNCIAS ========== */
.painel-ocorrencias {
    margin-top: 1.25rem;
    padding: 1.5rem;
    background: var(--cor-alerta-bg);
    border: 1px solid rgba(232, 128, 9, 0.25);
    border-radius: var(--raio-grande);
    box-shadow: var(--sombra-z1);
}

.lista-ocorrencias .item-ocorrencia {
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--raio);
    border-left: 4px solid var(--laranja);
    box-shadow: var(--sombra-z1);
}

/* ========== RELATÓRIOS ========== */
.relatorios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card-interno {
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--raio-grande);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--sombra-z1);
}

.relatorio-lista .linha {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(51, 51, 51, 0.06);
    font-size: 0.9375rem;
    color: var(--dark-80);
}

.relatorio-lista .linha:last-child {
    border-bottom: none;
}

/* ========== FILA DO SETOR (ASSESSOR) ========== */
.fila-secoes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .fila-secoes {
        grid-template-columns: 1fr;
    }
}

.fila-secao {
    padding: 1.25rem;
    border-radius: var(--raio-grande);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(51, 51, 51, 0.08);
}

.fila-secao.aguardando {
    border-left: 4px solid var(--laranja);
}

.fila-secao.chamados {
    border-left: 4px solid var(--cor-sucesso);
}

.fila-secao h2 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-fila {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.5rem;
    border-radius: 999px;
    background: var(--gradiente-cta);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
}

.fila-secao.chamados .badge-fila {
    background: var(--cor-sucesso);
}

.fila-descricao {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    color: var(--dark-60);
    line-height: 1.4;
}

.lista-fila {
    min-height: 80px;
}

.item-fila {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--raio);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(51, 51, 51, 0.06);
    box-shadow: var(--sombra-z1);
}

.item-fila .info {
    flex: 1;
    min-width: 140px;
}

.item-fila .nome {
    font-weight: 700;
    color: var(--dark);
}

.item-fila .detalhes {
    font-size: 0.8125rem;
    color: var(--dark-60);
    margin-top: 0.2rem;
}

.item-fila .acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* ========== MODAL LIQUID GLASS ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.modal--open {
    opacity: 1;
    visibility: visible;
}

.custom-modal {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(232, 128, 9, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    transform: scale(0.92);
    transition: transform 0.25s ease;
}

.modal-overlay.modal--open .custom-modal {
    transform: scale(1);
}

.custom-modal h3 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.custom-modal p {
    margin: 0 0 1.5rem;
    font-size: 0.9375rem;
    color: var(--dark-60);
    line-height: 1.5;
}

.modal-botoes {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-confirm {
    background: linear-gradient(135deg, #E88009 0%, #FFB35B 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(232, 128, 9, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 128, 9, 0.6);
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-80);
    border: 1px solid rgba(51, 51, 51, 0.15);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-cancel:hover {
    background: #fff;
    border-color: rgba(51, 51, 51, 0.25);
}

/* ========== TOASTS ========== */
#toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 360px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: var(--raio-grande);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--sombra-z3);
    animation: toastIn 0.35s ease;
    pointer-events: auto;
}

.toast--success {
    border-left: 4px solid var(--cor-sucesso);
}

.toast--success .toast-icon {
    color: var(--cor-sucesso);
}

.toast--error {
    border-left: 4px solid var(--cor-erro);
}

.toast--error .toast-icon {
    color: var(--cor-erro);
}

.toast--info {
    border-left: 4px solid var(--laranja);
}

.toast--info .toast-icon {
    color: var(--laranja);
}

.toast-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
}

.toast-icon::before {
    content: '✓';
}

.toast--error .toast-icon::before {
    content: '!';
}

.toast--info .toast-icon::before {
    content: 'i';
    font-style: italic;
    font-family: Georgia, serif;
}

.toast-msg {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--dark);
    text-align: left;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.toast--out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ========== UTILITÁRIOS ========== */
.hidden {
    display: none !important;
}

.texto-erro {
    color: var(--cor-erro);
}

.texto-sucesso {
    color: var(--cor-sucesso);
}
