/* ==========================================================================
   RPGBAY - FOLHA DE ESTILOS PRINCIPAL (GLASSMORPHISM PREMUIM)
   Paleta: Azul Noite (#080c16), Creme (#fdf6e3), Vermelho Agressivo (#dc2626)
   ========================================================================== */

/* Importação das Fontes */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   1. RESET E BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #080c16; /* Azul noite quase preto */
    color: #fdf6e3; /* Creme suave */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Efeito de Fundo - O Brilho Azul Pulsante */
body::before {
    content: '';
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.12) 0%, rgba(8, 12, 22, 0) 70%);
    top: 0;
    left: 0;
    z-index: -1;
    animation: pulseGlow 8s infinite alternate ease-in-out;
    pointer-events: none;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* ==========================================================================
   2. NAVBAR (MENU SUPERIOR)
   ========================================================================== */
.navbar {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(253, 246, 227, 0.05);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h2, .logo-container h1 {
    font-family: 'Anton', sans-serif;
    color: #fdf6e3;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo h2 { font-size: 2rem; }
.logo-container h1 { font-size: 3.5rem; text-shadow: 0 4px 15px rgba(0,0,0,0.5); line-height: 1; }
.logo h2 span, .logo-container h1 span { color: #dc2626; } /* Vermelho agressivo */

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: #fdf6e3;
}

.nav-links a.active {
    color: #3b82f6;
}

/* ==========================================================================
   3. CONTAINERS E PAINEIS (GLASSMORPHISM)
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    flex: 1;
}

.glass-panel, .login-wrapper, .onboarding-wrapper, .upload-wrapper {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.7), rgba(8, 12, 22, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(253, 246, 227, 0.08);
    border-radius: 16px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7), 0 0 20px rgba(37, 99, 235, 0.1);
}

.login-wrapper { padding: 3.5rem 3rem; width: 100%; max-width: 440px; margin: auto; }
.onboarding-wrapper { padding: 3rem; width: 100%; max-width: 700px; margin: auto; margin-top: 3rem; margin-bottom: 3rem; }
.upload-wrapper { padding: 3rem; width: 100%; max-width: 900px; margin: 0 auto; }

/* ==========================================================================
   4. TIPOGRAFIA E CABEÇALHOS
   ========================================================================== */
.dash-header, .page-header, .header-title {
    margin-bottom: 3rem;
}

.page-header { text-align: center; }
.dash-header { display: flex; justify-content: space-between; align-items: flex-end; }

h1.anton-title, .dash-header h1, .page-header h1, .header-title h1 {
    font-family: 'Anton', sans-serif;
    font-size: 3rem;
    letter-spacing: 1px;
    color: #fdf6e3;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    text-transform: uppercase;
}

.header-title h1 span { color: #dc2626; }

p.subtitle, .dash-header p, .page-header p, .header-title p {
    color: #94a3b8;
    font-size: 1.05rem;
    margin-top: 5px;
}

/* ==========================================================================
   5. FORMULÁRIOS E INPUTS
   ========================================================================== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group { display: flex; flex-direction: column; margin-bottom: 1.5rem; }
.form-group.full-width { grid-column: span 2; }

.form-group label {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 14px 16px;
    border-radius: 8px;
    color: #fdf6e3;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

textarea.form-control { resize: vertical; min-height: 120px; }

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    background: rgba(2, 6, 23, 0.9);
}

.form-control::placeholder { color: #475569; }

/* Customização de Input de Arquivo */
.file-upload-box {
    border: 2px dashed rgba(59, 130, 246, 0.4);
    background: rgba(37, 99, 235, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.file-upload-box:hover {
    border-color: #3b82f6;
    background: rgba(37, 99, 235, 0.1);
}

input[type="file"] { width: 100%; padding: 10px 0; color: #94a3b8; cursor: pointer; }

input[type="file"]::file-selector-button {
    background: #1e293b;
    color: #fdf6e3;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 8px 16px;
    border-radius: 4px;
    margin-right: 15px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: background 0.3s;
}

input[type="file"]::file-selector-button:hover { background: #3b82f6; border-color: #3b82f6; }
.file-hint { font-size: 0.75rem; color: #64748b; margin-top: 5px; display: block; }

/* ==========================================================================
   6. BOTÕES
   ========================================================================== */
.btn-submit, .btn-primary {
    font-family: 'Anton', sans-serif;
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    color: #fdf6e3;
    border: none;
    border-radius: 8px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-decoration: none;
    text-align: center;
}

.btn-submit { width: 100%; padding: 16px; font-size: 1.4rem; margin-top: 15px; }
.btn-primary { padding: 12px 25px; font-size: 1.2rem; display: inline-block; }

.btn-submit:hover, .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
}

.btn-logout {
    background: rgba(220, 38, 38, 0.1);
    color: #ef4444;
    border: 1px solid rgba(220, 38, 38, 0.3);
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
}

/* ==========================================================================
   7. DASHBOARD CARDS E TABELAS
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.5), rgba(8, 12, 22, 0.8));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(253, 246, 227, 0.05);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stat-card h3 { font-size: 0.85rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.stat-card .value { font-family: 'Anton', sans-serif; font-size: 2.5rem; color: #fdf6e3; letter-spacing: 1px; }
.stat-card .value span { font-family: 'Inter', sans-serif; font-size: 1rem; color: #10b981; margin-left: 10px; font-weight: 600; }

.table-section h2 {
    font-family: 'Anton', sans-serif;
    font-size: 2rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: #fdf6e3;
}

.table-container {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(253, 246, 227, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: rgba(2, 6, 23, 0.8); }
th { padding: 1.2rem; color: #94a3b8; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
td { padding: 1.2rem; border-top: 1px solid rgba(253, 246, 227, 0.05); color: #cbd5e1; font-size: 0.95rem; }
tr:hover td { background: rgba(37, 99, 235, 0.05); }
.prod-title { font-weight: 600; color: #fdf6e3; }

/* Status Badges */
.status { padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.status.aprovado { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.status.pendente { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }
.status.rejeitado { background: rgba(220, 38, 38, 0.1); color: #ef4444; border: 1px solid rgba(220, 38, 38, 0.2); }

/* ==========================================================================
   8. COMPONENTES EXTRAS E RESPONSIVIDADE
   ========================================================================== */
.kyc-alert {
    background: rgba(37, 99, 235, 0.1);
    border-left: 4px solid #3b82f6;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.kyc-alert strong { color: #fdf6e3; }

.extra-links { text-align: center; margin-top: 2rem; }
.extra-links a, .back-link { color: #94a3b8; text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.extra-links a:hover, .back-link:hover { color: #fdf6e3; }
.extra-links strong { color: #dc2626; transition: color 0.3s ease; }
.extra-links a:hover strong { color: #ef4444; }
.back-link { display: block; text-align: center; margin-top: 1.5rem; }

@media (max-width: 768px) {
    .dash-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
    .nav-links { display: none; /* Em produção, adicione um menu hamburguer aqui */ }
}
