/* Compact Luna AI - Optimized for Small Screens */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Reset & Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette */
  --primary-green: #10b981;
  --primary-green-light: #34d399;
  --primary-green-dark: #059669;
  --blue-accent: #3b82f6;
  --orange-accent: #f59e0b;
  --purple-accent: #8b5cf6;
  
  /* Background Colors */
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f8fafc;
  --bg-hover: #f3f4f6;
  --bg-active: #e5e7eb;
  
  /* Text Colors */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --text-light: #d1d5db;
  --text-white: #ffffff;
  
  /* Borders */
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --border-dark: #9ca3af;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  
  /* Border Radius */
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-2xl: 12px;
  --radius-full: 9999px;
  
  /* Compact Spacing */
  --space-1: 0.125rem;   /* 2px */
  --space-2: 0.25rem;    /* 4px */
  --space-3: 0.5rem;     /* 8px */
  --space-4: 0.75rem;    /* 12px */
  --space-5: 1rem;       /* 16px */
  --space-6: 1.25rem;    /* 20px */
  --space-8: 1.5rem;     /* 24px */
  
  /* Compact Layout */
  --sidebar-width: 220px;
  --header-height: 48px;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Transitions */
  --transition: all 0.15s ease;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --bg-tertiary: #374151;
  --bg-hover: #374151;
  --bg-active: #4b5563;
  
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-tertiary: #9ca3af;
  --text-light: #6b7280;
  
  --border-light: #374151;
  --border-medium: #4b5563;
  --border-dark: #6b7280;
}

/* Base Styles */
html, body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
  height: 100vh;
  overflow: hidden;
}

/* Main Layout */
.app-container {
  display: flex;
  height: 100vh;
  background-color: var(--bg-primary);
}

/* Compact Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
}

.sidebar.open {
  transform: translateX(0);
}

/* Compact Sidebar Header */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-light);
  background-color: var(--bg-secondary);
  min-height: var(--header-height);
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.sidebar-title i {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
  color: white;
  border-radius: var(--radius-md);
  font-size: 0.7rem;
}

.header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.8rem;
}

.header-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-secondary);
}

/* Compact Navigation */
.nav-section {
  padding: var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--border-light);
}

.nav-section:last-of-type {
  border-bottom: none;
}

.nav-section h3 {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
  padding: 0 var(--space-2);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: var(--space-1);
  cursor: pointer;
  min-height: 28px;
}

.nav-item:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background-color: var(--bg-active);
  color: var(--text-primary);
}

.nav-item i {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.nav-item.active i {
  color: var(--primary-green);
}

/* Compact Recent Chats */
.recent-chats {
  flex: 1;
  padding: var(--space-4) var(--space-3);
  overflow-y: auto;
  min-height: 0;
}

.recent-chats h3 {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
  padding: 0 var(--space-2);
}

.chat-item {
  padding: var(--space-2);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-1);
  cursor: pointer;
  transition: var(--transition);
}

.chat-item:hover {
  background-color: var(--bg-hover);
}

.chat-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}

.chat-preview {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  line-height: 1.3;
  margin-bottom: var(--space-1);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.chat-time {
  font-size: 0.6rem;
  color: var(--text-light);
  font-weight: 400;
}

/* Compact User Profile */
.user-profile {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1px;
  line-height: 1.3;
}

.user-status {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Chat Container - Fixed Layout */
.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  margin-left: 0;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Compact Chat Header */
.chat-header {
  height: var(--header-height);
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-5);
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.8rem;
}

.mobile-menu-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.chat-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Compact Welcome Container */
.welcome-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: var(--space-6) var(--space-4);
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
  overflow-y: auto;
  height: calc(100vh - var(--header-height) - 120px); /* Account for header and input area */
}

.welcome-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-md);
}

.welcome-icon i {
  font-size: 1.2rem;
  color: white;
}

.welcome-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

.welcome-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.4;
}

.welcome-description {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-6);
  line-height: 1.4;
}

/* Compact Feature Cards */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  width: 100%;
  max-width: 600px;
}

.feature-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
  color: white;
  font-size: 0.9rem;
}

.feature-card:nth-child(1) .feature-icon {
  background: linear-gradient(135deg, var(--blue-accent), #1d4ed8);
}

.feature-card:nth-child(2) .feature-icon {
  background: linear-gradient(135deg, var(--orange-accent), #d97706);
}

.feature-card:nth-child(3) .feature-icon {
  background: linear-gradient(135deg, var(--purple-accent), #7c3aed);
}

.feature-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.feature-description {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Compact Chat Messages */
.chat-messages {
  flex: 1;
  padding: var(--space-4);
  overflow-y: auto;
  background-color: var(--bg-primary);
  display: none;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 100%;
  margin: 0 auto;
  min-height: 0;
  height: calc(100vh - var(--header-height) - 120px); /* Fixed height calculation */
}

/* Show chat messages when active */
.chat-messages.active {
  display: flex;
}

.message {
  display: flex;
  gap: var(--space-3);
  max-width: 90%;
  animation: messageSlideIn 0.2s ease-out;
}

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message.assistant {
  align-self: flex-start;
}

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

.message-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  color: white;
  font-weight: 600;
}

.message.user .message-avatar {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
}

.message.assistant .message-avatar {
  background: linear-gradient(135deg, #6b7280, #4b5563);
}

.message-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-4);
  position: relative;
  flex: 1;
  box-shadow: var(--shadow-sm);
}

.message.user .message-content {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
  border-color: var(--primary-green);
  color: white;
}

.message-text {
  line-height: 1.4;
  margin-bottom: var(--space-2);
  font-size: 0.8rem;
}

.message.user .message-text {
  color: white;
}

.message-time {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  text-align: right;
}

.message.user .message-time {
  color: rgba(255, 255, 255, 0.8);
}

/* Compact Input Area */
/* Input Area - Fixed at Bottom */
.input-area {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: var(--space-4);
  display: flex;
  gap: var(--space-3);
  align-items: flex-end;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 10;
  min-height: 80px; /* Ensure consistent height */
}

/* Input Container - Better Layout */
.input-container {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
}

.message-input {
  width: 100%;
  min-height: 36px;
  max-height: 72px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  font-family: inherit;
  font-size: 0.8rem;
  line-height: 1.4;
  resize: none;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition);
  box-sizing: border-box;
}

.message-input:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.message-input::placeholder {
  color: var(--text-tertiary);
}

/* Character Count - Better Positioning */
.char-count {
  position: absolute;
  bottom: -16px;
  right: var(--space-3);
  font-size: 0.6rem;
  color: var(--text-tertiary);
  background-color: var(--bg-secondary);
  padding: 0 var(--space-1);
  z-index: 1;
}

/* Input Controls - Better Alignment */
.input-controls {
  display: flex;
  align-items: flex-end;
  gap: var(--space-1);
  padding-bottom: 2px; /* Align with input bottom */
}

.input-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.75rem;
}

.input-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-secondary);
}

.send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
  color: white;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  font-size: 0.75rem;
}

.send-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green));
  transform: scale(1.05);
}

.send-btn:disabled {
  background: var(--bg-active);
  color: var(--text-light);
  cursor: not-allowed;
  transform: none;
}

/* Compact Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  max-width: 150px;
  opacity: 0;
  transform: translateY(5px);
  transition: var(--transition);
  margin: var(--space-2) var(--space-4) var(--space-4);
  box-shadow: var(--shadow-sm);
  align-self: flex-start;
}

.typing-indicator.visible {
  opacity: 1;
  transform: translateY(0);
}

.typing-text {
  color: var(--text-secondary);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.typing-dots {
  display: flex;
  gap: 2px;
}

.typing-dot {
  width: 4px;
  height: 4px;
  background-color: var(--text-tertiary);
  border-radius: var(--radius-full);
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* Error Messages */
.message-content.error {
  background-color: #fef2f2;
  border-color: #f87171;
  color: #dc2626;
}

[data-theme="dark"] .message-content.error {
  background-color: #450a0a;
  border-color: #dc2626;
  color: #fca5a5;
}

/* Professional Footer */
.app-footer {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  border-top: 1px solid var(--border-light);
  padding: var(--space-8) var(--space-6) var(--space-6);
  margin-top: auto;
  display: none; /* Hidden by default, shown when chat is active */
}

.app-footer.visible {
  display: block;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.footer-logo i {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
  color: white;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

.footer-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.footer-tech h4,
.developer-info h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tech-tag {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.developer-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
}

.dev-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.dev-details h5 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-1) 0;
}

.dev-details p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0 0 var(--space-2) 0;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.8125rem;
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.portfolio-link:hover {
  color: var(--primary-green-dark);
  transform: translateX(2px);
}

.footer-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin: 0;
}

/* Responsive Design */
@media (min-width: 768px) {
  .sidebar {
    position: relative;
    transform: translateX(0);
  }
  
  .chat-container {
    margin-left: var(--sidebar-width);
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  /* Adjust heights for desktop with sidebar */
  .welcome-container,
  .chat-messages {
    height: calc(100vh - var(--header-height) - 100px);
  }
}

@media (max-width: 767px) {
  .sidebar {
    width: 75vw;
  }
  
  .feature-cards {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  
  .message {
    max-width: 95%;
  }
  
  .input-area {
    padding: var(--space-3);
  }
  
  /* Mobile specific heights */
  .welcome-container,
  .chat-messages {
    height: calc(100vh - var(--header-height) - 90px);
  }
}

/* Hide scrollbars but keep functionality */
.recent-chats::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar,
.welcome-container::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

.recent-chats,
.chat-messages,
.welcome-container {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 768px) {
  .sidebar-overlay {
    display: none;
  }
}

/* Utility Classes */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Performance Optimizations */
.message-text img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.message-text pre {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  overflow-x: auto;
  font-size: 0.8125rem;
}

.message-text code {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
  font-size: 0.8125rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Loading States */
.loading-skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius-md);
}

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

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --border-light: #000000;
    --border-medium: #000000;
    --text-tertiary: #000000;
  }
}

/* Focus Management */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-green);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: var(--radius-md);
  z-index: 9999;
}

.skip-link:focus {
  top: 6px;
}
