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

/* Custom Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.5s ease-out forwards;
}

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

.dark .glass {
    background: rgba(15, 23, 42, 0.7); /* Deep slate with opacity */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Scrollbar Styling - Updated for Horizontal Support */
::-webkit-scrollbar {
    width: 8px;
    height: 8px; /* Added height for horizontal scrollbars */
}

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

::-webkit-scrollbar-thumb {
    background-color: #cbd5e1; /* slate-300 */
    border-radius: 20px;
}

.dark ::-webkit-scrollbar-thumb {
    background-color: #334155; /* slate-700 */
    border: 2px solid transparent; /* padding around thumb */
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8; /* slate-400 */
}

.dark ::-webkit-scrollbar-thumb:hover {
    background-color: #475569; /* slate-600 */
}

/* Utility to force scrollbar visibility on desktop if needed */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}