/* ============================================
   ENTERPRISE DESIGN SYSTEM
   Standardized spacing, sizing, and semantic tokens
   ============================================ */

:root {
    /* ===== SPACING SCALE (8pt grid) ===== */
    --spacing-0: 0;
    --spacing-px: 1px;
    --spacing-0-5: 0.125rem;  /* 2px */
    --spacing-1: 0.25rem;      /* 4px */
    --spacing-1-5: 0.375rem;  /* 6px */
    --spacing-2: 0.5rem;       /* 8px */
    --spacing-2-5: 0.625rem;  /* 10px */
    --spacing-3: 0.75rem;      /* 12px */
    --spacing-3-5: 0.875rem;  /* 14px */
    --spacing-4: 1rem;         /* 16px */
    --spacing-5: 1.25rem;      /* 20px */
    --spacing-6: 1.5rem;       /* 24px */
    --spacing-7: 1.75rem;      /* 28px */
    --spacing-8: 2rem;         /* 32px */
    --spacing-9: 2.25rem;      /* 36px */
    --spacing-10: 2.5rem;      /* 40px */
    --spacing-11: 2.75rem;     /* 44px */
    --spacing-12: 3rem;        /* 48px */
    --spacing-14: 3.5rem;      /* 56px */
    --spacing-16: 4rem;        /* 64px */
    --spacing-20: 5rem;        /* 80px */
    --spacing-24: 6rem;        /* 96px */
    --spacing-28: 7rem;        /* 112px */
    --spacing-32: 8rem;        /* 128px */

    /* ===== SIZE VARIANTS ===== */
    /* Component Heights */
    --size-xs: 1.5rem;    /* 24px */
    --size-sm: 2rem;      /* 32px */
    --size-md: 2.5rem;    /* 40px */
    --size-lg: 2.75rem;   /* 44px */
    --size-xl: 3rem;      /* 48px */
    --size-2xl: 3.5rem;   /* 56px */

    /* Touch Targets (WCAG AAA) */
    --touch-target-min: 44px;
    --touch-target-comfortable: 48px;

    /* ===== SEMANTIC COLOR TOKENS ===== */
    /* Success States */
    --color-success: 142 71% 45%;           /* Green-600 */
    --color-success-foreground: 0 0% 100%;
    --color-success-muted: 142 76% 96%;     /* Green-50 */
    
    /* Warning States */
    --color-warning: 38 92% 50%;            /* Orange-500 */
    --color-warning-foreground: 0 0% 100%;
    --color-warning-muted: 48 100% 96%;     /* Yellow-50 */
    
    /* Info States */
    --color-info: 217 91% 60%;              /* Blue-500 */
    --color-info-foreground: 0 0% 100%;
    --color-info-muted: 214 100% 97%;       /* Blue-50 */

    /* ===== BORDER RADIUS SCALE ===== */
    --radius-none: 0;
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;

    /* ===== ELEVATION/SHADOW SCALE ===== */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* ===== Z-INDEX SCALE ===== */
    --z-base: 0;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-notification: 1080;
    --z-skip-link: 9999;

    /* ===== ANIMATION DURATIONS ===== */
    --duration-instant: 0ms;
    --duration-fast: 150ms;
    --duration-normal: 200ms;
    --duration-slow: 300ms;
    --duration-slower: 500ms;

    /* ===== ANIMATION EASINGS ===== */
    --ease-linear: linear;
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dark {
    /* Dark mode shadow adjustments */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 8px 10px -6px rgba(0, 0, 0, 0.7);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

/* ===== SIZE VARIANT UTILITIES ===== */

/* Button Sizes */
  .btn-xs {
    height: var(--size-xs);
    padding-left: var(--spacing-2);
    padding-right: var(--spacing-2);
    font-size: 0.75rem;
    line-height: 1rem;
  }

  .btn-sm {
    height: var(--size-sm);
    padding-left: var(--spacing-3);
    padding-right: var(--spacing-3);
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .btn-md {
    height: var(--size-md);
    padding-left: var(--spacing-4);
    padding-right: var(--spacing-4);
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .btn-lg {
    height: var(--size-lg);
    padding-left: var(--spacing-6);
    padding-right: var(--spacing-6);
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .btn-xl {
    height: var(--size-xl);
    padding-left: var(--spacing-8);
    padding-right: var(--spacing-8);
    font-size: 1.125rem;
    line-height: 1.75rem;
  }

  /* Input Sizes */
  .input-sm {
    height: var(--size-sm);
    padding-left: var(--spacing-3);
    padding-right: var(--spacing-3);
    font-size: 0.875rem;
  }

  .input-md {
    height: var(--size-md);
    padding-left: var(--spacing-4);
    padding-right: var(--spacing-4);
    font-size: 0.875rem;
  }

  .input-lg {
    height: var(--size-lg);
    padding-left: var(--spacing-4);
    padding-right: var(--spacing-4);
    font-size: 1rem;
  }

  /* Card Sizes */
  .card-sm {
    padding: var(--spacing-4);
    border-radius: var(--radius-lg);
  }

  .card-md {
    padding: var(--spacing-6);
    border-radius: var(--radius-xl);
  }

  .card-lg {
    padding: var(--spacing-8);
    border-radius: var(--radius-2xl);
  }

  /* ===== SEMANTIC COLOR UTILITIES ===== */
  
  .bg-success {
    background-color: hsl(var(--color-success));
    color: hsl(var(--color-success-foreground));
  }

  .bg-success-muted {
    background-color: hsl(var(--color-success-muted));
    color: hsl(var(--color-success));
  }

  .text-success {
    color: hsl(var(--color-success));
  }

  .border-success {
    border-color: hsl(var(--color-success));
  }

  .bg-warning {
    background-color: hsl(var(--color-warning));
    color: hsl(var(--color-warning-foreground));
  }

  .bg-warning-muted {
    background-color: hsl(var(--color-warning-muted));
    color: hsl(var(--color-warning));
  }

  .text-warning {
    color: hsl(var(--color-warning));
  }

  .border-warning {
    border-color: hsl(var(--color-warning));
  }

  .bg-info {
    background-color: hsl(var(--color-info));
    color: hsl(var(--color-info-foreground));
  }

  .bg-info-muted {
    background-color: hsl(var(--color-info-muted));
    color: hsl(var(--color-info));
  }

  .text-info {
    color: hsl(var(--color-info));
  }

  .border-info {
    border-color: hsl(var(--color-info));
  }

  /* ===== ACCESSIBILITY UTILITIES ===== */
  
  /* Focus Visible Ring */
  .focus-ring {
    outline: 2px solid transparent;
    outline-offset: 2px;
}
  .focus-ring:focus-visible {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-color: hsl(var(--ring));
    --tw-ring-offset-width: 2px;
}
  .focus-ring {
    transition: box-shadow var(--duration-fast) var(--ease-out);
  }

  /* Touch Targets */
  .touch-target {
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
  }

  .touch-target-comfortable {
    min-width: var(--touch-target-comfortable);
    min-height: var(--touch-target-comfortable);
  }

  /* Screen Reader Only */
  .sr-only-focusable {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
  .sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    position: absolute;
    z-index: var(--z-skip-link);
    padding: 16px;
}

  /* ===== RESPONSIVE TYPOGRAPHY ===== */
  
  .text-display {
    font-size: 2rem;
    line-height: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  @media (min-width: 640px) {
    .text-display {
      font-size: 2.5rem;
      line-height: 3rem;
    }
  }

  @media (min-width: 1024px) {
    .text-display {
      font-size: 3rem;
      line-height: 3.5rem;
    }
  }

  .text-heading {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  @media (min-width: 640px) {
    .text-heading {
      font-size: 1.875rem;
      line-height: 2.25rem;
    }
  }

  .text-subheading {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
  }

  @media (min-width: 640px) {
    .text-subheading {
      font-size: 1.5rem;
      line-height: 2rem;
    }
  }

  /* ===== ANIMATION UTILITIES ===== */
  
  .animate-fast {
    animation-duration: var(--duration-fast);
  }

  .animate-normal {
    animation-duration: var(--duration-normal);
  }

  .animate-slow {
    animation-duration: var(--duration-slow);
  }

  .transition-fast {
    transition-duration: var(--duration-fast);
    transition-timing-function: var(--ease-out);
  }

  .transition-normal {
    transition-duration: var(--duration-normal);
    transition-timing-function: var(--ease-out);
  }

  .transition-slow {
    transition-duration: var(--duration-slow);
    transition-timing-function: var(--ease-out);
  }

  .transition-spring {
    transition-timing-function: var(--ease-spring);
  }

/* ===== FORCED COLORS MODE (High Contrast) ===== */
@media (forced-colors: active) {
  .premium-card-universal,
  .card {
    border: 1px solid CanvasText;
  }

  .btn,
  button {
    border: 1px solid ButtonText;
  }

  .focus-ring:focus-visible {
    outline: 2px solid Highlight;
    outline-offset: 2px;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== ENTERPRISE COMPONENT PATTERNS ===== */

/* Search & Filter Bar */
.search-filter-bar {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-6);
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 480px;
}

.search-input {
  width: 100%;
  height: var(--size-md);
  padding-left: var(--spacing-10);
  padding-right: var(--spacing-4);
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  transition: all var(--duration-fast) var(--ease-out);
}

.search-input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

.search-icon {
  position: absolute;
  left: var(--spacing-3);
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--muted-foreground));
  pointer-events: none;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-16) var(--spacing-8);
  text-align: center;
  min-height: 400px;
}

.empty-state-icon {
  width: 4rem;
  height: 4rem;
  margin-bottom: var(--spacing-6);
  color: hsl(var(--muted-foreground));
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: var(--spacing-2);
}

.empty-state-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: var(--spacing-6);
  max-width: 400px;
}

.empty-state-action {
  margin-top: var(--spacing-4);
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(
    90deg,
    hsl(var(--muted) / 0.4) 0%,
    hsl(var(--muted) / 0.6) 50%,
    hsl(var(--muted) / 0.4) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 2s ease-in-out infinite;
  border-radius: var(--radius-md);
}

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

.skeleton-text {
  height: 1rem;
  margin-bottom: var(--spacing-2);
}

.skeleton-text-sm {
  height: 0.875rem;
  margin-bottom: var(--spacing-2);
}

.skeleton-heading {
  height: 1.5rem;
  width: 60%;
  margin-bottom: var(--spacing-4);
}

.skeleton-card {
  padding: var(--spacing-6);
  border-radius: var(--radius-xl);
}

/* Premium Button Hierarchy */
.btn-primary-gradient {
  background: linear-gradient(135deg, hsl(217 91% 60%) 0%, hsl(271 91% 65%) 100%);
  color: white;
  border: none;
  font-weight: 600;
  box-shadow: 
    0 0 0 1px rgba(59, 130, 246, 0.1),
    0 2px 8px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all var(--duration-normal) var(--ease-out);
}

.btn-primary-gradient:hover {
  background: linear-gradient(135deg, hsl(217 91% 55%) 0%, hsl(271 91% 60%) 100%);
  box-shadow: 
    0 0 0 1px rgba(59, 130, 246, 0.2),
    0 4px 12px rgba(59, 130, 246, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-primary-gradient:active {
  transform: translateY(0);
  box-shadow: 
    0 0 0 1px rgba(59, 130, 246, 0.2),
    0 2px 4px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dark .btn-primary-gradient {
  box-shadow: 
    0 0 0 1px rgba(59, 130, 246, 0.2),
    0 2px 8px rgba(59, 130, 246, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Metric Indicator */
.metric-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  font-size: 0.875rem;
  font-weight: 500;
}

.metric-indicator-positive {
  color: hsl(var(--color-success));
}

.metric-indicator-negative {
  color: hsl(var(--destructive));
}

.metric-indicator-neutral {
  color: hsl(var(--muted-foreground));
}

.metric-context {
  font-size: 0.75rem;
  font-weight: 400;
  color: hsl(var(--muted-foreground));
  margin-left: var(--spacing-1);
}

/* Stat Card Variants */
.stat-card-primary {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.05) 0%,
    rgba(147, 51, 234, 0.03) 100%
  );
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 2.5rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--foreground));
}

.stat-card-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin-top: var(--spacing-2);
}

.stat-card-change {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  margin-top: var(--spacing-3);
}

/* Filter Chips */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-1) var(--spacing-3);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
}

.filter-chip:hover {
  background: hsl(var(--accent));
  border-color: hsl(var(--accent-foreground) / 0.2);
}

.filter-chip-active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

.filter-chip-remove {
  width: 1rem;
  height: 1rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--duration-fast);
}

.filter-chip-remove:hover {
  opacity: 1;
}

/* Action Bar */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-6);
  flex-wrap: wrap;
}

.action-bar-primary {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
}

.action-bar-secondary {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: var(--spacing-4);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

.breadcrumb-link {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color var(--duration-fast);
}

.breadcrumb-link:hover {
  color: hsl(var(--foreground));
}

.breadcrumb-separator {
  width: 1rem;
  height: 1rem;
  opacity: 0.5;
}

.breadcrumb-current {
  color: hsl(var(--foreground));
  font-weight: 500;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-1) var(--spacing-3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge-success {
  background: hsl(var(--color-success-muted));
  color: hsl(var(--color-success));
}

.status-badge-warning {
  background: hsl(var(--color-warning-muted));
  color: hsl(var(--color-warning));
}

.status-badge-info {
  background: hsl(var(--color-info-muted));
  color: hsl(var(--color-info));
}

.status-badge-neutral {
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

/* Notification Badge */
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 var(--spacing-1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  border: 2px solid hsl(var(--background));
}

/* ===== PRINT STYLES ===== */
@media print {
  .no-print,
  .search-filter-bar,
  .action-bar,
  .filter-chip,
  .notification-badge {
    display: none !important;
  }

  .premium-background,
  .background-effects {
    display: none !important;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
}

/* ============================================
   THEME SWITCH FIX
   Prevents page freeze and pointer-events blocking
   ============================================ */

/* Remove all transitions during theme change */
html.changing-theme,
html.changing-theme * {
  transition: none !important;
  animation: none !important;
}

/* Ensure pointer-events work during theme change */
html.changing-theme * {
  pointer-events: auto !important;
}

/* Prevent layout shift during theme change */
html {
  color-scheme: light dark;
}

/* Smooth theme transitions for specific properties only */
body {
  transition: background-color 0.15s ease-out, color 0.15s ease-out;
}

/* Remove global wildcard transitions that cause issues */

/**
 * Apple-Grade Animations
 * Smooth, natural animations following Apple's design principles
 */

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-in-from-bottom {
  from {
    transform: translateY(1rem);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slide-in-from-top {
  from {
    transform: translateY(-1rem);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slide-in-from-left {
  from {
    transform: translateX(-1rem);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-in-from-right {
  from {
    transform: translateX(1rem);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes scale-in {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Animation utilities */
.animate-in {
  animation-duration: 500ms;
  animation-fill-mode: both;
}

.fade-in {
  animation-name: fade-in;
}

.slide-in-from-bottom-4 {
  animation-name: slide-in-from-bottom;
}

.slide-in-from-top-4 {
  animation-name: slide-in-from-top;
}

.slide-in-from-left-4 {
  animation-name: slide-in-from-left;
}

.slide-in-from-right-4 {
  animation-name: slide-in-from-right;
}

.scale-in {
  animation-name: scale-in;
}

.duration-300 {
  animation-duration: 300ms;
}

.duration-500 {
  animation-duration: 500ms;
}

.duration-700 {
  animation-duration: 700ms;
}

/* Smooth transitions */
.transition-smooth {
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover lift effect */
.hover-lift {
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-2px);
}

/* Skeleton shimmer */
.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    hsl(var(--muted)) 0%,
    hsl(var(--muted) / 0.8) 50%,
    hsl(var(--muted)) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/**
 * Apple-Grade Notification Animations
 * Subtle, elegant animations following Apple's design principles
 */

@keyframes subtle-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.05);
  }
}

/* Apply to notification badge */
.notification-badge-pulse {
  animation: subtle-pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

