/* Import design tokens first */
@import url('design-tokens.css');

/* Import animations */
@import url('animations.css');

/* Import component-specific styles */
@import url('mood-selector.css');

/* Minimal placeholder to avoid 404 during dev. Extend with real styles as needed. */
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--gradient-bg-primary);
  color: var(--color-text-primary);
  min-height: 100vh;
}

.app-shell {
  min-height: 100vh;
}

.glass-bar {
  backdrop-filter: blur(var(--blur-lg));
  background: rgba(15, 23, 42, 0.55);
  border-bottom: 1px solid var(--color-border-default);
}

/* Light mode glass bar */
[data-theme="light"] .glass-bar {
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid var(--color-border-default);
}

.brand {
  letter-spacing: var(--tracking-wider);
  font-weight: var(--font-bold);
}

.page-container {
  padding: var(--space-12) var(--space-4) var(--space-16);
}

.page-surface {
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid var(--color-border-muted);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Light mode page surface */
[data-theme="light"] .page-surface {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border-default);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Enhanced visibility for MudBlazor outlined cards */
.mud-card-outlined {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="light"] .mud-card-outlined {
  border-color: rgba(0, 0, 0, 0.15) !important;
}

/* Enhanced MudPaper shadows for better depth perception */
.mud-paper-elevation-1 {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

.mud-paper-elevation-2 {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

/* Add subtle border to all MudCard for better definition */
.mud-card {
  border: 1px solid var(--color-border-default);
}

.loading-container {
  min-height: 60vh;
  display: grid;
  place-items: center;
  gap: var(--space-3);
}

.loading-spinner {
  width: var(--space-10);
  height: var(--space-10);
  border: 4px solid var(--color-overlay-light);
  border-top-color: var(--color-info-400);
  border-radius: var(--radius-full);
  animation: spin var(--duration-slow) linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE UTILITIES
   Mobile-first approach with touch-friendly targets
   ============================================ */

/* Touch target minimum sizes (WCAG 2.1 Level AAA) */
.touch-target {
  min-height: 44px;
  min-width: 44px;
}

.touch-target-lg {
  min-height: 48px;
  min-width: 48px;
}

/* Responsive text sizing */
@media (max-width: 599px) {
  /* xs breakpoint - mobile */
  h1, .mud-typography-h1 { font-size: 2rem !important; }
  h2, .mud-typography-h2 { font-size: 1.75rem !important; }
  h3, .mud-typography-h3 { font-size: 1.5rem !important; }
  h4, .mud-typography-h4 { font-size: 1.25rem !important; }
  
  .page-container {
    padding: var(--space-8) var(--space-3) var(--space-12);
  }
  
  .page-surface {
    padding: var(--space-4);
  }
}

@media (min-width: 600px) and (max-width: 959px) {
  /* sm breakpoint - tablet portrait */
  .page-container {
    padding: var(--space-10) var(--space-4) var(--space-14);
  }
  
  .page-surface {
    padding: var(--space-6);
  }
}

@media (min-width: 960px) {
  /* md breakpoint and above - tablet landscape + desktop */
  .page-container {
    padding: var(--space-12) var(--space-6) var(--space-16);
  }
}

/* Responsive spacing helpers */
.gap-responsive {
  gap: var(--space-2);
}

@media (min-width: 600px) {
  .gap-responsive {
    gap: var(--space-3);
  }
}

@media (min-width: 960px) {
  .gap-responsive {
    gap: var(--space-4);
  }
}

/* Hide/show utilities */
@media (max-width: 599px) {
  .hide-xs { display: none !important; }
}

@media (min-width: 600px) and (max-width: 959px) {
  .hide-sm { display: none !important; }
}

@media (min-width: 960px) {
  .hide-md-up { display: none !important; }
}

/* Flexbox responsive utilities */
.flex-column-xs {
  flex-direction: column;
}

@media (min-width: 600px) {
  .flex-row-sm {
    flex-direction: row;
  }
}

/* Responsive padding */
.pa-responsive {
  padding: var(--space-3);
}

@media (min-width: 600px) {
  .pa-responsive {
    padding: var(--space-4);
  }
}

@media (min-width: 960px) {
  .pa-responsive {
    padding: var(--space-6);
  }
}

/* ==================== DASHBOARD PAGE STYLES ==================== */

/* Animation utilities - reusable animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Global Utility Classes */
.skeleton-shimmer {
    border-radius: var(--radius-2xl);
    animation: shimmer 2s infinite;
}

