/* ===================================================
   iLumina — Premium Styling (BASEADO NO OSPU REAL)
   =================================================== */

:root {
    --primary-blue: #0b3d91; /* Cor oficial Uauá */
    --primary-gold: #f2c029; /* Cor oficial Uauá */
    --dark-bg: #0f172a;
    --text-color: #f1f5f9;
    --glass-bg: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color-scheme: dark; /* Força dropdowns nativos do navegador a ficarem no modo escuro */
}

/* --- HEADER OSPU --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 5%;
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container img {
    height: 48px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-container h1 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--transition-speed);
}

.nav-links a:hover {
    color: var(--primary-gold);
}


/* --- CONTAINER STANDARD --- */
.dashboard-container {
    flex: 1; /* Preenche o espaço entre header e footer */
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 5%;
}

/* --- HERO & CONTENT --- */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
    background: radial-gradient(circle at top right, rgba(11,61,145,0.2), transparent 600px);
}

.hero-content {
    max-width: 900px;
}

.hero h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 900;
    line-height: 1.1;
}

.hero h2 strong { color: var(--primary-gold); }

.hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* --- BUTTONS --- */
.btn-primary {
    background-color: var(--primary-gold);
    color: #000;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-speed);
}

.btn-primary:hover {
    background-color: #ffda6a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(242,192,41,0.3);
}

.btn-os {
    background-color: #10b981;
    color: white;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-speed);
}

.btn-os:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

/* --- FEATURES GRID --- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
}

.glass-panel:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }

/* --- FOOTER OSPU (SIEP) --- */
.footer-siep {
    background-color: #0f172a;
    color: #f8fafc;
    font-size: 0.9rem;
    padding: 4rem 0 0 0;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5% 3rem 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 60px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-title {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background-color: var(--primary-gold);
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #cbd5e1; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary-gold); }

.footer-bottom {
    background-color: #020617;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.8rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    header { padding: 1rem 5%; flex-direction: column; gap: 1rem; }
    .nav-links { gap: 1rem; width: 100%; justify-content: center; }
    .hero h2 { font-size: 2rem; }
}

/* ===================================================
   iLumina — Novas Regras Globais de Design e Tabelas (Escuro & Glassmorphism)
   =================================================== */

/* Variáveis complementares */
:root {
    --bg-card: rgba(15, 23, 42, 0.45);
    --border: rgba(255, 255, 255, 0.08);
    --text-1: #f8fafc;
    --text-3: #94a3b8;
    --blue-uaua: #0b3d91;
    --blue-dim: rgba(11, 61, 145, 0.15);
    --red: #ef4444;
}

/* --- CARDS & CONTAINERS --- */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: border-color 0.3s, transform 0.3s;
}

/* --- TABLE DESIGN --- */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

th {
    background: rgba(10, 25, 60, 0.5);
    color: var(--primary-gold); /* Dourado de Uauá */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 18px 24px;
    border-bottom: 2px solid var(--border);
}

td {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* --- BOTOES (GHOST, PRIMARY, OUTLINE) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--primary-gold) !important;
    color: #020617 !important;
    box-shadow: 0 4px 15px rgba(242, 192, 41, 0.25);
    border: none;
}

.btn-primary:hover {
    background: #ffda6a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 192, 41, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline.active {
    background: var(--blue-dim) !important;
    border-color: var(--primary-gold) !important;
    color: var(--primary-gold) !important;
    box-shadow: 0 0 12px rgba(242, 192, 41, 0.15);
}

.btn-ghost {
    background: transparent;
    color: #94a3b8;
    padding: 8px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.btn-ghost.text-blue {
    color: #60a5fa;
}

.btn-ghost.text-blue:hover {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.1);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.8rem;
    border-radius: 8px;
}

/* --- INPUTS & FORM CONTROLS --- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-3);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: white;
    padding: 12px 16px;
    font-size: 0.9rem;
    transition: all 0.3s;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 10px rgba(242, 192, 41, 0.15);
}

.form-control option {
    background-color: #0f172a !important;
    color: #ffffff !important;
}

/* Correção para o autofill (preenchimento automático) do Chrome/Edge que deixa o fundo branco */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px #0f172a inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-control::placeholder {
    color: #64748b;
}

/* --- BADGES & DOTS --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 1px solid transparent;
}

.badge-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.2);
}

.badge-amber {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.2);
}

.badge-green {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.2);
}

.badge-gray {
    background: rgba(100, 116, 139, 0.1);
    color: #cbd5e1;
    border-color: rgba(100, 116, 139, 0.2);
}

.live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { opacity: 0.6; }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.6; }
}
