/*
 * ============================================================
 * DESIGN SYSTEM — Webdesign HS / L³C Dashboard
 * Extrahiert aus webdesign-hs-prod/ am 2026-03-30
 * Produktionsreif — direkt einbaubar in neue Website
 * ============================================================
 */

/* ============================================================
 * 1. GOOGLE FONTS IMPORT
 * ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');


/* ============================================================
 * 2. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
 * ============================================================ */
:root {
  /* --- Colors: Brand / Accent --- */
  --color-accent:        #3B3470;
  --color-accent-dark:   #2D2B55;
  --color-accent-light:  #EEEDF5;

  /* --- Colors: Status --- */
  --color-success:       #4C3D8F;
  --color-danger:        #7C3AED;
  --color-warning:       #6D5ACE;
  --color-info:          #5B4FA0;

  /* --- Colors: Surfaces / Backgrounds --- */
  --color-bg:            #F5F4F9;
  --color-surface:       #F5F4F9;
  --color-surface-1:     #FFFFFF;
  --color-surface-2:     #F9F8FC;
  --color-surface-3:     #F0EEF5;

  /* --- Colors: Text --- */
  --color-text:          #1A1A1A;
  --color-text-secondary: #374151;
  --color-text-muted:    #6B7280;
  --color-text-subtle:   #9CA3AF;
  --color-text-inverted: #FFFFFF;

  /* --- Colors: Borders --- */
  --color-border:        #F3F4F6;
  --color-border-md:     #E5E7EB;
  --color-border-sheet:  #E5E2DE;

  /* --- Typography --- */
  --font-sans:           'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs:        0.75rem;    /* 12px */
  --font-size-sm:        0.875rem;   /* 14px */
  --font-size-base:      0.875rem;   /* 14px (dashboard base) */
  --font-size-md:        1rem;       /* 16px */
  --font-size-lg:        1.125rem;   /* 18px */
  --font-size-xl:        1.25rem;    /* 20px */
  --font-size-2xl:       1.5rem;     /* 24px */
  --font-size-3xl:       1.875rem;   /* 30px */
  --font-weight-normal:  400;
  --font-weight-medium:  500;
  --font-weight-semibold: 600;
  --font-weight-bold:    700;
  --line-height-base:    1.5;
  --letter-spacing-tight: -0.025em;

  /* --- Border Radius --- */
  --radius-sm:           0.5rem;     /* 8px  — badges, tooltips */
  --radius-md:           0.75rem;    /* 12px — buttons, inputs, nav icons */
  --radius-lg:           1rem;       /* 16px — cards, modals */
  --radius-xl:           1.5rem;     /* 24px — bottom sheets */
  --radius-full:         9999px;     /* avatars, pills */

  /* --- Shadows --- */
  --shadow-soft:         0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-card:         0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-elevated:     0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-toast:        0 10px 24px rgba(0, 0, 0, 0.12);

  /* --- Spacing --- */
  --spacing-1:  0.25rem;   /* 4px */
  --spacing-2:  0.5rem;    /* 8px */
  --spacing-3:  0.75rem;   /* 12px */
  --spacing-4:  1rem;      /* 16px */
  --spacing-5:  1.25rem;   /* 20px */
  --spacing-6:  1.5rem;    /* 24px */
  --spacing-8:  2rem;      /* 32px */
  --spacing-10: 2.5rem;    /* 40px */
  --spacing-12: 3rem;      /* 48px */

  /* --- Transitions --- */
  --transition-fast:     all 0.15s ease;
  --transition-default:  all 0.2s ease;
  --transition-slow:     all 0.3s ease;
  --transition-spring:   all 0.35s cubic-bezier(0.32, 0.72, 0, 1);

  /* --- Layout --- */
  --sidebar-width:       68px;
  --nav-height-mobile:   56px;
  --content-max-width:   1200px;
}


/* ============================================================
 * 3. BASE / RESET STYLES
 * ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-dark);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}


/* ============================================================
 * 4. TYPOGRAPHY
 * ============================================================ */
h1 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-tight);
  line-height: 1.2;
  color: var(--color-text);
}

h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-tight);
  line-height: 1.25;
  color: var(--color-text);
}

h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  color: var(--color-text);
}

h4 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
  color: var(--color-text);
}

p {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  color: var(--color-text-secondary);
}

.text-xs     { font-size: var(--font-size-xs); }
.text-sm     { font-size: var(--font-size-sm); }
.text-base   { font-size: var(--font-size-base); }
.text-md     { font-size: var(--font-size-md); }
.text-lg     { font-size: var(--font-size-lg); }
.text-xl     { font-size: var(--font-size-xl); }
.text-2xl    { font-size: var(--font-size-2xl); }
.text-3xl    { font-size: var(--font-size-3xl); }

.font-normal   { font-weight: var(--font-weight-normal); }
.font-medium   { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold     { font-weight: var(--font-weight-bold); }

.text-primary   { color: var(--color-text); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted     { color: var(--color-text-muted); }
.text-subtle    { color: var(--color-text-subtle); }
.text-accent    { color: var(--color-accent); }
.text-inverted  { color: var(--color-text-inverted); }

.tabular-nums { font-variant-numeric: tabular-nums; }
.tracking-tight { letter-spacing: var(--letter-spacing-tight); }


/* ============================================================
 * 5. BUTTONS
 * ============================================================ */

/* Base button reset */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
  padding: 0.625rem var(--spacing-4);   /* py-2.5 px-4 */
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition-default);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.btn:active {
  transform: scale(0.95);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary */
.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-text-inverted);
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  box-shadow: var(--shadow-card);
  color: var(--color-text-inverted);
}

/* Secondary */
.btn-secondary {
  background-color: #F3F4F6;
  color: var(--color-text-secondary);
}

.btn-secondary:hover {
  background-color: #E5E7EB;
  color: var(--color-text);
}

/* Ghost */
.btn-ghost {
  background-color: transparent;
  color: var(--color-text-muted);
  padding: var(--spacing-2) var(--spacing-3);
}

.btn-ghost:hover {
  background-color: #F3F4F6;
  color: var(--color-text-secondary);
}

/* Danger */
.btn-danger {
  background-color: rgba(124, 58, 237, 0.1);
  color: #7C3AED;
}

.btn-danger:hover {
  background-color: rgba(124, 58, 237, 0.2);
}

/* Icon Button */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text-muted);
  transition: var(--transition-default);
  border: none;
  cursor: pointer;
}

.btn-icon:hover {
  background-color: #F3F4F6;
  color: var(--color-text-secondary);
}

/* Button sizes */
.btn-sm {
  padding: 0.375rem var(--spacing-3);
  font-size: var(--font-size-xs);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.875rem var(--spacing-6);
  font-size: var(--font-size-md);
}

.btn-full {
  width: 100%;
}


/* ============================================================
 * 6. CARDS
 * ============================================================ */

.card {
  background-color: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-4) var(--spacing-5);
  transition: var(--transition-default);
}

.card-elevated {
  background-color: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-4) var(--spacing-5);
  box-shadow: var(--shadow-card);
  transition: var(--transition-default);
}

.card-interactive {
  background-color: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-4) var(--spacing-5);
  transition: var(--transition-default);
  cursor: pointer;
}

.card-interactive:hover {
  border-color: var(--color-border-md);
  box-shadow: var(--shadow-card);
}

.card-interactive:active {
  transform: scale(0.98);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-4);
  padding-bottom: var(--spacing-3);
  border-bottom: 1px solid var(--color-border);
}

.card-header-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.card-body {
  flex: 1;
}

.card-footer {
  margin-top: var(--spacing-4);
  padding-top: var(--spacing-3);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

/* Accent Card (colored top border) */
.card-accent {
  background-color: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-4) var(--spacing-5);
  border-top: 3px solid var(--color-accent);
}

/* Tinted card */
.card-tinted {
  background-color: var(--color-accent-light);
  border: 1px solid rgba(59, 52, 112, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--spacing-4) var(--spacing-5);
}


/* ============================================================
 * 7. INPUTS & FORM ELEMENTS
 * ============================================================ */

.input-field {
  display: block;
  width: 100%;
  background-color: var(--color-surface-1);
  border: 1px solid var(--color-border-md);
  border-radius: var(--radius-md);
  padding: 0.625rem 0.875rem;   /* py-2.5 px-3.5 */
  font-size: var(--font-size-sm);
  font-family: var(--font-sans);
  color: #111827;
  transition: var(--transition-default);
  min-width: 0;
  max-width: 100%;
}

.input-field::placeholder {
  color: var(--color-text-subtle);
}

.input-field:focus {
  outline: none;
  border-color: rgba(59, 52, 112, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 52, 112, 0.08);
}

textarea.input-field {
  resize: vertical;
  min-height: 80px;
}

select.input-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  margin-bottom: 0.375rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-error {
  background-color: rgba(124, 58, 237, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.15);
  color: #7C3AED;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
}


/* ============================================================
 * 8. BADGES / TAGS
 * ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  white-space: nowrap;
}

.badge-primary,
.badge-green,
.badge-purple {
  background-color: rgba(59, 52, 112, 0.1);
  color: var(--color-accent);
}

.badge-red,
.badge-danger {
  background-color: #EDE9FE;
  color: #6D28D9;
}

.badge-yellow,
.badge-warning {
  background-color: #F3E8FF;
  color: #7E22CE;
}

.badge-blue,
.badge-info {
  background-color: #EEF2FF;
  color: #4338CA;
}

.badge-neutral,
.badge-gray {
  background-color: #F3F4F6;
  color: var(--color-text-muted);
}

.badge-success {
  background-color: rgba(76, 61, 143, 0.1);
  color: var(--color-success);
}

/* Status-specific badges (Projekte) */
.badge-status-active    { background-color: #F5F3FF; color: #7C3AED; }
.badge-status-planning  { background-color: #EEF2FF; color: #4338CA; }
.badge-status-paused    { background-color: #FAF5FF; color: #9333EA; }
.badge-status-completed { background-color: #F3F4F6; color: #6B7280; }

/* Priority badges */
.badge-priority-main_business { background-color: #F3E8FF; color: #7E22CE; }
.badge-priority-client_project { background-color: #EEF2FF; color: #4338CA; }
.badge-priority-internal { background-color: #F3F4F6; color: #6B7280; }

/* Counter Badge (notification dot) */
.counter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  height: 1rem;
  border-radius: var(--radius-full);
  background-color: #8B5CF6;
  color: white;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  padding: 0 3px;
}

.counter-badge-accent {
  background-color: var(--color-accent);
}


/* ============================================================
 * 9. NAVIGATION
 * ============================================================ */

/* Desktop Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--sidebar-width);
  background-color: var(--color-surface-1);
  border-right: 1px solid var(--color-border);
  height: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--color-accent);
  border-radius: var(--radius-md);
  color: white;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  text-decoration: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-1);
  flex: 1;
  padding: var(--spacing-2) 0;
  width: 100%;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  color: var(--color-text-subtle);
  transition: var(--transition-default);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-item:hover {
  background-color: #F3F4F6;
  color: var(--color-text-secondary);
}

.nav-item.active,
.nav-item[aria-current="page"] {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
}

/* Mobile Bottom Navigation */
.mobile-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: var(--nav-height-mobile);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--color-border);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  padding: var(--spacing-2);
  color: var(--color-text-subtle);
  text-decoration: none;
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  transition: var(--transition-fast);
  border: none;
  background: none;
  cursor: pointer;
}

.mobile-nav-item.active,
.mobile-nav-item[aria-current="page"] {
  color: var(--color-accent);
}

/* Top Navigation / Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-3) var(--spacing-4);
  background-color: var(--color-surface-1);
  border-bottom: 1px solid var(--color-border);
  min-height: 3.5rem;
}

.topbar-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}


/* ============================================================
 * 10. GRID SYSTEM
 * ============================================================ */

.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-4);
}

.grid {
  display: grid;
  gap: var(--spacing-4);
}

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

.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid-auto-md { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-auto-lg { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }

.gap-1 { gap: var(--spacing-1); }
.gap-2 { gap: var(--spacing-2); }
.gap-3 { gap: var(--spacing-3); }
.gap-4 { gap: var(--spacing-4); }
.gap-5 { gap: var(--spacing-5); }
.gap-6 { gap: var(--spacing-6); }

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


/* ============================================================
 * 11. UTILITY CLASSES
 * ============================================================ */

/* Flex Utilities */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.flex-1        { flex: 1; }
.flex-wrap     { flex-wrap: wrap; }
.gap-1 { gap: var(--spacing-1); }
.gap-2 { gap: var(--spacing-2); }
.gap-3 { gap: var(--spacing-3); }
.gap-4 { gap: var(--spacing-4); }

/* Spacing */
.p-0  { padding: 0; }
.p-2  { padding: var(--spacing-2); }
.p-3  { padding: var(--spacing-3); }
.p-4  { padding: var(--spacing-4); }
.p-5  { padding: var(--spacing-5); }
.p-6  { padding: var(--spacing-6); }
.mt-1 { margin-top: var(--spacing-1); }
.mt-2 { margin-top: var(--spacing-2); }
.mt-3 { margin-top: var(--spacing-3); }
.mt-4 { margin-top: var(--spacing-4); }
.mb-1 { margin-bottom: var(--spacing-1); }
.mb-2 { margin-bottom: var(--spacing-2); }
.mb-3 { margin-bottom: var(--spacing-3); }
.mb-4 { margin-bottom: var(--spacing-4); }

/* Width / Height */
.w-full  { width: 100%; }
.h-full  { height: 100%; }
.min-w-0 { min-width: 0; }

/* Overflow */
.overflow-hidden  { overflow: hidden; }
.overflow-auto    { overflow: auto; }
.truncate         { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Border */
.border           { border: 1px solid var(--color-border); }
.border-md        { border: 1px solid var(--color-border-md); }
.border-t         { border-top: 1px solid var(--color-border); }
.border-b         { border-bottom: 1px solid var(--color-border); }
.rounded-sm       { border-radius: var(--radius-sm); }
.rounded-md       { border-radius: var(--radius-md); }
.rounded-lg       { border-radius: var(--radius-lg); }
.rounded-xl       { border-radius: var(--radius-xl); }
.rounded-full     { border-radius: var(--radius-full); }

/* Backgrounds */
.bg-white         { background-color: var(--color-surface-1); }
.bg-surface       { background-color: var(--color-surface); }
.bg-surface-2     { background-color: var(--color-surface-2); }
.bg-accent        { background-color: var(--color-accent); }
.bg-accent-light  { background-color: var(--color-accent-light); }
.bg-gray-100      { background-color: #F3F4F6; }
.bg-gray-200      { background-color: #E5E7EB; }

/* Shadow */
.shadow-soft     { box-shadow: var(--shadow-soft); }
.shadow-card     { box-shadow: var(--shadow-card); }
.shadow-elevated { box-shadow: var(--shadow-elevated); }

/* Cursor */
.cursor-pointer  { cursor: pointer; }
.cursor-default  { cursor: default; }

/* Visibility */
.hidden          { display: none; }
.invisible       { visibility: hidden; }

/* Transition */
.transition      { transition: var(--transition-default); }
.transition-fast { transition: var(--transition-fast); }

/* Avatar */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--spacing-4) 0;
}

/* Scrollbar hide */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}


/* ============================================================
 * 12. SKELETON LOADING
 * ============================================================ */

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.skeleton {
  background-color: #E5E7EB;
  border-radius: var(--radius-md);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.skeleton-text {
  background-color: #E5E7EB;
  border-radius: var(--radius-sm);
  height: 1rem;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.skeleton-circle {
  background-color: #E5E7EB;
  border-radius: var(--radius-full);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.skeleton-card {
  background-color: #E5E7EB;
  border-radius: var(--radius-lg);
  height: 120px;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}


/* ============================================================
 * 13. BOTTOM SHEET / MODAL
 * ============================================================ */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 70;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 71;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background-color: var(--color-surface-1);
  border-top: 1px solid var(--color-border-sheet);
  max-height: 92vh;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-sheet-handle {
  width: 2.5rem;
  height: 0.25rem;
  background-color: #D1D5DB;
  border-radius: var(--radius-full);
  margin: 0.75rem auto;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 71;
  background-color: var(--color-surface-1);
  border-radius: var(--radius-lg);
  padding: var(--spacing-6);
  box-shadow: var(--shadow-elevated);
  max-width: 90vw;
  width: 400px;
  max-height: 90vh;
  overflow-y: auto;
}


/* ============================================================
 * 14. TOAST NOTIFICATIONS
 * ============================================================ */

@keyframes slide-in-right {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

@keyframes slide-out-right {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  padding: 0.75rem var(--spacing-4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-toast);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  animation: slide-in-right 0.3s ease-out;
  min-width: 240px;
  max-width: 360px;
}

.toast-success {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  border: 1px solid rgba(59, 52, 112, 0.15);
}

.toast-error {
  background-color: #F5F3FF;
  color: #6D28D9;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.toast-info {
  background-color: #EEF2FF;
  color: #4338CA;
  border: 1px solid rgba(67, 56, 202, 0.2);
}


/* ============================================================
 * 15. ANIMATIONS
 * ============================================================ */

@keyframes fade-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1);    }
}

@keyframes slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0);    }
}

@keyframes stagger-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

@keyframes count-up {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0);   }
}

.animate-fade-in    { animation: fade-in 0.2s ease-out; }
.animate-slide-up   { animation: slide-up 0.35s cubic-bezier(0.32, 0.72, 0, 1); }
.animate-slide-in   { animation: slide-in-right 0.3s ease-out; }
.animate-count-up   { animation: count-up 0.8s ease-out; }

.stagger-item {
  opacity: 0;
  animation: stagger-fade-in 0.4s ease-out forwards;
}

.stagger-item:nth-child(1)  { animation-delay: 0.05s; }
.stagger-item:nth-child(2)  { animation-delay: 0.10s; }
.stagger-item:nth-child(3)  { animation-delay: 0.15s; }
.stagger-item:nth-child(4)  { animation-delay: 0.20s; }
.stagger-item:nth-child(5)  { animation-delay: 0.25s; }
.stagger-item:nth-child(6)  { animation-delay: 0.30s; }
.stagger-item:nth-child(7)  { animation-delay: 0.35s; }
.stagger-item:nth-child(8)  { animation-delay: 0.40s; }


/* ============================================================
 * 16. RESPONSIVE OVERRIDES
 * ============================================================ */

@media (max-width: 767px) {
  :root {
    --font-size-base: 0.8125rem; /* 13px on mobile */
  }

  h1 { font-size: var(--font-size-xl); }
  h2 { font-size: var(--font-size-lg); }
  h3 { font-size: var(--font-size-sm); }

  .card,
  .card-elevated {
    padding: var(--spacing-3);
    border-radius: var(--radius-md);
  }

  .sidebar { display: none; }

  .container {
    padding: 0 var(--spacing-3);
  }
}

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

  .sidebar { display: flex; }

  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-lg); }
}
