/* Animation Styles */
.animations-enabled {
    --animation-duration: 0.3s;
    --animation-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

.animations-disabled {
    --animation-duration: 0s;
    --animation-easing: none;
}

/* Card Animations */
.animations-enabled .card {
    transition: transform var(--animation-duration) var(--animation-easing),
                box-shadow var(--animation-duration) var(--animation-easing);
}

.animations-enabled .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

/* Button Animations */
.animations-enabled .btn {
    transition: all var(--animation-duration) var(--animation-easing);
}

.animations-enabled .btn:hover {
    transform: translateY(-1px);
}

/* Navigation Animations */
.animations-enabled .navbar {
    transition: background-color var(--animation-duration) var(--animation-easing);
}

.animations-enabled .nav-link {
    transition: color var(--animation-duration) var(--animation-easing);
}

/* Sidebar Animations */
.animations-enabled .sidebar {
    transition: transform var(--animation-duration) var(--animation-easing);
}

.animations-enabled .sidebar.collapsed {
    transform: translateX(-100%);
}

/* Form Animations */
.animations-enabled .form-control {
    transition: border-color var(--animation-duration) var(--animation-easing),
                box-shadow var(--animation-duration) var(--animation-easing);
}

/* Badge Animations */
.animations-enabled .badge {
    transition: transform var(--animation-duration) var(--animation-easing);
}

.animations-enabled .badge:hover {
    transform: scale(1.05);
}

/* Loading Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animations-enabled .fade-in {
    animation: fadeIn var(--animation-duration) var(--animation-easing);
}

.animations-enabled .slide-in {
    animation: slideIn var(--animation-duration) var(--animation-easing);
}

.animations-enabled .pulse {
    animation: pulse 2s infinite;
}

.animations-enabled .spin {
    animation: spin 1s linear infinite;
}

/* Disable animations when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animations-enabled * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}