/* Base styles and design tokens */
:root {
    --indigo-600: #4f46e5;
    --indigo-700: #4338ca;
    --zinc-50: #fafafa;
    --zinc-100: #f4f4f5;
    --zinc-200: #e4e4e7;
    --zinc-300: #d4d4d8;
    --zinc-400: #a1a1aa;
    --zinc-500: #71717a;
    --zinc-900: #18181b;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Customization */
.scrollbar-none::-webkit-scrollbar {
    display: none;
}

.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Custom UI Components */
.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
}

.sidebar-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Select2 Modern Overrides */
.select2-container--default .select2-selection--single {
    border: 1px solid #e4e4e7 !important;
    /* zinc-200 */
    border-radius: 0.5rem !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    background-color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    outline: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #3f3f46 !important;
    /* zinc-700 */
    padding-left: 0.75rem !important;
    padding-right: 2rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 8px !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #4f46e5 !important;
    /* indigo-600 */
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
}

.select2-dropdown {
    border: 1px solid #f4f4f5 !important;
    /* zinc-100 */
    border-radius: 12px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
    margin-top: 4px !important;
    padding: 4px !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 9999 !important;
}

.select2-results__option {
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    color: #52525b !important;
    /* zinc-600 */
    transition: all 0.2s ease !important;
}

.select2-results__option--highlighted[aria-selected] {
    background-color: #4f46e5 !important;
    /* indigo-600 */
    color: #ffffff !important;
}

.select2-results__option--selected {
    background-color: #f5f3ff !important;
    /* indigo-50 */
    color: #4f46e5 !important;
}

.select2-search--dropdown {
    padding: 8px !important;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #f4f4f5 !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    font-size: 10px !important;
    background-color: #fafafa !important;
    /* zinc-50 */
    outline: none !important;
}

/* Select2 inside modal: match form field height and zinc-50 bg */
#projectModal .select2-container--default .select2-selection--single {
    height: 48px !important;
    background-color: #fafafa !important;
    border-radius: 0.75rem !important;
    border: 1px solid #e4e4e7 !important;
    font-size: 12px !important;
}

#projectModal .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px !important;
    padding-left: 1rem !important;
    font-size: 12px !important;
}

#projectModal .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px !important;
}

#projectModal .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

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

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e4e4e7;
    border-radius: 99px;
}
