/* assets/style.css - Correções para Legibilidade: Textos em Branco Claro no Fundo Escuro */

/* Reset Geral para Textos - Força Branco em Elementos Comuns */
body, 
h1, h2, h3, h4, h5, h6,
p, .lead, .text-muted,
.card-text, .card-title,
.form-label, 
th, td, 
.alert, 
.swal2-title, .swal2-html-container {
    color: #ffffff !important; /* Branco puro para todos os textos principais */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Sombra sutil para contraste extra */
}

/* Placeholders e Inputs - Branco com Opacidade para Placeholder */
input::placeholder,
textarea::placeholder,
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important; /* Cinza claro para placeholders */
}

.form-control,
.form-control:focus {
    color: #ffffff !important; /* Branco nos inputs */
    background-color: rgba(255, 255, 255, 0.1) !important; /* Fundo semi-transparente */
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25) !important; /* Glow neon no foco */
}

/* Cards e Tabelas - Branco nos Conteúdos */
.card {
    color: #ffffff !important;
}

.card-title {
    color: #00d4ff !important; /* Neon azul para títulos de cards */
}

.card-text {
    color: rgba(255, 255, 255, 0.8) !important; /* Branco levemente opaco para descrições */
}

.table {
    color: #ffffff !important;
}

.table th {
    color: #00d4ff !important; /* Neon para headers de tabela */
}

.table td {
    color: #ffffff !important;
}

/* Badges e Botões - Ajustes para Legibilidade */
.badge {
    color: #ffffff !important;
}

.btn {
    color: #ffffff !important; /* Branco nos botões */
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.btn-primary {
    background-color: #00d4ff !important;
    border-color: #00d4ff !important;
}

.btn-primary:hover {
    background-color: #7b2cbf !important;
    border-color: #7b2cbf !important;
}

/* SweetAlert - Correções Específicas para Texto Legível */
.swal-custom .swal2-title,
.swal-custom .swal2-html-container {
    color: #ffffff !important; /* Branco no título e conteúdo */
}

.swal2-input,
.swal2-select {
    color: #ffffff !important; /* Branco nos inputs do SweetAlert */
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.swal2-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Modal de Login - Texto Branco */
.modal-content {
    background-color: rgba(0, 0, 0, 0.8) !important; /* Fundo escuro semi-transparente */
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.modal-header,
.modal-body {
    color: #ffffff !important;
}

/* Admin Card - Legibilidade no Formulário */
.admin-card .form-label {
    color: #ffffff !important;
}

.admin-card .form-control {
    color: #ffffff !important;
}

/* Contador e Lead - Branco Explícito */
.counter,
#rowCounter,
.lead {
    color: #ffffff !important;
}

/* Título Principal - Gradiente Neon Mantido, mas Garantido */
.title {
    font-family: 'Poppins', sans-serif !important;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile - Ajustes para Telas Pequenas */
@media (max-width: 768px) {
    body, h1, p, .card-text {
        color: #ffffff !important; /* Reforço para mobile */
        font-size: 1.1em; /* Aumenta ligeiramente para legibilidade */
    }
}

/* Manter Estilos Existentes do Template (Glassmorphism, Parallax, etc.) - Não Sobrescrever */
:root {
    --neon-blue: #00d4ff;
    --neon-purple: #7b2cbf;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0c0c1e 0%, #1a1a2e 50%, #16213e 100%);
    background-attachment: fixed;
    color: #ffffff !important; /* Reforço global */
}

.logo {
    animation: float 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px var(--neon-blue));
    transition: var(--transition);
}

.logo:hover {
    filter: drop-shadow(0 0 20px var(--neon-purple));
    transform: scale(1.1) rotate(5deg);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    color: #ffffff !important; /* Reforço */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.search-card, .login-card, .admin-card {
    background: var(--glass-bg);
    border-radius: 20px;
    color: #ffffff !important;
}

.btn {
    transition: var(--transition);
    border-radius: 50px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    color: #ffffff !important;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before { left: 100%; }

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.download-link img {
    transition: var(--transition);
    border-radius: 10px;
}

.download-link:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

#parallax-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,212,255,0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.swal-custom {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 15px !important;
    color: #ffffff !important;
}