@import "tailwindcss";

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';

@theme {
    --font-sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
        "Noto Color Emoji";
}

@tailwind base;
@tailwind components;
@tailwind utilities;

[x-cloak] {
    display: none !important;
}

body {
    font-family: "Vazir", sans-serif;
}
@keyframes progress {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.animate-progress {
    animation: progress 1s ease-out forwards;
}

/* Animation for skill bars */
@keyframes progress {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* اسکرول بار پیشرفته با انیمیشن */
:root {
    --scrollbar-primary: #6366f1;
    --scrollbar-secondary: #8b5cf6;
    --scrollbar-track-light: #f1f1f1;
    --scrollbar-track-dark: #1f2937;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track-light);
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        45deg,
        var(--scrollbar-primary),
        var(--scrollbar-secondary)
    );
    border-radius: 10px;
    border: 3px solid var(--scrollbar-track-light);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #4f46e5, #7c3aed);
    transform: scale(1.05);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* حالت تاریک */
.dark {
    --scrollbar-primary: #818cf8;
    --scrollbar-secondary: #a78bfa;
}

.dark ::-webkit-scrollbar-track {
    background: var(--scrollbar-track-dark);
}

.dark ::-webkit-scrollbar-thumb {
    border-color: var(--scrollbar-track-dark);
}

/* انیمیشن اسکرول بار */
@keyframes scrollbarPulse {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
    }
}

::-webkit-scrollbar-thumb {
    animation: scrollbarPulse 3s ease infinite;
}
