:root {
    /* Cores Premium e Harmoniosas, sem roxo/violeta, seguindo diretrizes de design moderno */
    --primary-color: #2563eb;
    /* Azul Vibrante Premium */
    --primary-hover: #1d4ed8;
    --bg-color: #F7F7F7;
    /* Fundo limpo e claro */
    --card-bg: #1F1D2F;
    --text-main: #ffffff;
    --text-muted: #f8f8f8;
    --border-color: #1F1D2F;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
    --transition: all 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: transparent;
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* Fundo Animado com Bolhas */
.background-animado {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #F7F7F7;
}

.circulo-bg {
    position: absolute;
    border-radius: 50%;
    background: #E3E3E3;
    animation: floatAndScale 15s ease-in-out infinite alternate;
}

.circulo-1 { width: 400px; height: 400px; left: -100px; top: -100px; animation-duration: 25s; }
.circulo-2 { width: 600px; height: 600px; right: -150px; bottom: -150px; animation-duration: 35s; animation-delay: -5s; }
.circulo-3 { width: 250px; height: 250px; left: 30%; top: 40%; animation-duration: 20s; animation-delay: -10s; }

.triangulo-bg {
    position: absolute;
    background: #E3E3E3;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: floatAndScale 20s ease-in-out infinite alternate;
}
.triangulo-1 { width: 350px; height: 350px; right: 20%; top: -100px; animation-duration: 22s; }
.triangulo-2 { width: 150px; height: 150px; left: 10%; bottom: 20%; animation-duration: 18s; animation-delay: -3s; }
.triangulo-3 { width: 500px; height: 500px; left: -150px; top: 40%; animation-duration: 28s; animation-delay: -8s; opacity: 0.7; }

/* Transição de Pagina */
.transicao-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #F7F7F7;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.transicao-overlay.ativa {
    opacity: 1;
    pointer-events: all;
}

@keyframes floatAndScale {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.4) translate(80px, -50px); }
    100% { transform: scale(0.9) translate(-40px, 80px); }
}

/* Tipografia */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--text-main);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Layout Principal */
.recipiente-aplicativo {
    /* app-container */
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/* Header / Navbar */
.barra-navegacao {
    /* navbar */
    background: rgba(235, 32, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.marca-barra-navegacao {
    /* navbar-brand */
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.links-navegacao {
    /* nav-links */
    display: flex;
    gap: 1.5rem;
}

.item-navegacao {
    /* nav-item */
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
}

.item-navegacao:hover,
.item-navegacao.ativo {
    /* active */
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Main Content Area */
.conteudo-principal {
    /* main-content */
    flex: 1;
    padding: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.cabecalho-pagina {
    /* page-header */
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.titulo-pagina {
    /* page-title */
    font-size: 1.875rem;
    color: #000000;
}

/* Cards */
.cartao {
    /* card */
    background: rgba(31, 29, 47, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cartao:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.titulo-cartao {
    /* card-title */
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.valor-cartao {
    /* card-value */
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Dashboard Grid */
.grade-painel {
    /* dashboard-grid */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@keyframes btnGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Botoes */
.botao {
    /* btn */
    background: linear-gradient(270deg, #B21901, #FF5B00, #B21901);
    background-size: 200% 200%;
    animation: btnGradient 3s ease infinite;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.875rem;
}

.botao-principal {
    /* btn-primary */
    background: linear-gradient(270deg, #B21901, #FF5B00, #B21901);
    background-size: 200% 200%;
    animation: btnGradient 3s ease infinite;
    color: #ffffff;
    border: none;
    position: relative;
    overflow: hidden;
}

.botao-principal:hover {
    background: linear-gradient(270deg, #FF5B00, #B21901, #FF5B00);
    background-size: 200% 200%;
    color: #ffffff;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Ripple */
span.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: rippleAnim 600ms linear;
    background-color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Footer */
.rodape {
    /* footer */
    background: rgba(235, 32, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: auto;
}

/* Micro-Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.animacao-surgir {
    /* animate-fade-in */
    animation: fadeIn 0.4s ease-out forwards;
}

.atraso-animacao-1 {
    animation-delay: 0.1s;
}

.atraso-animacao-2 {
    animation-delay: 0.2s;
}

.atraso-animacao-3 {
    animation-delay: 0.3s;
}

/* Utilitarios em Portugues (novas classes para extrair os styles inline) */

/* Cores e Texto */
.texto-sucesso {
    color: var(--success);
}

.texto-perigo {
    color: var(--danger);
}

.texto-aviso {
    color: var(--warning);
}

.texto-secundario {
    color: var(--text-muted);
}

.texto-principal {
    color: var(--text-main);
}

.texto-centralizado {
    text-align: center;
}

/* Margens */
.margem-topo-pequena {
    margin-top: 0.25rem;
}

.margem-topo-media {
    margin-top: 0.5rem;
}

.margem-topo-grande {
    margin-top: 1rem;
}

.margem-topo-extra-grande {
    margin-top: 1.5rem;
}

.margem-base-pequena {
    margin-bottom: 0.5rem;
}

.margem-base-media {
    margin-bottom: 1rem;
}

.margem-base-grande {
    margin-bottom: 1.5rem;
}

.margem-base-extra-grande {
    margin-bottom: 2rem;
}

/* Links */
.link-bloco-pequeno {
    font-size: 0.875rem;
    display: block;
    margin-top: 0.5rem;
}

/* Alertas e Blocos Especiais */
.alerta-erro {
    border-left: 4px solid var(--danger);
    margin-bottom: 2rem;
}

.cartao-vazio {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
}

/* Layouts Flex */
.flex-linha-espacada {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-linha-topo {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.flex-linha-centro {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flex-coluna-espacada {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flex-botoes {
    display: flex;
    gap: 0.5rem;
}

/* Icones e Detalhes */
.icone-medio {
    font-size: 1.5rem;
}

.icone-grande {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.icone-extra-grande {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.fundo-azul-claro {
    background-color: #eff6ff;
    color: var(--primary-color);
    padding: 0.75rem;
    border-radius: var(--radius-md);
}

.etiqueta-sucesso {
    font-size: 0.75rem;
    font-weight: 600;
    background: #ecfdf5;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
}

.etiqueta-pequena {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-color);
    background: #eff6ff;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
}

/* Botoes Variacoes */
.botao-secundario {
    border-color: var(--border-color);
    color: var(--text-main);
}

.botao-secundario-texto {
    border-color: var(--border-color);
    color: var(--text-muted);
}

.botao-expandido {
    flex: 1;
    font-size: 0.75rem;
}

/* Outros Componentes Específicos */
.subtitulo-pagina {
    color: #000000;
    margin-top: 0.25rem;
}

.texto-detalhe {
    font-size: 0.875rem;
}

/* Utilitarios de imagem de foto de perfil */
.foto-perfil-recipiente {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 3px solid #eff6ff;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.foto-perfil-imagem {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.texto-truncado {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Alunos.php, Turmas.php, Chamadas.php */
.cartao-filtro {
    margin-bottom: 2rem;
}

.conteudo-acolchoado {
    padding: 1rem;
}

.formulario-filtros {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.campo-filtro {
    flex: 1;
    min-width: 200px;
}

.rotulo-filtro {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.selecao-filtro {
    width: 100%;
    padding: 0.55rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-family: inherit;
    background-color: white;
}

.grade-painel-pequena {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.cartao-aluno {
    padding: 1rem;
    text-align: center;
}

.cartao-aluno-atraso-1 {
    animation-delay: 0.1s;
}

.cartao-aluno-atraso-2 {
    animation-delay: 0.15s;
}

.cartao-aluno-atraso-3 {
    animation-delay: 0.2s;
}

.cartao-aluno-atraso-4 {
    animation-delay: 0.25s;
}

.cartao-aluno-atraso-5 {
    animation-delay: 0.3s;
}

.cartao-aluno-atraso-6 {
    animation-delay: 0.35s;
}

.cartao-aluno-atraso-7 {
    animation-delay: 0.4s;
}

.cartao-aluno-atraso-8 {
    animation-delay: 0.45s;
}

.cartao-aluno-atraso-9 {
    animation-delay: 0.5s;
}

.cartao-aluno-atraso-10 {
    animation-delay: 0.55s;
}

.titulo-cartao-menor {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.texto-detalhe-secundario {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.rodape-cartao-aluno {
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}

.botao-pequeno-largura-total {
    width: 100%;
    padding: 0.35rem;
    font-size: 0.7rem;
    border-color: var(--border-color);
    color: var(--text-muted);
}

.titulo-cartao-medio {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.grade-chamadas {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.cabecalho-lista-chamadas {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.titulo-lista-chamadas {
    font-size: 1.125rem;
}

.select-pequeno {
    padding: 0.4rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.botao-quadrado-pequeno {
    padding: 0.4rem;
    border-color: var(--border-color);
}

.tabela-responsiva {
    overflow-x: auto;
}

.tabela-simples {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}

.tabela-simples th {
    padding: 1rem 0.5rem;
    color: var(--text-muted);
    font-weight: 600;
}

.tabela-simples tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.tabela-simples tr:hover {
    background-color: #f8fafc;
}

.tabela-simples td {
    padding: 1rem 0.5rem;
}

.celula-direita {
    text-align: right;
}

.texto-peso-medio {
    font-weight: 500;
}

.botao-tabela {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    border-color: var(--border-color);
}

.mensagem-vazia {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.icone-vazio-tabela {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.cartao-calendario {
    padding: 1.25rem;
}

.cabecalho-calendario {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.titulo-calendario {
    font-size: 0.875rem;
    font-weight: 700;
}

.botao-icone-limpo {
    padding: 0.25rem;
    border: none;
    background: none;
}

.grade-dias-semana {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.grade-dias-mes {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    text-align: center;
}

.dia-calendario {
    font-size: 0.75rem;
    padding: 0.4rem;
    border-radius: 4px;
    border: 1px solid transparent;
    color: var(--text-main);
}

.dia-hoje {
    background: var(--primary-color);
    color: white;
}

.dia-com-registro {
    background: #ecfdf5;
    color: var(--success);
    border-color: #d1fae5;
    cursor: pointer;
}

.legenda-calendario-conteiner {
    margin-top: 1.5rem;
    border-top: 1px dotted var(--border-color);
    padding-top: 1rem;
}

.titulo-legenda {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.item-legenda {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ponto-hoje {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
}

.ponto-registro {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

.fonte-pequena {
    font-size: 0.7rem;
}

/* Formularios */
.formulario-coluna {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rotulo-formulario {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.controle-formulario {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
}

.bg-branco {
    background-color: white;
}

.divisor-topo-formulario {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.botao-largo {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
}

.cartao-centralizado-500 {
    max-width: 500px;
    margin: 0 auto;
}

/* Chamada Facial */
.texto-principal-cor {
    color: var(--primary-color);
}

.destaque-negrito {
    font-weight: 600;
}

.layout-grade-tela-dividida {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.conteiner-video {
    padding: 0 !important;
    position: relative;
    background: #000;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-fluido {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lona-sobreposicao {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.alerta-sucesso-sobreposto {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 10;
    border: 2px solid var(--success);
    animation: bounceIn 0.5s;
}

.foto-perfil-pequena-borda {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #eee;
    overflow: hidden;
    border: 2px solid var(--success);
}

.titulo-alerta-nome {
    font-size: 0.9rem;
    margin: 0;
}

.texto-alerta-pequeno {
    font-size: 0.65rem;
    margin: 0;
    font-weight: 700;
}

.tela-carregamento-sobreposta {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 1rem;
    z-index: 20;
}

.icone-carregamento-grande {
    font-size: 3rem;
    color: var(--primary-color);
}

.cartao-coluna-limitada {
    display: flex;
    flex-direction: column;
    max-height: 500px;
}

.etiqueta-contador-presencas {
    background: var(--primary-color);
    color: white;
    padding: 0.1rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
}

.lista-rolavel-espacada {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mensagem-vazia-pequena {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-size: 0.8rem;
}

/* Cadastros */
.cartao-centralizado-600 {
    max-width: 600px;
    margin: 0 auto;
}

.grade-duas-colunas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.rodape-formulario {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.caixa-selecao-alinhada {
    display: flex;
    align-items: flex-end;
    padding-bottom: 0.75rem;
}

.rotulo-clicavel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}

.grade-mista {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 2rem;
    align-items: start;
}

.texto-cuidado {
    color: var(--warning);
    font-size: 0.75rem;
    margin-top: 0.5rem;
    text-align: center;
    font-weight: 600;
}

.status-tela-ia {
    font-size: 0.75rem;
    color: var(--warning);
    margin-bottom: 1rem;
    font-weight: 600;
}

.conteiner-camera-cadastro {
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

.lona-preview {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.marcador-rosto {
    position: absolute;
    top: 15%;
    left: 20%;
    width: 60%;
    height: 70%;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 40px;
    pointer-events: none;
}

.botao-destaque-escuro {
    background: var(--text-main);
    color: white;
    padding: 1rem;
}

.conteiner-miniaturas {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.slot-miniatura {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ============================================================
   MODAL DE SAÍDA ANTECIPADA
   Overlay escuro com card centralizado e animação suave
   ============================================================ */

/* Fundo escuro que cobre toda a tela */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Quando o modal ta visível */
.modal-overlay.modal-visivel {
    opacity: 1;
    visibility: visible;
}

/* Card do modal centralizado */
.modal-conteudo {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 90%;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

/* Quando visível, o card sobe e cresce */
.modal-visivel .modal-conteudo {
    transform: translateY(0) scale(1);
}

/* Cabeçalho do modal com ícone e título */
.modal-cabecalho {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ícone redondo no cabeçalho do modal */
.modal-icone {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.modal-cabecalho h2 {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Nome do aluno dentro do modal */
.modal-nome-aluno {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.7;
    margin-top: 0.15rem;
}

/* Corpo do modal com os campos */
.modal-corpo {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Grupo de campo do formulário do modal */
.modal-campo {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.modal-campo label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-campo input,
.modal-campo textarea {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    transition: border-color 0.2s ease;
}

.modal-campo input:focus,
.modal-campo textarea:focus {
    outline: none;
    border-color: #f59e0b;
}

.modal-campo textarea {
    resize: vertical;
    min-height: 80px;
}

/* Rodapé do modal com os botões */
.modal-rodape {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-rodape .botao {
    flex: 1;
    padding: 0.75rem;
    font-weight: 600;
    text-align: center;
}

/* Botão laranja de confirmar saída */
.botao-saida {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important;
    border: none !important;
}

.botao-saida:hover {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
}

/* Botão de registrar saída no card do aluno */
.botao-registrar-saida {
    background-color: #f59e0b !important;
    color: white !important;
    border: none;
}

.botao-registrar-saida:hover {
    background-color: #d97706 !important;
}

/* Feedback de sucesso no modal */
.modal-sucesso {
    text-align: center;
    padding: 1rem 0;
}

.modal-sucesso i {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 0.75rem;
    display: block;
}

.modal-sucesso p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Feedback de erro no modal */
.modal-erro {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    font-size: 0.85rem;
    color: #fca5a5;
    margin-bottom: 0.5rem;
    display: none;
}

/* Botão verde de confirmar retorno */
.botao-retorno {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    border: none !important;
}

.botao-retorno:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
}

/* Botão de registrar retorno no card do aluno */
.botao-registrar-retorno {
    background-color: #10b981 !important;
    color: white !important;
    border: none;
}

.botao-registrar-retorno:hover {
    background-color: #059669 !important;
}