:root {
    --primary-color: #0d3b66;
    --primary-dark: #082744;
    --primary-light: #1e5a96;
    --success-color: #10b981;
    --success-dark: #059669;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-500: #6c757d;
    --gray-700: #495057;
    --gray-900: #212529;
}
* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: #f4f6f9; color: var(--gray-900); min-height: 100vh; }
.login-page { background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); min-height: 100vh; }
.login-card { border-radius: 20px; animation: fadeInUp 0.6s ease; }
.login-logo { width: 80px; height: 80px; margin: 0 auto; background: linear-gradient(135deg, var(--primary-color), var(--primary-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 2.5rem; box-shadow: 0 10px 30px rgba(13, 59, 102, 0.3); }
.navbar { background: linear-gradient(90deg, var(--primary-color), var(--primary-dark)) !important; padding: 0.75rem 1rem; }
.navbar-brand { font-size: 1.25rem; letter-spacing: 0.5px; }
.navbar-brand i { color: var(--success-color); margin-right: 0.25rem; }
.nav-link { color: rgba(255,255,255,0.85) !important; font-weight: 500; font-size: 0.9rem; padding: 0.5rem 0.85rem !important; transition: all 0.2s; border-radius: 8px; }
.nav-link:hover, .nav-link.active { color: #fff !important; background: rgba(255,255,255,0.15); }
.user-avatar { width: 40px; height: 40px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; }
.main-content { padding-top: 80px; min-height: calc(100vh - 80px); }
.page-header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--gray-200); }
.page-header h1 { font-size: 1.75rem; font-weight: 700; color: var(--primary-color); margin: 0; }
.card { border: none; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: all 0.3s; margin-bottom: 1.5rem; }
.card:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.card-header { background: white; border-bottom: 1px solid var(--gray-200); padding: 1rem 1.25rem; font-weight: 600; color: var(--primary-color); }
.card-body { padding: 1.25rem; }
.stat-card { background: white; border-radius: 14px; padding: 1.25rem; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: relative; overflow: hidden; transition: transform 0.3s; border-left: 4px solid var(--primary-color); }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.stat-card.primary { border-left-color: var(--primary-color); }
.stat-card.success { border-left-color: var(--success-color); }
.stat-card.warning { border-left-color: var(--warning-color); }
.stat-card.danger { border-left-color: var(--danger-color); }
.stat-card.info { border-left-color: var(--info-color); }
.stat-card .stat-icon { position: absolute; right: 15px; top: 15px; width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; }
.stat-card.primary .stat-icon { background: linear-gradient(135deg, var(--primary-color), var(--primary-light)); }
.stat-card.success .stat-icon { background: linear-gradient(135deg, var(--success-dark), var(--success-color)); }
.stat-card.warning .stat-icon { background: linear-gradient(135deg, #d97706, var(--warning-color)); }
.stat-card.danger .stat-icon { background: linear-gradient(135deg, #dc2626, var(--danger-color)); }
.stat-card.info .stat-icon { background: linear-gradient(135deg, #2563eb, var(--info-color)); }
.stat-card .stat-label { font-size: 0.8rem; color: var(--gray-500); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 0.5rem; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; color: var(--gray-900); line-height: 1; }
.stat-card .stat-sub { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.5rem; }
.badge { font-weight: 500; padding: 0.4em 0.75em; border-radius: 6px; }
.badge-success { background: var(--success-color); color: white; }
.badge-danger { background: var(--danger-color); color: white; }
.badge-warning { background: var(--warning-color); color: white; }
.badge-primary { background: var(--primary-color); color: white; }
.btn { border-radius: 8px; font-weight: 500; padding: 0.5rem 1rem; transition: all 0.2s; }
.btn-primary { background: var(--primary-color); border-color: var(--primary-color); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); }
.btn-success { background: var(--success-color); border-color: var(--success-color); }
.btn-success:hover { background: var(--success-dark); border-color: var(--success-dark); }
.btn-sm { padding: 0.25rem 0.6rem; font-size: 0.85rem; }
.table { margin-bottom: 0; }
.table thead th { background: var(--gray-100); color: var(--gray-700); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--gray-200); padding: 0.85rem; }
.table tbody td { padding: 0.85rem; vertical-align: middle; border-bottom: 1px solid var(--gray-200); font-size: 0.9rem; }
.table-hover tbody tr:hover { background: var(--gray-100); }
.progress { height: 20px; border-radius: 10px; background: var(--gray-200); overflow: hidden; }
.progress-bar { background: linear-gradient(90deg, var(--primary-color), var(--primary-light)); color: white; font-weight: 600; font-size: 0.8rem; line-height: 20px; }
.progress-bar.success { background: linear-gradient(90deg, var(--success-dark), var(--success-color)); }
.meta-batida { background: linear-gradient(135deg, var(--success-color), var(--success-dark)); color: white; padding: 1rem; border-radius: 12px; text-align: center; font-weight: 700; font-size: 1.25rem; animation: pulse 2s infinite; box-shadow: 0 5px 20px rgba(16, 185, 129, 0.3); }
.meta-batida i { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.ranking-item { display: flex; align-items: center; padding: 0.85rem; border-bottom: 1px solid var(--gray-200); transition: background 0.2s; }
.ranking-item:hover { background: var(--gray-100); }
.ranking-item:last-child { border-bottom: none; }
.ranking-posicao { width: 40px; height: 40px; border-radius: 50%; background: var(--gray-200); color: var(--gray-700); display: flex; align-items: center; justify-content: center; font-weight: 700; margin-right: 1rem; flex-shrink: 0; }
.ranking-posicao.ouro { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: white; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4); }
.ranking-posicao.prata { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: white; box-shadow: 0 4px 12px rgba(148, 163, 184, 0.4); }
.ranking-posicao.bronze { background: linear-gradient(135deg, #d97706, #b45309); color: white; box-shadow: 0 4px 12px rgba(180, 83, 9, 0.4); }
.ranking-info { flex: 1; }
.ranking-nome { font-weight: 600; color: var(--gray-900); margin-bottom: 2px; }
.ranking-cidade { font-size: 0.8rem; color: var(--gray-500); }
.ranking-pontos { font-weight: 700; color: var(--primary-color); font-size: 1.1rem; }
.form-label { font-weight: 500; color: var(--gray-700); font-size: 0.9rem; margin-bottom: 0.35rem; }
.form-control, .form-select { border-radius: 8px; border: 1px solid var(--gray-300); padding: 0.5rem 0.75rem; transition: all 0.2s; }
.form-control:focus, .form-select:focus { border-color: var(--primary-color); box-shadow: 0 0 0 0.2rem rgba(13, 59, 102, 0.15); }
.alert { border: none; border-radius: 10px; padding: 0.85rem 1rem; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-danger { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-info { background: #dbeafe; color: #1e40af; }
.footer { background: white; margin-top: 2rem; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
.fade-in { animation: fadeInUp 0.5s ease; }
@media (max-width: 768px) {
    .stat-card .stat-value { font-size: 1.35rem; }
    .stat-card .stat-icon { width: 40px; height: 40px; font-size: 1.2rem; }
    .page-header h1 { font-size: 1.35rem; }
    .navbar-brand { font-size: 1rem; }
    .main-content { padding-top: 70px; }
    .table { font-size: 0.8rem; }
    .table thead th, .table tbody td { padding: 0.5rem; }
}
.chart-container { position: relative; height: 300px; width: 100%; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--gray-500); }
.empty-state i { font-size: 4rem; color: var(--gray-300); margin-bottom: 1rem; }
.empty-state h4 { color: var(--gray-700); margin-bottom: 0.5rem; }
.modal-content { border: none; border-radius: 14px; }
.modal-header { background: linear-gradient(90deg, var(--primary-color), var(--primary-light)); color: white; border-radius: 14px 14px 0 0; }
.modal-header .btn-close { filter: invert(1); }
.avatar-circle { width: 45px; height: 45px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-color), var(--primary-light)); color: white; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1.1rem; }