/* Styles globaux améliorés */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body, .dashboard-layout, .main-content {
    scrollbar-width: thin;
    scrollbar-color: #667eea #1a202c;
}

/* Pour Chrome, Edge, Safari */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.dashboard-layout::-webkit-scrollbar,
.main-content::-webkit-scrollbar {
    width: 10px;
    background: #1a202c;
    border-radius: 8px;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.dashboard-layout::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 8px;
    border: 2px solid #1a202c;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.dashboard-layout::-webkit-scrollbar-thumb:hover,
.main-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
}

/* Boutons améliorés */
button, .btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.8em 1.6em;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

button:hover, .btn:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    transform: translateY(-3px);
}

button:active, .btn:active {
    transform: translateY(-1px);
}

/* Inputs et select améliorés */
input, select, textarea {
    background: #2d3748;
    color: #fff;
    border: 2px solid #4a5568;
    border-radius: 12px;
    padding: 0.8em 1em;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

input:focus, select:focus, textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: #1a202c;
    transform: translateY(-2px);
}

/* Cards améliorées */
.card, .analytics-card, .leaderboard, .analytics-section, .analytics-map, .analytics-table-section {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    padding: 2rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.card::before, .analytics-card::before, .leaderboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 300% 100%;
    animation: gradientShift 3s ease infinite;
}

/* Tableaux améliorés */
table {
    width: 100%;
    border-collapse: collapse;
    background: #2d3748;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 1rem;
    border-bottom: 1px solid #4a5568;
    color: #fff;
    transition: background 0.3s ease;
}

th {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

tr:hover {
    background: #4a5568;
    transform: scale(1.01);
}

/* Titres améliorés */
h1, h2, h3, h4, h5, h6 {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Liens améliorés */
a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

a:hover {
    color: #764ba2;
    text-decoration: none;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* Animations */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Classes utilitaires */
.text-gradient {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.shadow-glow {
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hoverinfo, .datamaps-hoverover, .datamaps-hoverover * {
  pointer-events: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .card, .analytics-card, .leaderboard {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    button, .btn {
        padding: 0.7em 1.4em;
        font-size: 0.9rem;
    }
} 