:root {
    --primary-color: #059669; /* Verde Esmeralda Moderno */
    --primary-dark: #064e3b;
    --accent-color: #34d399; /* Verde Neon Suave */
    --dark-bg: #0f172a; /* Slate Dark */
    --card-bg: rgba(255, 255, 255, 0.95);
}

/* Reset e Base */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #334155;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Outfit', sans-serif;
}

a { 
    text-decoration: none; 
}

/* --- Navbar Moderna --- */
.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800 !important;
    color: var(--primary-dark) !important;
    font-size: 1.5rem !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    font-weight: 600 !important;
    color: #64748b !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Botões Modernos */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.4);
}

.btn-success {
    background: var(--primary-color) !important;
    border: none !important;
    border-radius: 12px !important;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    border-radius: 12px !important;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background: var(--primary-color) !important;
    color: white !important;
}

/* Cards Modernos */
.card {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px);
}

.card-header {
    background: white !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 1.25rem !important;
}

/* Badges Modernos */
.badge {
    border-radius: 8px !important;
    padding: 0.4rem 0.8rem !important;
    font-weight: 600 !important;
}

.bg-success {
    background-color: var(--primary-color) !important;
}

.text-success {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-dark) !important;
}

.text-primary {
    color: var(--primary-dark) !important;
}

/* Icon Box */
.icon-box {
    width: 60px;
    height: 60px;
    background: #ecfdf5;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 auto;
}

/* Tables Modernas */
.table {
    border-radius: 12px;
    overflow: hidden;
}

.table thead th {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 700;
    color: var(--dark-bg);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

/* Forms Modernos */
.form-control, .form-select {
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1) !important;
}

.form-label {
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
}

/* Tabs Modernos */
.nav-tabs {
    border-bottom: 2px solid #e2e8f0 !important;
}

.nav-tabs .nav-link {
    border: none !important;
    color: #64748b !important;
    font-weight: 600;
    padding: 1rem 1.5rem;
    transition: all 0.3s;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 3px solid var(--primary-color) !important;
    background: transparent !important;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Stat Box */
.stat-box {
    padding: 12px;
    text-align: center;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Avatar Placeholder */
.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Position Badge */
.position-badge {
    min-width: 60px;
    text-align: center;
}

/* Points Badge */
.points-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #64748b;
}

/* Responsividade */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
}


/* Footer Moderno */
footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1e293b 100%);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

footer a {
    color: #94a3b8;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--accent-color);
}

footer .text-muted {
    color: #94a3b8 !important;
}

/* Alert Modernos */
.alert {
    border: none !important;
    border-radius: 12px !important;
    border-left: 4px solid !important;
    padding: 1rem 1.25rem !important;
}

.alert-success {
    background-color: #ecfdf5 !important;
    border-left-color: var(--primary-color) !important;
    color: var(--primary-dark) !important;
}

.alert-danger {
    background-color: #fef2f2 !important;
    border-left-color: #dc2626 !important;
    color: #991b1b !important;
}

.alert-warning {
    background-color: #fef3c7 !important;
    border-left-color: #f59e0b !important;
    color: #92400e !important;
}

.alert-info {
    background-color: #dbeafe !important;
    border-left-color: #3b82f6 !important;
    color: #1e40af !important;
}

/* Dropdown Moderno */
.dropdown-menu {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    padding: 0.5rem !important;
}

.dropdown-item {
    border-radius: 8px !important;
    padding: 0.6rem 1rem !important;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f8fafc !important;
    color: var(--primary-color) !important;
}

.dropdown-divider {
    margin: 0.5rem 0 !important;
    border-color: #e2e8f0 !important;
}

/* Pagination Moderna */
.pagination {
    gap: 0.5rem;
}

.page-link {
    border: none !important;
    border-radius: 8px !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s;
}

.page-link:hover {
    background-color: #ecfdf5 !important;
    color: var(--primary-dark) !important;
}

.page-item.active .page-link {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Modal Moderno */
.modal-content {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3) !important;
}

.modal-header {
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 1.5rem !important;
}

.modal-footer {
    border-top: 1px solid #e2e8f0 !important;
    padding: 1.5rem !important;
}

/* Progress Bar Moderna */
.progress {
    height: 12px !important;
    border-radius: 12px !important;
    background-color: #e2e8f0 !important;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color)) !important;
    border-radius: 12px !important;
}

/* Tooltip Moderno */
.tooltip-inner {
    background-color: var(--dark-bg) !important;
    border-radius: 8px !important;
    padding: 0.5rem 1rem !important;
    font-weight: 600;
}

/* List Group Moderno */
.list-group-item {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    margin-bottom: 0.5rem !important;
    transition: all 0.3s;
}

.list-group-item:hover {
    background-color: #f8fafc !important;
    transform: translateX(5px);
}

/* Spinner Loading */
.spinner-border-primary {
    color: var(--primary-color) !important;
}

/* Container Responsivo */
.container {
    max-width: 1200px !important;
}

/* Scroll Suave */
html {
    scroll-behavior: smooth;
}

/* Text Colors */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-dark-custom {
    color: var(--dark-bg) !important;
}

/* Background Colors */
.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.bg-light-custom {
    background-color: #f8fafc !important;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s, box-shadow 0.3s;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important;
}

/* Icon Sizes */
.icon-sm {
    font-size: 1.25rem;
}

.icon-md {
    font-size: 1.75rem;
}

.icon-lg {
    font-size: 2.5rem;
}

.icon-xl {
    font-size: 4rem;
}
