/* Additional custom styles */
@media (max-width: 768px) {
    .stats-card {
        margin-bottom: 1rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(to bottom, #0f172a, #1e293b);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #0ea5e9, #3b82f6);
    border-radius: 6px;
    border: 2px solid #0f172a;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
}

/* Selection color */
::selection {
    background-color: rgba(14, 165, 233, 0.5);
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 220px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff;
    text-align: center;
    border-radius: 10px;
    padding: 12px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(14, 165, 233, 0.3);
    font-size: 0.875rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transform: translateY(10px) scale(0.95);
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Nouveaux effets de design */
.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #0ea5e9, #3b82f6, #8b5cf6);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

.cyber-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(#0f172a, #0f172a) padding-box,
                linear-gradient(45deg, #0ea5e9, #f59e0b, #8b5cf6) border-box;
}

.text-gradient {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.3), transparent);
    pointer-events: none;
    z-index: 0;
}

/* Animations améliorées */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(14, 165, 233, 0.3); }
    50% { box-shadow: 0 0 40px rgba(14, 165, 233, 0.6); }
}

@keyframes slide-in {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-slide-in {
    animation: slide-in 0.8s ease-out forwards;
}

/* Effets de hover améliorés */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.25);
}

/* Background patterns */
.bg-grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(14, 165, 233, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(14, 165, 233, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Gradient text shadows */
.text-glow {
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
}

/* Loading animations */
.loading-dots::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Card shine effect */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: transform 0.6s;
}

.card-shine:hover::before {
    transform: rotate(30deg) translate(20%, 20%);
}