/**
 * App-Core.css v2.0 - Desktop-Styles für Focus Board
 * 
 * Kombiniert:
 * - style.css - Basis-Styles, Variablen, Layout
 * - choices-override.css - Dropdown-Fixes
 * - micro-interactions.css - UI-Animationen (reduziert)
 * - Vollständige Desktop-Tabellen-Styles
 * 
 * NUR DESKTOP-STYLES - Mobile-Styles sind in app-mobile.css
 */

/* ======================================== */
/* ========== CSS Custom Properties ======= */
/* ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Moderne Farbpalette */
  --primary: #6366f1;
  --primary-light: #a5b4fc;
  --primary-dark: #4f46e5;
  
  --success: #10b981;
  --success-light: #a7f3d0;
  --success-dark: #059669;
  
  --danger: #ef4444;
  --danger-light: #fca5a5;
  --danger-dark: #dc2626;
  
  --warning: #f59e0b;
  --warning-light: #fcd34d;
  
  /* Neutrale Farben */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Semantic Colors */
  --background: var(--gray-50);
  --surface: #ffffff;
  --surface-secondary: var(--gray-100);
  --border: var(--gray-200);
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-500);
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.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 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
}

/* ======================================== */
/* ========== Base Styles ================= */
/* ======================================== */

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--background);
  font-weight: 400;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-6) 0;
  line-height: var(--leading-tight);
}

h1 { font-size: var(--text-3xl); font-weight: 700; }
h2 { font-size: var(--text-2xl); font-weight: 600; }
h3 { font-size: var(--text-xl); font-weight: 600; }

p {
  margin: 0 0 var(--space-4) 0;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ======================================== */
/* ========== Layout & Cards ============== */
/* ======================================== */

.dashboard-content {
  background: var(--surface);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 480px;
  margin: var(--space-12) auto;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition-fast);
  animation: slideIn 0.3s ease-out;
}

.dashboard-content.table-container {
  max-width: 900px;
}

.dashboard-content:hover {
  box-shadow: var(--shadow-lg);
}

.info-block {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  margin: var(--space-6) 0;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: var(--space-3);
}

.info-block span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: var(--text-sm);
}

.info-block strong {
  font-weight: 700;
  font-size: var(--text-lg);
}

.info-block hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: var(--space-2) 0;
}

/* ======================================== */
/* ========== Navigation ================== */
/* ======================================== */

.main-nav {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  padding: var(--space-4) var(--space-6);
  gap: var(--space-2);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.95);
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* ======================================== */
/* ========== Buttons & Actions =========== */
/* ======================================== */

button, .user-btn {
  background: var(--primary);
  border: none;
  color: white;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: var(--space-3) var(--space-6);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-4);
  position: relative;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0.01em;
  min-height: 44px;
  min-width: 44px;
}

button:hover, .user-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

button:active, .user-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

button:focus,
.user-btn:focus,
.icon-btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.user-btn.danger { background: var(--danger); }
.user-btn.danger:hover { background: var(--danger-dark); }
.user-btn_red { background: var(--danger); color: white; }
.user-btn_red:hover { background: var(--danger-dark); }
.user-btn.success { background: var(--success); }
.user-btn.success:hover { background: var(--success-dark); }

.user-btn.secondary {
  background: var(--gray-100);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.user-btn.secondary:hover {
  background: var(--gray-200);
  border-color: var(--gray-300);
}

/* Icon Buttons */
.icon-btn {
  position: relative;
  transition: all var(--transition-fast);
  border-radius: 50%;
  background: transparent;
  min-width: 44px;
  min-height: 44px;
  padding: var(--space-2);
  margin: 0;
}

.icon-btn:hover {
  background: var(--gray-100);
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

.mobile-action-btn {
  position: relative;
  transition: all var(--transition-fast);
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  margin: var(--space-1);
}

.mobile-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ======================================== */
/* ========== Forms & Inputs ============== */
/* ======================================== */

.dashboard-content select,
.dashboard-content input[type="text"],
.dashboard-content input[type="number"],
.dashboard-content input[type="date"],
.dashboard-content input[type="email"],
.dashboard-content input[type="password"],
input, select, textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: var(--text-base);
  font-family: var(--font-sans);
  box-sizing: border-box;
  margin-bottom: var(--space-4);
  transition: all var(--transition-fast);
  color: var(--text-primary);
  min-height: 44px;
}

/* Spezielle Styling für "Neues Konto" Option */
select option[value="__NEW_ACCOUNT__"] {
  background: #f8f9fa;
  color: #007bff;
  font-weight: bold;
  border-top: 1px solid #dee2e6;
}

select option[value="__NEW_ACCOUNT__"]:hover {
  background: #e9ecef;
}

.dashboard-content select:focus,
.dashboard-content input:focus,
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.dashboard-content label,
label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
}

.form-checkgroup {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-5);
  flex-wrap: wrap;
}

.form-checkgroup label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  min-height: 44px;
}

.form-checkgroup input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin: 0;
}

/* ======================================== */
/* ========== Tables & Content ============ */
/* ======================================== */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.money-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 14px;
  table-layout: fixed;
}

.money-table th {
  background: var(--surface-secondary);
  font-weight: 600;
  color: var(--text-primary);
  padding: 12px;
  text-align: left;
  border-bottom: 2px solid var(--border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.money-table th:first-child {
  border-top-left-radius: 8px;
}

.money-table th:last-child {
  border-top-right-radius: 8px;
}

.money-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  background: white;
  color: var(--text-secondary);
  transition: background-color var(--transition-fast);
}

.money-table tbody tr {
  transition: all var(--transition-fast);
  position: relative;
}

.money-table tbody tr:hover {
  background: var(--surface-secondary);
}

.money-table tbody tr:last-child td {
  border-bottom: none;
}

.money-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

.money-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

.money-table td.clicked {
  background: var(--success-light);
  color: var(--success-dark);
  text-decoration: line-through;
}

/* Spalten für volle Breite */
.date-cell {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: center;
  width: 12%;
}

.amount-cell {
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  text-align: right;
  white-space: nowrap;
  width: 15%;
}

.amount-value {
  font-size: 16px;
  display: inline-block;
}

.currency {
  margin-left: 4px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: normal;
}

.category-cell {
  vertical-align: top;
  width: 20%;
}

.category-main {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.category-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.2;
}

.description-cell {
  word-wrap: break-word;
  line-height: 1.4;
  width: 33%;
}

.fix-badge {
  display: inline-block;
  background: var(--warning);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 600;
  vertical-align: middle;
}

.account-cell {
  font-size: 14px;
  color: var(--text-secondary);
  word-wrap: break-word;
  width: 15%;
}

.tax-cell {
  text-align: center;
  width: 8%;
}

.file-cell {
  text-align: center;
  width: 8%;
}

.file-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.actions-cell {
  text-align: center;
  width: 10%;
}

/* Anpassung wenn Steuer-Spalte vorhanden ist */
.money-table.has-tax-column .description-cell {
  width: 25%;
}

.money-table.has-tax-column .account-cell {
  width: 12%;
}

/* Zukünftige Einträge */
.future-entry {
  opacity: 0.7;
  position: relative;
  font-style: italic;
}

.future-entry::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--warning);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.future-entry td {
  color: var(--text-muted) !important;
  font-style: italic;
  background: rgba(245, 158, 11, 0.05) !important;
}

.future-indicator {
  margin-left: 4px;
  opacity: 0.7;
  font-size: 10px;
}

/* Action Buttons */
.action-buttons {
  display: inline-block;
  white-space: nowrap;
  text-align: center;
}

.action-btn {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 30px;
  text-align: center;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  margin: 0 2px;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.action-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.action-btn.delete-btn:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

/* Desktop Table Display */
.hide-on-compact {
  display: table-cell;
}

.desktop-table { 
  display: table; 
}

.mobile-table { 
  display: none; 
}

/* ======================================== */
/* ========== Error/Success Messages ====== */
/* ======================================== */

.error-box, .success-box {
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  margin: var(--space-4) 0;
  font-weight: 500;
  position: relative;
  box-shadow: var(--shadow);
}

.error-box {
  background: var(--danger-light);
  color: var(--danger-dark);
  border: 1px solid var(--danger);
}

.success-box {
  background: var(--success-light);
  color: var(--success-dark);
  border: 1px solid var(--success);
}

/* ======================================== */
/* ========== Choices.js Overrides ======== */
/* ======================================== */

.choices {
  position: relative;
  z-index: 10;
}

.choices__inner {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-base);
  color: var(--text-primary);
  padding: var(--space-3) var(--space-4);
  transition: all var(--transition-fast);
  box-shadow: none;
  min-height: 44px;
  position: relative;
  z-index: 1;
}

.choices__inner:focus,
.choices.is-focused .choices__inner {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  outline: none;
}

.choices__list--dropdown {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  background: white !important;
  border: 1px solid var(--border) !important;
  border-top: none !important;
  border-radius: 0 0 var(--radius) var(--radius) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  z-index: 9999 !important;
  max-height: 200px !important;
  overflow-y: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  transform: none !important;
  margin-top: 0 !important;
  min-width: 100% !important;
}

.choices__list--dropdown.is-active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 9999 !important;
}

.choices__item--choice {
  background: white !important;
  color: var(--text-primary) !important;
  padding: var(--space-3) var(--space-4) !important;
  border-bottom: 1px solid var(--border) !important;
  transition: background-color var(--transition-fast) !important;
  cursor: pointer !important;
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  z-index: 1 !important;
}

.choices__item--choice:hover,
.choices__item--choice.is-highlighted {
  background: var(--surface-secondary) !important;
  color: var(--text-primary) !important;
}

.choices__item--choice:last-child {
  border-bottom: none !important;
  border-radius: 0 0 var(--radius) var(--radius) !important;
}

.choices__input {
  background: white !important;
  color: var(--text-primary) !important;
  border: none !important;
  padding: var(--space-2) var(--space-3) !important;
  font-size: var(--text-sm) !important;
  outline: none !important;
  position: relative !important;
  z-index: 1 !important;
}

.choices__placeholder {
  color: var(--text-muted) !important;
  opacity: 1 !important;
}

.choices.is-open {
  z-index: 9999 !important;
}

.js-konto.choices,
.js-konto-von.choices,
.js-konto-zu.choices {
  z-index: 20 !important;
}

.js-konto.choices.is-open,
.js-konto-von.choices.is-open,
.js-konto-zu.choices.is-open {
  z-index: 9999 !important;
}

.dashboard-content .choices__list--dropdown {
  z-index: 9999 !important;
}

/* ======================================== */
/* ========== Animations & Keyframes ====== */
/* ======================================== */

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

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

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

.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ======================================== */
/* ========== Settings & Accessibility ==== */
/* ======================================== */

.settings-button-group {
  display: flex;
  flex-direction: row;
  gap: var(--space-4);
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Desktop größere Bildschirme */
@media (min-width: 1024px) {
  .dashboard-content {
    padding: var(--space-10);
  }
  
  .dashboard-content.table-container {
    max-width: 900px; 
  }
  
  .money-table th,
  .money-table td {
    padding: var(--space-4) var(--space-6);
  }
  
  .settings-button-group {
    justify-content: flex-start;
  }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
  :root {
    --border: #000000;
    --text-secondary: #000000;
  }
  
  button, .user-btn {
    border: 2px solid;
  }
}

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

/* Analysis-spezifische Spaltenbreiten für bessere Platzverteilung */
.analysis-table .date-cell {
  width: 80px;
  min-width: 80px;
}

.analysis-table .amount-cell {
  width: 100px;
  min-width: 100px;
  text-align: right;
}

.analysis-table .category-cell {
  width: 20%;
  min-width: 150px;
}

.analysis-table .description-cell {
  width: auto;
  min-width: 200px;
}

.analysis-table .account-cell {
  width: 15%;
  min-width: 120px;
}

/* ======================================== */
/* ========== Journal Styles ============== */
/* ======================================== */

.nav-button.success {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.nav-button.success:hover {
  background: linear-gradient(135deg, #059669 0%, var(--success) 100%);
}

/* ======================================== */
/* ========== Journal System ============== */
/* ======================================== */

/* Journal nutzt das Standard-Layout der App - Container bereits in layout.php */

.journal-header {
  text-align: center;
  margin-bottom: var(--space-8);
  padding: var(--space-8);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.journal-header h1 {
  margin: 0 0 var(--space-2) 0;
  font-size: var(--text-3xl);
  font-weight: 700;
}

.journal-header p {
  margin: 0;
  font-size: var(--text-lg);
  opacity: 0.9;
}

.journal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.stat-card {
  background: var(--surface);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-number {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.journal-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  border-bottom: 2px solid var(--border);
}

.tab-btn {
  padding: var(--space-4) var(--space-6);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all var(--transition-fast);
  min-width: fit-content;
}

/* Mobile responsive tab buttons */
@media (max-width: 640px) {
  .tab-btn {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
  }
}

.tab-btn.active,
.tab-btn:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--surface-secondary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.journal-section {
  background: var(--surface);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  margin-bottom: var(--space-8);
  border: 1px solid var(--border);
}

.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.date-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: var(--surface-secondary);
  border-radius: var(--radius-lg);
}

.nav-btn {
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.current-date {
  text-align: center;
  font-weight: 600;
  color: var(--text-primary);
}

.current-date div:first-child {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
}

.current-date div:last-child {
  font-size: var(--text-lg);
  margin-top: var(--space-1);
}

.emotion-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.emotion-option {
  position: relative;
}

.emotion-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.emotion-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-4);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  background: var(--surface);
  min-height: 80px;
  justify-content: center;
}

.emotion-option input:checked + label {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}

.emotion-option label:hover {
  border-color: var(--primary-light);
  background: var(--surface-secondary);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.checkbox-item:hover {
  background: var(--surface-secondary);
  border-color: var(--primary-light);
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin: 0;
}

.checkbox-item label {
  margin: 0;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-secondary);
}

.week-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: var(--surface-secondary);
  border-radius: var(--radius-lg);
}

.current-week {
  text-align: center;
  font-weight: 600;
  color: var(--text-primary);
}

.current-week div:first-child {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
}

.current-week div:last-child {
  font-size: var(--text-lg);
  margin-top: var(--space-1);
}

.journal-form-actions {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.btn-journal-primary {
  flex: 1;
  padding: var(--space-4) var(--space-6);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow);
}

.btn-journal-primary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-journal-secondary {
  padding: var(--space-3) var(--space-5);
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-journal-secondary:hover {
  background: var(--surface-secondary);
  color: var(--text-primary);
}

/* ======================================== */
/* ========== Button System ============== */
/* ======================================== */

.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--gray-200);
  color: var(--text-primary);
  border-color: var(--gray-300);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--gray-300);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover:not(:disabled) {
  background: var(--primary);
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.success-message {
  background: var(--success-light);
  color: var(--success-dark);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  border: 1px solid var(--success);
  text-align: center;
  font-weight: 500;
}

.error-message {
  background: var(--danger-light);
  color: var(--danger-dark);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  border: 1px solid var(--danger);
  text-align: center;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  
  .journal-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
  
  .emotion-selector {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .checkbox-group {
    grid-template-columns: 1fr;
  }
  
  .date-navigation,
  .week-navigation {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
  
  .journal-form-actions {
    flex-direction: column;
  }
  
  .journal-tabs {
    flex-wrap: wrap;
  }
}

/* ======================================== */
/* ========== Fixkosten-Verwaltung ======== */
/* ======================================== */

/* Alte Fixkosten-Klassen entfernt - nicht mehr benötigt */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

/* ======================================== */
/* ========== Bulk Edit Checkboxes ======= */
/* ======================================== */

.transaction-checkbox {
    transform: scale(1.5);
    margin: 0.5rem;
    cursor: pointer;
}

.transaction-checkbox:hover {
    transform: scale(1.7);
    transition: transform 0.2s ease;
}

/* Select-all checkbox auch vergrößern */
#select-all {
    transform: scale(1.3);
    margin-right: 0.75rem;
    cursor: pointer;
}

#select-all:hover {
    transform: scale(1.5);
    transition: transform 0.2s ease;
}

/* ======================================== */
/* ========== Utility Classes ============= */
/* ======================================== */

/* Container */
.container {
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: var(--space-6) var(--space-6);
    width: 100%;
}

@media (max-width: 1024px) {
    .container {
        padding: var(--space-4) var(--space-4);
    }
}

@media (max-width: 768px) {
    .container {
        padding: var(--space-3) var(--space-3);
    }
}

/* Grid System */
.grid {
    display: grid;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }

/* Card Components */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid var(--border);
    margin-bottom: var(--space-6);
}

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

.card-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-body {
    padding: var(--space-6);
}

/* Stat Cards (Dashboard Statistiken) */
.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 140px;
    justify-content: center;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-3);
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-card .stat-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

/* Spacing Utilities */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }

.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.pl-5 { padding-left: var(--space-5); }

.space-y-1 > * + * { margin-top: var(--space-1); }
.space-y-2 > * + * { margin-top: var(--space-2); }
.space-y-3 > * + * { margin-top: var(--space-3); }

/* Typography */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }

.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }

/* Text Colors */
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-800 { color: #1e40af; }
.text-green-600 { color: var(--success); }
.text-green-700 { color: var(--success-dark); }
.text-green-800 { color: #065f46; }
.text-red-600 { color: var(--danger); }
.text-orange-600 { color: #ea580c; }
.text-yellow-800 { color: #854d0e; }

/* Background Colors */
.bg-blue-50 { background: #eff6ff; }
.bg-green-50 { background: #ecfdf5; }
.bg-yellow-50 { background: #fefce8; }
.bg-gray-50 { background: var(--gray-50); }
.bg-gray-100 { background: var(--gray-100); }

/* Border */
.rounded-lg { border-radius: var(--radius-lg); }
.border { border: 1px solid var(--border); }
.border-2 { border-width: 2px; }
.border-l-4 { border-left-width: 4px; }
.border-blue-200 { border-color: #bfdbfe; }
.border-blue-300 { border-color: #93c5fd; }
.border-blue-500 { border-color: #3b82f6; }
.border-green-500 { border-color: var(--success); }
.border-orange-300 { border-color: #fdba74; }
.border-red-300 { border-color: #fca5a5; }
.border-yellow-500 { border-color: #eab308; }
.border-dashed { border-style: dashed; }

/* Hover Effects */
.hover\:bg-gray-100:hover { background: var(--gray-100); }
.hover\:text-blue-800:hover { color: #1e40af; }
.hover\:text-green-900:hover { color: #14532d; }
.hover\:underline:hover { text-decoration: underline; }

.transition { transition: all var(--transition-base); }

/* Lists */
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }

/* Responsive Grid - Wirklich Kompakt */
.grid {
    width: 100%;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { 
        grid-template-columns: repeat(2, minmax(0, 1fr)); 
    }
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .md\:grid-cols-4 { 
        grid-template-columns: repeat(3, minmax(0, 1fr)); 
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { 
        grid-template-columns: repeat(3, minmax(0, 1fr)); 
    }
    .lg\:grid-cols-4 { 
        grid-template-columns: repeat(3, minmax(0, 1fr)); 
    }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
}

/* Width */
.w-full { width: 100%; }

/* Additional Background Colors */
.bg-purple-50 { background: #faf5ff; }
.bg-purple-600 { background: var(--primary); }
.bg-purple-700 { background: var(--primary-dark); }
.bg-red-50 { background: #fef2f2; }
.bg-red-600 { background: var(--danger); }
.bg-indigo-50 { background: #eef2ff; }
.bg-pink-50 { background: #fdf2f8; }
.bg-orange-50 { background: #fff7ed; }
.bg-orange-300 { background: #fdba74; }
.bg-red-300 { background: #fca5a5; }

/* Additional Text Colors */
.text-purple-600 { color: var(--primary); }
.text-purple-700 { color: var(--primary-dark); }
.text-purple-800 { color: #6b21a8; }
.text-red-600 { color: var(--danger); }
.text-red-800 { color: #991b1b; }
.text-indigo-600 { color: #4f46e5; }
.text-indigo-800 { color: #3730a3; }
.text-pink-600 { color: #db2777; }
.text-pink-800 { color: #9f1239; }

/* Additional Border Colors */
.border-purple-500 { border-color: var(--primary); }
.border-red-500 { border-color: var(--danger); }
.border-indigo-500 { border-color: #6366f1; }
.border-pink-500 { border-color: #ec4899; }

/* Form Control */
.form-control {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Journal Item Spacing */
.journal-item {
    padding: var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* Page Header */
.page-header {
    padding-bottom: var(--space-6);
    margin-bottom: var(--space-8);
    border-bottom: 2px solid var(--border);
}

.dashboard-header {
    padding-bottom: var(--space-6);
    margin-bottom: var(--space-8);
    border-bottom: 2px solid var(--border);
}

/* Better Spacing Between Sections */
.grid + .grid,
.card + .card,
section + section {
    margin-top: var(--space-6);
}

/* Goals/Items Grid */
.goals-grid,
.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-6);
    max-width: 1200px;
}


/* Goal Card */
.goal-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}

.goal-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.goal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-4);
}

.goal-card-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-2) 0;
}

.goal-status-badge {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    margin: var(--space-3) 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width 0.3s ease;
    border-radius: var(--radius);
}
/* ======================================== */
/* ========== Modal Styles ================ */
/* ======================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
}

/* ======================================== */
/* ========== KI / AI Widget Styles ======= */
/* ======================================== */

.ai-widget {
    background: var(--surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.ai-widget-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ai-widget-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.ai-result {
    display: none;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1px solid #c4b5fd;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    color: var(--gray-800);
    line-height: 1.6;
    font-size: 0.95rem;
}

.ai-result.is-visible {
    display: block;
}

.ai-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.9rem;
}

.ai-loading::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: ai-spin 0.7s linear infinite;
}

@keyframes ai-spin {
    to { transform: rotate(360deg); }
}

.ai-suggestion-card {
    background: var(--surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: box-shadow 0.2s;
}

.ai-suggestion-card:hover {
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
    border-color: var(--primary-light);
}

.ai-suggestion-card:last-child {
    margin-bottom: 0;
}

.ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.ai-btn:hover {
    opacity: 0.9;
}

.ai-btn:active {
    transform: scale(0.98);
}

.ai-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ai-textarea {
    width: 100%;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
    background: var(--surface);
    color: var(--gray-800);
}

.ai-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

