/* Workshop Planner Design System */
/* Based on Figma extraction - Inter font, Tailwind-inspired tokens */

/* ========================================
   CSS Variables / Design Tokens
   ======================================== */

:root {
  /* Color System */
  --color-white: var(--bg-surface);
  --color-black: #000000; /* intentional true black */

  /* Gray Scale (mapped to platform warm grays) */
  --color-gray-50: var(--gray-50);
  --color-gray-100: var(--gray-100);
  --color-gray-200: var(--gray-200);
  --color-gray-300: var(--gray-300);
  --color-gray-400: var(--gray-400);
  --color-gray-500: var(--gray-500);
  --color-gray-600: var(--gray-600);
  --color-gray-700: var(--gray-700);
  --color-gray-800: var(--gray-800);
  --color-gray-900: var(--gray-900);

  /* Slate Scale (mapped to platform warm grays - closest equivalents) */
  --color-slate-50: var(--gray-50);
  --color-slate-100: var(--gray-100);
  --color-slate-200: var(--gray-200);
  --color-slate-300: var(--gray-300);
  --color-slate-400: var(--gray-400);
  --color-slate-500: var(--gray-500);
  --color-slate-600: var(--gray-600);
  --color-slate-700: var(--gray-700);
  --color-slate-800: var(--gray-800);
  --color-slate-900: var(--gray-900);

  /* Blue Scale (Primary) - mapped to platform info/plan tokens */
  --color-blue-50: var(--phase-plan-very-light);
  --color-blue-100: var(--color-info-very-light);
  --color-blue-200: var(--color-info-light);
  --color-blue-300: #93c5fd; /* no exact platform token */
  --color-blue-400: #60a5fa; /* no exact platform token */
  --color-blue-500: var(--color-info);
  --color-blue-600: var(--color-info-dark);
  --color-blue-700: #1d4ed8; /* no exact platform token */
  --color-blue-800: #1e40af; /* no exact platform token */
  --color-blue-900: #1e3a8a; /* no exact platform token */

  /* Green Scale (Success) */
  --color-green-50: #f0fdf4;
  --color-green-100: #dcfce7;
  --color-green-200: #bbf7d0;
  --color-green-500: #22c55e;
  --color-green-600: #16a34a;
  --color-green-700: #15803d;

  /* Red Scale (Destructive) */
  --color-red-50: #fef2f2;
  --color-red-100: #fee2e2;
  --color-red-500: #ef4444;
  --color-red-600: #E54D4D;
  --color-red-700: #b91c1c;

  /* Orange Scale (Warning) */
  --color-orange-50: #fff7ed;
  --color-orange-100: #ffedd5;
  --color-orange-500: #f97316;
  --color-orange-600: #ea580c;

  /* Purple Scale */
  --color-purple-50: #faf5ff;
  --color-purple-100: #f3e8ff;
  --color-purple-500: #a855f7;
  --color-purple-600: #9333ea;

  /* Amber Scale */
  --color-amber-50: #fffbeb;
  --color-amber-100: #fef3c7;
  --color-amber-500: #f59e0b;
  --color-amber-600: #d97706;

  /* Semantic Colors */
  --background: var(--color-white);
  --foreground: var(--color-gray-900);
  --muted: var(--color-gray-100);
  --muted-foreground: var(--color-gray-500);
  --border: var(--color-gray-200);
  --input: var(--color-gray-200);
  --ring: var(--color-blue-500);

  --primary: var(--color-blue-600);
  --primary-hover: var(--color-blue-700);
  --primary-foreground: var(--color-white);

  --secondary: var(--color-gray-100);
  --secondary-hover: var(--color-gray-200);
  --secondary-foreground: var(--color-gray-900);

  --accent: var(--color-blue-50);
  --accent-foreground: var(--color-blue-900);

  --destructive: var(--color-red-500);
  --destructive-hover: var(--color-red-600);
  --destructive-foreground: var(--color-white);

  --success: var(--color-green-500);
  --success-foreground: var(--color-white);

  --warning: var(--color-amber-500);
  --warning-foreground: var(--color-white);

  /* Card */
  --card: var(--color-white);
  --card-foreground: var(--color-gray-900);
  --card-border: var(--color-gray-200);

  /* Sidebar */
  --sidebar-background: var(--color-gray-50);
  --sidebar-foreground: var(--color-gray-700);
  --sidebar-border: var(--color-gray-200);
  --sidebar-accent: var(--color-blue-50);
  --sidebar-accent-foreground: var(--color-blue-700);

  /* Typography */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", 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-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Spacing */
  --space-0: 0;
  --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;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.125rem;
  --radius-default: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-default: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition-fast: 150ms;
  --transition-default: 200ms;
  --transition-slow: 300ms;
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-Index - inherits from platform-tokens.css via --z-* variables */
  /* --z-dropdown: 100; --z-sticky: 200; --z-modal-backdrop: 400; --z-modal: 500; --z-tooltip: 600; */
}

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

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--text-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--foreground);
  background-color: var(--background);
  min-height: 100vh;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--foreground);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

p {
  margin-bottom: var(--space-4);
}

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

a:hover {
  color: var(--primary-hover);
}

small {
  font-size: var(--text-sm);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  line-height: var(--leading-normal);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast) var(--ease-default);
  white-space: nowrap;
  user-select: none;
}

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

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

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

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--border);
}

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

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

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

.btn-ghost {
  background-color: transparent;
  color: var(--foreground);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background-color: var(--muted);
}

.btn-destructive {
  background-color: var(--destructive);
  color: var(--destructive-foreground);
  border-color: var(--destructive);
}

.btn-destructive:hover:not(:disabled) {
  background-color: var(--destructive-hover);
  border-color: var(--destructive-hover);
}

.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
}

.btn-icon {
  padding: var(--space-2);
  aspect-ratio: 1;
}

.btn-icon.btn-sm {
  padding: var(--space-1);
}

/* Button icons - ensure icons inherit button color */
.btn .material-symbols-outlined,
.btn .icon,
.btn svg {
  color: inherit;
  fill: currentColor;
}

.btn-primary .material-symbols-outlined,
.btn-primary .icon,
.btn-primary svg {
  color: white;
  fill: white;
}

.btn-destructive .material-symbols-outlined,
.btn-destructive .icon,
.btn-destructive svg {
  color: white;
  fill: white;
}

/* ========================================
   Form Elements
   ======================================== */

.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--foreground);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--foreground);
  background-color: var(--background);
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast) var(--ease-default),
              box-shadow var(--transition-fast) var(--ease-default);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted-foreground);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--space-2) center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: var(--space-10);
}

/* ========================================
   Cards
   ======================================== */

.card {
  background-color: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.card-header {
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
}

.card-description {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.card-content {
  /* Default content styles */
}

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

/* ========================================
   Activity Card (Specific for Workshop Planner)
   ======================================== */

.activity-card {
  background-color: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  cursor: pointer;
  transition: all var(--transition-fast) var(--ease-default);
}

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

.activity-card.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}

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

.activity-card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-card-icon.exercise { background-color: var(--planner-exercise-bg); color: var(--planner-exercise-color); }
.activity-card-icon.icebreaker { background-color: var(--planner-icebreaker-bg); color: var(--planner-icebreaker-color); }
.activity-card-icon.break { background-color: var(--planner-break-bg); color: var(--planner-break-color); }
.activity-card-icon.discussion { background-color: var(--color-amber-100); color: var(--color-amber-600); }
.activity-card-icon.presentation { background-color: var(--color-orange-100); color: var(--color-orange-600); }

.activity-card-title {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--foreground);
  margin-bottom: var(--space-1);
}

.activity-card-description {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  line-height: var(--leading-relaxed);
}

.activity-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}

.activity-card-duration {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* ========================================
   Agenda Item (In the agenda builder)
   ======================================== */

.agenda-item {
  background-color: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  transition: all var(--transition-fast) var(--ease-default);
}

.agenda-item:hover {
  box-shadow: var(--shadow-sm);
}

.agenda-item-drag-handle {
  color: var(--muted-foreground);
  cursor: grab;
  padding: var(--space-1);
  margin: calc(var(--space-1) * -1);
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.agenda-item:hover .agenda-item-drag-handle {
  opacity: 1;
}

.agenda-item-time {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--muted-foreground);
  min-width: 60px;
}

.agenda-item-content {
  flex: 1;
  min-width: 0;
}

.agenda-item-title {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--foreground);
  margin-bottom: var(--space-1);
}

.agenda-item-duration {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.agenda-item-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.agenda-item:hover .agenda-item-actions {
  opacity: 1;
}

/* ========================================
   Badges
   ======================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
}

.badge-default {
  background-color: var(--muted);
  color: var(--muted-foreground);
}

.badge-primary {
  background-color: var(--color-blue-100);
  color: var(--color-blue-700);
}

.badge-success {
  background-color: var(--color-green-100);
  color: var(--color-green-700);
}

.badge-warning {
  background-color: var(--color-amber-100);
  color: var(--color-amber-700);
}

.badge-destructive {
  background-color: var(--color-red-100);
  color: var(--color-red-700);
}

/* ========================================
   Sidebar
   ======================================== */

.sidebar {
  width: 320px;
  height: 100vh;
  background-color: var(--sidebar-background);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-header {
  padding: var(--space-4);
  border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
}

.sidebar-section {
  margin-bottom: var(--space-6);
}

.sidebar-section-title {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: var(--space-3);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--sidebar-foreground);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast) var(--ease-default);
  cursor: pointer;
}

.sidebar-nav-item:hover {
  background-color: var(--muted);
}

.sidebar-nav-item.active {
  background-color: var(--sidebar-accent);
  color: var(--sidebar-accent-foreground);
}

/* ========================================
   Main Layout
   ======================================== */

.app-layout {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.main-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
}

/* ========================================
   Workshop Planner Specific Layout
   ======================================== */

.planner-layout {
  display: grid;
  grid-template-columns: 320px 1fr 360px;
  height: 100vh;
  overflow: hidden;
}

.planner-sidebar {
  background-color: var(--sidebar-background);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.planner-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--color-gray-50);
}

.planner-panel {
  background-color: var(--background);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ========================================
   Agenda Builder
   ======================================== */

.agenda-builder {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
}

.agenda-header {
  margin-bottom: var(--space-6);
}

.agenda-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--foreground);
  margin-bottom: var(--space-2);
}

.agenda-subtitle {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.agenda-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.agenda-drop-zone {
  min-height: 120px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  transition: all var(--transition-fast) var(--ease-default);
}

.agenda-drop-zone.drag-over {
  border-color: var(--primary);
  background-color: var(--color-blue-50);
}

.agenda-drop-zone-text {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  text-align: center;
}

/* ========================================
   AI Assistant Panel
   ======================================== */

.ai-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ai-panel-header {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.ai-panel-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

.ai-panel-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--color-purple-500), var(--color-blue-500));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.ai-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
}

.ai-panel-footer {
  padding: var(--space-4);
  border-top: 1px solid var(--border);
}

.ai-message {
  margin-bottom: var(--space-4);
}

.ai-message-assistant {
  background-color: var(--muted);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
}

.ai-message-user {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  margin-left: var(--space-8);
}

.ai-suggestions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ai-suggestion-card {
  background-color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  cursor: pointer;
  transition: all var(--transition-fast) var(--ease-default);
}

.ai-suggestion-card:hover {
  border-color: var(--primary);
  background-color: var(--accent);
}

/* ========================================
   Dialogs/Modals
   ======================================== */

.dialog-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal-backdrop);
  opacity: 0;
  transition: opacity var(--transition-default) var(--ease-default);
}

.dialog-overlay.open {
  opacity: 1;
}

.dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background-color: var(--background);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-modal);
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: all var(--transition-default) var(--ease-default);
}

.dialog.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.dialog-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.dialog-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
}

.dialog-description {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin-top: var(--space-2);
}

.dialog-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
}

.dialog-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}

/* ========================================
   Tabs
   ======================================== */

.tabs {
  display: flex;
  flex-direction: column;
}

.tabs-list {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: var(--space-1);
}

.tab-trigger {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--muted-foreground);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast) var(--ease-default);
  margin-bottom: -1px;
}

.tab-trigger:hover {
  color: var(--foreground);
}

.tab-trigger.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
  padding: var(--space-4) 0;
}

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

/* ========================================
   Dropdown Menu
   ======================================== */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-1);
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--transition-fast) var(--ease-default);
}

.dropdown.open .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--foreground);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--muted);
}

.dropdown-separator {
  height: 1px;
  background-color: var(--border);
  margin: var(--space-1) 0;
}

/* ========================================
   Tooltips
   ======================================== */

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-content {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-2) var(--space-3);
  background-color: var(--color-gray-900);
  color: var(--color-white);
  font-size: var(--text-xs);
  border-radius: var(--radius-md);
  white-space: nowrap;
  z-index: var(--z-tooltip);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast) var(--ease-default);
  margin-bottom: var(--space-2);
}

.tooltip:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   Empty State
   ======================================== */

.empty-state {
  text-align: center;
  padding: var(--space-12);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  color: var(--muted-foreground);
}

.empty-state-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.empty-state-description {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  max-width: 300px;
  margin: 0 auto var(--space-6);
}

/* ========================================
   Utilities
   ======================================== */

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

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

.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); }

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

.text-muted { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }

.mb-1 { margin-bottom: var(--space-1); }
.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); }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }

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

.w-full { width: 100%; }
.h-full { height: 100%; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.rounded { border-radius: var(--radius-default); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }

.shadow { box-shadow: var(--shadow-default); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.hidden { display: none; }
