body { 
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale; 
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
body.light-mode {
    background-color: #f8fafc;
    background-image: radial-gradient(#d1d5db 0.5px, transparent 0.5px);
    background-size: 20px 20px;
}
body.dark-mode {
    background-color: #0f172a;
    background-image: radial-gradient(#475569 0.5px, transparent 0.5px);
    background-size: 20px 20px;
}
.loader { 
    border: 2px solid #f3f3f3; 
    border-top: 2px solid #d35400; 
    border-radius: 50%; 
    width: 16px; 
    height: 16px; 
    animation: spin 1s linear infinite; 
    display: none; 
}
@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

.dropdown-enter {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
}
.dropdown-enter-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.2s ease-out;
}
.dropdown-exit {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.dropdown-exit-active {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.15s ease-in;
}

.theme-btn-active {
    background-color: #d35400;
    color: white;
}
.dark .theme-btn-active {
    background-color: #fb923c;
    color: #1f2937;
}

@media (max-width: 768px) {
    #dropdown-menu {
        width: 16rem !important;
        right: -0.5rem;
    }
    
    #dropdown-menu .py-2 {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    #dropdown-menu button,
    #dropdown-menu a {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        min-height: 3rem;
    }
    
    #dropdown-menu .px-4.py-3 {
        padding: 1rem;
    }
    
    #dropdown-menu .flex.items-center.justify-between.space-x-1 {
        gap: 0.5rem;
    }
    
    #dropdown-menu .flex.items-center.justify-between.space-x-1 button {
        width: 3rem;
        height: 2.5rem;
        min-height: 2.5rem;
    }
    
    #dropdown-toggle {
        width: 3rem;
        height: 3rem;
    }
}
