@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary: #4f46e5;
    /* Indigo 600 */
    --primary-light: #818cf8;
    --secondary: #06b6d4;
    /* Cyan 500 */
    --accent: #f43f5e;
    /* Rose 500 */

    --bg-main: #f8fafc;
    --bg-card: #ffffff;

    --sidebar-bg: #0f172a;
    --sidebar-surface: rgba(255, 255, 255, 0.03);

    --nav-item-hover: rgba(255, 255, 255, 0.1);
    --nav-item-active: #4f46e5;
}

body {
    font-family: 'Outfit', sans-serif;
    /* Plus moderne et géométrique que Jakarta */
    background-color: var(--bg-main);
    color: #1e293b;
}

/* --- Utilities --- */

.font-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Backgrounds */
.bg-mesh {
    background-color: #f8fafc;
    background-image:
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(244, 63, 94, 0.03) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Cards */
.card-premium {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.02),
        0 2px 4px -1px rgba(0, 0, 0, 0.02),
        0 10px 15px -3px rgba(0, 0, 0, 0.03),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    /* Subtle border via shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-premium:hover {
    transform: translateY(-2px);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.05),
        0 10px 10px -5px rgba(0, 0, 0, 0.02),
        0 0 0 1px rgba(79, 70, 229, 0.1);
    /* Highlight border on hover */
}

/* Text Gradients */
.text-gradient-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sidebar Specifics */
.sidebar-link {
    position: relative;
    transition: all 0.2s ease;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    /* Ajusté pour le padding du parent */
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
    transition: transform 0.2s ease;
}

.sidebar-link-active {
    background: var(--sidebar-surface);
    color: white !important;
}

.sidebar-link-active::before {
    transform: translateY(-50%) scaleY(1);
}

.sidebar-link-active svg {
    color: var(--primary-light);
    filter: drop-shadow(0 0 8px rgba(129, 140, 248, 0.5));
}

/* Custom Scrollbar refined */
.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* Animations */
@keyframes pulse-soft {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.animate-pulse-soft {
    animation: pulse-soft 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}