/* ============================================================================
   ANIMATIONS — Keyframes, transitions, skeletons
   ============================================================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes slideUp {
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-8px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes slideLeft {
    from { transform: translateX(16px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

@keyframes scaleUp {
    from { transform: scale(0.96); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

@keyframes skeleton-loading {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes ripple {
    from { transform: scale(0); opacity: 0.4; }
    to   { transform: scale(4); opacity: 0; }
}

/* Utility classes */
.animate-fade-in   { animation: fadeIn   var(--duration-base) var(--easing-out); }
.animate-slide-up  { animation: slideUp  var(--duration-base) var(--easing-out); }
.animate-scale-up  { animation: scaleUp  var(--duration-base) var(--easing-out); }
.animate-spin      { animation: spin 1s linear infinite; }
.animate-pulse     { animation: pulse 2s var(--easing-in-out) infinite; }

/* Hover effects */
.hover-lift {
    transition: transform var(--duration-base), box-shadow var(--duration-base);
}
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Transition utilities */
.transition-fast    { transition: all var(--duration-fast) var(--easing-in-out); }
.transition-base    { transition: all var(--duration-base) var(--easing-in-out); }
.transition-colors  { transition: color var(--duration-base), background-color var(--duration-base), border-color var(--duration-base); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print */
@media print {
    .sidebar, .header, .sidebar-toggle, .toast-container, .no-print { display: none !important; }
    .main-wrapper { margin-left: 0 !important; }
    .main-content { padding: 0; background: white; }
}
