﻿@tailwind base;
@tailwind components;
@tailwind utilities;

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

.menu-item {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

    .menu-item:hover {
        transform: translateX(2px);
    }

.sidebar-scroll {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f9fafb;
}

    .sidebar-scroll::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar-scroll::-webkit-scrollbar-track {
        background: #f9fafb;
    }

    .sidebar-scroll::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 3px;
    }

        .sidebar-scroll::-webkit-scrollbar-thumb:hover {
            background: #9ca3af;
        }

/* Responsive adjustments */
@media (max-width: 640px) {
    .sidebar-scroll {
        scrollbar-width: auto;
    }
}

/* Animation for rotate */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(180deg);
    }
}

.rotate-180 {
    transform: rotate(180deg);
}

/* Smooth transitions */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Focus styles */
button:focus,
a:focus,
input:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Pulse animation for notification dot */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/*.input-error {
    border: 2px solid red !important;
    border-radius: 10px;
}*/