/* ============================================================================
   Business Cockpit – Basis-Styles
   ============================================================================ */

/* ── Helles, freundliches Farbschema ──────────────────────────────────────── */
:root {
  --brand-50:  #F8FAFC;
  --brand-100: #F1F5F9;
  --brand-200: #E2E8F0;
  --brand-300: #CBD5E1;
  --brand-400: #94A3B8;
  --brand-500: #64748B;
  --brand-600: #475569;
  --brand-700: #334155;
  --brand-800: #F1F5F9;
  --brand-900: #FFFFFF;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Sidebar Navigation */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
  transition: all 0.15s ease;
  cursor: pointer;
  text-decoration: none;
}
.nav-item:hover {
  background: #F1F5F9;
  color: #1E293B;
}
.nav-item.active {
  background: #E2E8F0;
  color: #0F172A;
  font-weight: 500;
}
.nav-item svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Dashboard Cards */
.stat-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.15s ease;
}
.stat-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Loading Spinner */
.spinner {
  border: 3px solid #e5e7eb;
  border-top-color: var(--brand-500);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: white;
  z-index: 50;
  animation: slideIn 0.3s ease;
}
.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }
.toast.info { background: var(--brand-600); }

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

/* Transition Klasse fuer Seitenwechsel */
.page-enter {
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Theme-Uebergang fuer sanften Farbwechsel */
.theme-transition,
.theme-transition * {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease !important;
}
