/* Professional Finance Dashboard - Complete CSS */

/* CSS Custom Properties - Design System */
:root {
  /* Background Colors */
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  
  /* Primary Colors */
  --primary: 222.2 47.4% 11.2%;
  --primary-foreground: 210 40% 98%;
  
  /* Secondary Colors */
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  
  /* Muted Colors */
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  
  /* Accent Colors */
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  
  /* Border and Input */
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 222.2 84% 4.9%;
  
  /* Sidebar Colors */
  --sidebar-background: 0 0% 98%;
  --sidebar-foreground: 240 5.3% 26.1%;
  --sidebar-primary: 240 5.9% 10%;
  --sidebar-accent: 240 4.8% 95.9%;
  --sidebar-border: 220 13% 91%;
  
  /* Custom Finance Colors */
  --teal-500: 174 72% 42%;
  --teal-600: 174 78% 35%;
  --navy-500: 217 91% 60%;
  --navy-600: 217 91% 52%;
  --coral-500: 25 95% 53%;
  --coral-600: 25 95% 45%;
  
  /* Destructive */
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  
  /* Success */
  --success: 142 76% 36%;
  --success-foreground: 355.7 100% 97.3%;
  
  /* Radius */
  --radius: 0.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 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);
  
  /* Transitions */
  --transition-fast: all 0.15s ease;
  --transition-normal: all 0.2s ease;
  --transition-slow: all 0.3s ease;
}

/* Dark Mode */
.dark {
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;
  --card: 222.2 84% 4.9%;
  --card-foreground: 210 40% 98%;
  --primary: 210 40% 98%;
  --primary-foreground: 222.2 47.4% 11.2%;
  --secondary: 217.2 32.6% 17.5%;
  --secondary-foreground: 210 40% 98%;
  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 217.2 32.6% 17.5%;
  --accent-foreground: 210 40% 98%;
  --border: 217.2 32.6% 17.5%;
  --input: 217.2 32.6% 17.5%;
  --sidebar-background: 240 5.9% 10%;
  --sidebar-foreground: 240 4.8% 95.9%;
  --sidebar-accent: 240 3.7% 15.9%;
  --sidebar-border: 240 3.7% 15.9%;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "cv03", "cv04", "cv11";
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  font-size: 0.875rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(var(--secondary)) 100%);
}

/* Sidebar */
.sidebar {
  width: 280px;
  background-color: hsl(var(--sidebar-background));
  border-right: 1px solid hsl(var(--sidebar-border));
  box-shadow: var(--shadow-lg);
  position: fixed;
  height: 100vh;
  z-index: 50;
  transition: var(--transition-normal);
}

.sidebar-content {
  padding: 2rem 0;
  height: 100%;
  overflow-y: auto;
}

.sidebar-header {
  padding: 0 1.5rem 2rem;
  border-bottom: 1px solid hsl(var(--sidebar-border));
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--sidebar-primary));
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-title i {
  color: hsl(var(--teal-500));
}

.sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  padding: 0.5rem;
  border-radius: calc(var(--radius) - 4px);
  transition: var(--transition-fast);
}

.sidebar-close-btn:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 1rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: hsl(var(--sidebar-foreground));
  border-radius: calc(var(--radius) - 2px);
  transition: var(--transition-fast);
  font-weight: 500;
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
}

.nav-item:hover {
  background-color: hsl(var(--sidebar-accent));
  color: hsl(var(--sidebar-primary));
  transform: translateX(2px);
}

.nav-item.active {
  background: linear-gradient(135deg, hsl(var(--teal-500) / 0.1), hsl(var(--teal-600) / 0.05));
  color: hsl(var(--teal-600));
  border-left: 3px solid hsl(var(--teal-500));
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, hsl(var(--teal-500)), hsl(var(--teal-600)));
}

.nav-item i {
  font-size: 1.1rem;
  width: 20px;
  display: flex;
  justify-content: center;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 280px;
  transition: var(--transition-normal);
}

/* Header */
.header {
  height: 72px;
  background-color: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background-color: hsl(var(--card) / 0.8);
}

.header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  background: linear-gradient(135deg, hsl(var(--teal-500)), hsl(var(--navy-500)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  font-weight: 500;
}

.avatar {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, hsl(var(--teal-500)), hsl(var(--teal-600)));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow);
  transition: var(--transition-fast);
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Page Content */
.page-content {
  flex: 1;
  background: radial-gradient(ellipse at top, hsl(var(--accent) / 0.3), transparent),
              radial-gradient(ellipse at bottom, hsl(var(--teal-500) / 0.05), transparent);
  min-height: calc(100vh - 72px);
}

.page {
  display: none;
  padding: 2rem;
  animation: fadeIn 0.3s ease-in-out;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.page-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  background: linear-gradient(135deg, hsl(var(--foreground)), hsl(var(--muted-foreground)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cards */
.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--border)), transparent);
  opacity: 0.5;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: hsl(var(--teal-500) / 0.2);
}

.card-header {
  padding: 1.5rem 1.5rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.card-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-content {
  padding: 1.5rem;
}

/* Summary Cards */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.summary-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--card)), hsl(var(--accent) / 0.5));
}

.summary-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 60%, hsl(var(--teal-500) / 0.03));
  pointer-events: none;
}

.balance-card {
  border-top: 3px solid hsl(var(--teal-500));
}

.budget-card {
  border-top: 3px solid hsl(var(--navy-500));
}

.savings-card {
  border-top: 3px solid hsl(var(--coral-500));
}

.summary-card .value {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--card-foreground));
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.summary-card .change {
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.change.positive {
  color: hsl(var(--success));
}

.change.negative {
  color: hsl(var(--destructive));
}

.change.neutral {
  color: hsl(var(--muted-foreground));
}

.trend-icon {
  width: 16px;
  height: 16px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 2px;
}

.trend-icon.up {
  color: hsl(var(--success));
  background-color: hsl(var(--success) / 0.1);
}

.trend-icon.down {
  color: hsl(var(--destructive));
  background-color: hsl(var(--destructive) / 0.1);
}

/* Charts */
.charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.chart-card .card-content {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.chart-card canvas {
  max-width: 100%;
  height: auto !important;
}

.subtitle {
  font-size: 0.75rem;
  font-weight: 400;
  color: hsl(var(--muted-foreground));
  margin-left: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.875rem;
  line-height: 1;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, hsl(var(--teal-500)), hsl(var(--teal-600)));
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, hsl(var(--teal-600)), hsl(var(--teal-500)));
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-color: hsl(var(--border));
}

.btn-secondary:hover {
  background-color: hsl(var(--accent));
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: hsl(var(--muted-foreground));
  border: none;
  padding: 0.5rem;
}

.btn-ghost:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid hsl(var(--border));
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  background: linear-gradient(135deg, hsl(var(--card)), hsl(var(--accent) / 0.3));
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--card-foreground));
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  padding: 0.5rem;
  border-radius: calc(var(--radius) - 4px);
  transition: var(--transition-fast);
}

.close-btn:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.modal-body {
  padding: 1.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: hsl(var(--card-foreground));
  font-size: 0.875rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  transition: var(--transition-fast);
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: hsl(var(--teal-500));
  box-shadow: 0 0 0 3px hsl(var(--teal-500) / 0.1);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

/* Transactions */
.transactions-list {
  max-height: 600px;
  overflow-y: auto;
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  transition: var(--transition-fast);
}

.transaction-item:last-child {
  border-bottom: none;
}

.transaction-item:hover {
  background-color: hsl(var(--accent) / 0.5);
}

.transaction-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.transaction-description {
  font-weight: 500;
  color: hsl(var(--card-foreground));
}

.transaction-category {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.transaction-date {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.transaction-amount {
  font-weight: 600;
  font-size: 1rem;
  text-align: right;
}

.transaction-amount.income {
  color: hsl(var(--success));
}

.transaction-amount.expense {
  color: hsl(var(--destructive));
}

/* Budget */
.budget-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.budget-category {
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border) / 0.3);
  transition: var(--transition-fast);
}

.budget-category:last-child {
  border-bottom: none;
}

.budget-category:hover {
  background-color: hsl(var(--accent) / 0.3);
}

.budget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.budget-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.budget-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.budget-name span {
  font-weight: 500;
  color: hsl(var(--card-foreground));
}

.budget-amounts {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.budget-edit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.budget-edit input {
  width: 120px;
  padding: 0.375rem 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 4px);
  font-size: 0.75rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: hsl(var(--muted) / 0.3);
  border-radius: 4px;
  overflow: hidden;
  margin: 0.75rem 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, hsl(var(--teal-500)), hsl(var(--teal-600)));
  transition: width 0.5s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.progress-fill.over-budget {
  background: linear-gradient(90deg, hsl(var(--destructive)), hsl(var(--coral-600)));
}

.budget-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.over-budget {
  color: hsl(var(--destructive));
  font-weight: 600;
}

/* Reports */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 1.5rem;
}

/* Utility Classes */
.text-teal {
  color: hsl(var(--teal-500));
}

.text-orange {
  color: hsl(var(--coral-500));
}

.text-green {
  color: hsl(var(--success));
}

.text-red {
  color: hsl(var(--destructive));
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: hsl(var(--foreground));
  cursor: pointer;
  padding: 0.5rem;
  border-radius: calc(var(--radius) - 4px);
  transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
  background-color: hsl(var(--accent));
}

/* Responsive Design */
@media (max-width: 1024px) {
  .charts-row {
    grid-template-columns: 1fr;
  }
  
  .reports-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    transform: translateX(-100%);
    position: fixed;
  }
  
  .sidebar.show {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .header {
    padding: 0 1rem;
  }
  
  .header h1 {
    font-size: 1.25rem;
  }
  
  .page {
    padding: 1rem;
  }
  
  .summary-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .budget-summary {
    grid-template-columns: 1fr;
  }
  
  .page-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .page-header h2 {
    font-size: 1.5rem;
  }
  
  .modal-content {
    width: 95%;
    margin: 1rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .sidebar-close-btn {
    display: block;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 1rem;
  }
  
  .nav-item {
    white-space: nowrap;
    min-width: fit-content;
  }
  
  .user-info span {
    display: none;
  }
  
  .transaction-item {
    padding: 0.75rem 1rem;
  }
  
  .transaction-info {
    min-width: 0;
  }
  
  .transaction-description {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0;
  }
  
  .page {
    padding: 0.75rem;
  }
  
  .card {
    border-radius: calc(var(--radius) - 2px);
  }
  
  .card-content {
    padding: 1rem;
  }
  
  .summary-card .value {
    font-size: 1.5rem;
  }
  
  .modal-header,
  .modal-body {
    padding: 1rem;
  }
  
  .charts-row,
  .reports-grid {
    gap: 1rem;
  }
}

/* Print Styles */
@media print {
  .sidebar,
  .header,
  .btn,
  .mobile-menu-btn {
    display: none !important;
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .page {
    display: block !important;
    padding: 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .card {
    border-width: 2px;
  }
  
  .btn-primary {
    background: hsl(var(--foreground));
    color: hsl(var(--background));
  }
  
  .nav-item.active {
    border-left-width: 5px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Styles for Accessibility */
.btn:focus-visible,
.nav-item:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid hsl(var(--teal-500));
  outline-offset: 2px;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid hsl(var(--muted));
  border-top-color: hsl(var(--teal-500));
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}