/* MonSportif - Styles personnalisés */

/* Variables CSS */
:root {
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-light: #D1FAE5;
    --primary-hover: #0d9668;
    --secondary: #111827;
    --accent: #F59E0B;
    --danger: #EF4444;
    --success: #10B981;
    --warning: #F59E0B;
    --info: #3B82F6;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Adjustments */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sidebar */
.sidebar {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-nav-item {
    @apply flex items-center gap-3 px-3 py-2 rounded-xl text-sm font-medium transition-all duration-200;
}

.sidebar-nav-item.active {
    @apply bg-primary-500/10 text-primary-400 border-r-2 border-primary-500;
}

/* Glassmorphism for specific elements */
.glass {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Sidebar premium styles */
.sidebar-nav-item {
    @apply flex items-center gap-3 px-4 py-3 rounded-2xl text-[13px] font-bold transition-all duration-300 mb-1;
}

.sidebar-nav-item.active {
    @apply bg-primary-50 text-primary-600 border border-primary-100 shadow-sm;
}

.sidebar-nav-item:not(.active):hover {
    @apply bg-gray-50 text-gray-900;
}

/* Glassmorphism for specific elements */
.glass {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Modern Glass (Light) */
.glass-dark {
    @apply bg-white/80 backdrop-blur-xl border border-gray-100 shadow-sm;
}

.glass-card {
    @apply bg-white backdrop-blur-xl border border-gray-200 transition-all duration-300 shadow-sm;
}

.glass-card:hover {
    @apply bg-white border-primary-500/30 shadow-xl;
}

/* Stat Card */
.stat-card {
    @apply bg-white border border-gray-200 p-6 rounded-[2rem] shadow-sm hover:shadow-xl transition-all duration-500;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    @apply bg-gray-200 rounded-full hover:bg-gray-300;
}

/* HTMX indicators */
.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator {
    display: inline-block;
}
.htmx-request.htmx-indicator {
    display: inline-block;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast notifications */
.toast {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-exit {
    animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideOut {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Modal backdrop */
.modal-backdrop {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Badge pulse */
.badge-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Container X1 - Professional Dashboard Container */
.container-x1 {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-x1 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .container-x1 {
        max-width: 750px;
    }
}

@media (min-width: 1024px) {
    .container-x1 {
        max-width: 1280px;
    }
}

@media (min-width: 1280px) {
    .container-x1 {
        max-width: 1400px;
    }
}

@media (min-width: 1536px) {
    .container-x1 {
        max-width: 1520px;
    }
}

/* Print styles */
@media print {
    .no-print { display: none !important; }
    .sidebar { display: none !important; }
    nav { display: none !important; }
}
