/* estilo.css - Verso Premium 4.0 */

/* 1. IMPORTANDO FONTES MODERNAS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #2af598 0%, #009efd 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
    --radius-lg: 20px;
    --radius-md: 12px;
}

body {
    background-color: #f0f2f5; /* Cinza super claro moderno */
    font-family: 'Poppins', sans-serif;
    color: #4a4a4a;
    -webkit-font-smoothing: antialiased;
}

/* 2. NAVBAR (TOPO) */
.navbar-custom {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    padding: 1rem 0;
}
.navbar-brand span {
    letter-spacing: -0.5px;
}

/* 3. CARTES (CARDS) */
.card-custom {
    background: #fff;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Para o degrad no vazar */
}

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

/* Header do Card */
.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.2rem 1.5rem;
}

/* Cards de Estatstica (Coloridos) */
.stat-card {
    background: var(--primary-gradient);
    color: white;
}
.stat-card h2, .stat-card p { color: white; }

.stat-card.posicao {
    background: var(--success-gradient);
}

/* 4. FORMULRIOS E INPUTS (Mais elegantes) */
.form-control, .form-select {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem; /* Mais alto */
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    background-color: #fff;
    border-color: #764ba2;
    box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.1); /* Anel de foco suave */
}

label.small {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #adb5bd !important;
    margin-bottom: 5px;
}

/* 5. BOTES */
.btn-primary-custom, .btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px; /* Plula */
    padding: 12px 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
    transition: all 0.3s;
}

.btn-primary-custom:hover, .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.4);
    background: var(--primary-gradient);
    filter: brightness(1.1);
}

.btn-dark {
    border-radius: 50px;
    padding: 8px 20px;
}

/* 6. TABELAS (Mais limpas) */
.table {
    margin-bottom: 0;
}
.table thead th {
    border-bottom: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 1px;
    padding-bottom: 1rem;
}
.table tbody td {
    padding: 1rem 0.5rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f2f5;
    font-size: 0.95rem;
}
.table tr:last-child td {
    border-bottom: none;
}

/* Badges (Etiquetas de Status) */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 6px;
}
.bg-success { background-color: #d1e7dd !important; color: #0f5132 !important; }
.bg-warning { background-color: #fff3cd !important; color: #664d03 !important; }
.bg-danger { background-color: #f8d7da !important; color: #842029 !important; }

/* 7. LOGIN (Centralizado e bonito) */
.login-body {
    background: var(--primary-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* AJUSTES MOBILE */
@media (max-width: 768px) {
    .container { padding-left: 20px; padding-right: 20px; }
    .card-custom { margin-bottom: 15px; }
    .display-4 { font-size: 2.5rem; }
}

/* IMPRESSO LIMPA */
@media print {
    .no-print { display: none !important; }
    .card-custom { box-shadow: none !important; border: 1px solid #ddd !important; }
    body { background: white !important; }
}