/* ===== VARIÁVEIS DE DESIGN ===== */
/* Sistema de cores e tokens para tema claro e escuro */
/* Todas as cores seguem padrão WCAG para acessibilidade */
:root {
  /* Cores de fundo - Base para tema claro */
  --bg: #f8f9fb;              /* Fundo principal */
  --bg-secondary: #eef1f6;     /* Fundo secundário/áreas */
  --card: #ffffff;            /* Fundo de cards */
  --overlay: rgba(0, 0, 0, 0.5); /* Overlay para modais */
  
  /* Cores de texto - Contraste WCAG AA */
  --text: #1a1a1a;            /* Texto principal */
  --text-secondary: #6b7280;   /* Texto secundário */
  --text-muted: #9ca3af;      /* Texto mutado */
  
  /* Cores primárias - Azul profissional */
  --primary: #2563eb;         /* Azul principal */
  --primary-light: #3b82f6;   /* Azul claro */
  --primary-dark: #1d4ed8;    /* Azul escuro */
  --primary-bg: #eff6ff;      /* Fundo azul */
  
  /* Cores de status - Semântico */
  --success: #10b981;         /* Verde sucesso */
  --success-bg: #ecfdf5;      /* Fundo verde */
  --warning: #f59e0b;         /* Laranja aviso */
  --warning-bg: #fffbeb;      /* Fundo laranja */
  --danger: #ef4444;          /* Vermelho erro */
  --danger-bg: #fef2f2;       /* Fundo vermelho */
  --info: #06b6d4;            /* Ciano info */
  --info-bg: #f0fdfa;         /* Fundo ciano */
  
  /* Cores de borda e sombras */
  --border: #e5e7eb;          /* Borda padrão */
  --border-light: #f3f4f6;    /* Borda clara */
  --border-dark: #d1d5db;     /* Borda escura */
  
  /* Sombras - Elevação material design */
  --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-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Gradientes - Modernos e sutis */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  --gradient-success: linear-gradient(135deg, var(--success) 0%, #34d399 100%);
  --gradient-danger: linear-gradient(135deg, var(--danger) 0%, #f87171 100%);
  --gradient-card: linear-gradient(135deg, var(--card) 0%, var(--bg-secondary) 100%);
  
  /* Tipografia - Escala modular */
  --font-xs: 0.75rem;         /* 12px */
  --font-sm: 0.875rem;        /* 14px */
  --font-base: 1rem;          /* 16px */
  --font-lg: 1.125rem;        /* 18px */
  --font-xl: 1.25rem;         /* 20px */
  --font-2xl: 1.5rem;         /* 24px */
  --font-3xl: 1.875rem;       /* 30px */
  --font-4xl: 2.25rem;        /* 36px */
  
  /* Espaçamento - Escala de 8px */
  --space-1: 0.25rem;         /* 4px */
  --space-2: 0.5rem;          /* 8px */
  --space-3: 0.75rem;         /* 12px */
  --space-4: 1rem;            /* 16px */
  --space-5: 1.25rem;         /* 20px */
  --space-6: 1.5rem;          /* 24px */
  --space-8: 2rem;            /* 32px */
  --space-10: 2.5rem;         /* 40px */
  --space-12: 3rem;           /* 48px */
  --space-16: 4rem;           /* 64px */
  
  /* Border radius - Consistente */
  --radius-sm: 0.25rem;       /* 4px */
  --radius: 0.375rem;         /* 6px */
  --radius-md: 0.5rem;        /* 8px */
  --radius-lg: 0.75rem;       /* 12px */
  --radius-xl: 1rem;          /* 16px */
  --radius-2xl: 1.5rem;       /* 24px */
  --radius-full: 9999px;
  
  /* Transições - Suaves e consistentes */
  --transition-fast: 150ms ease;
  --transition: 200ms ease;
  --transition-slow: 300ms ease;
  
  /* Z-index - Camadas organizadas */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}

/* ===== TEMA ESCURO ===== */
/* High contrast mode para melhor acessibilidade */
[data-theme="dark"] {
  --bg: #0f172a;              /* Fundo principal escuro */
  --bg-secondary: #1e293b;    /* Fundo secundário */
  --card: #1e293b;            /* Cards escuros */
  --overlay: rgba(0, 0, 0, 0.7); /* Overlay mais escuro */
  
  --text: #f8fafc;            /* Texto principal claro */
  --text-secondary: #cbd5e1;   /* Texto secundário */
  --text-muted: #64748b;      /* Texto mutado */
  
  --primary: #3b82f6;         /* Azul mais claro no escuro */
  --primary-light: #60a5fa;   /* Azul ainda mais claro */
  --primary-dark: #2563eb;    /* Azul médio */
  --primary-bg: #1e3a8a;      /* Fundo azul escuro */
  
  --success: #34d399;         /* Verde mais brilhante */
  --success-bg: #064e3b;     /* Fundo verde escuro */
  --warning: #fbbf24;         /* Amarelo mais brilhante */
  --warning-bg: #451a03;     /* Fundo amarelo escuro */
  --danger: #f87171;          /* Vermelho mais claro */
  --danger-bg: #7f1d1d;      /* Fundo vermelho escuro */
  --info: #22d3ee;            /* Ciano mais brilhante */
  --info-bg: #164e63;         /* Fundo ciano escuro */
  
  --border: #334155;          /* Borda mais escura */
  --border-light: #475569;    /* Borda clara */
  --border-dark: #1e293b;     /* Borda escura */
  
  /* Sombras ajustadas para tema escuro */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

/* ===== RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--font-base);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  transition: background-color var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== LAYOUT PRINCIPAL ===== */
.app-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  position: relative;
}

/* Sidebar */
.sidebar {
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: var(--space-6);
  overflow-y: auto;
  height: 100vh;
  position: sticky;
  top: 0;
  transition: all var(--transition);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  font-size: var(--font-2xl);
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.sidebar-logo:hover {
  color: var(--primary-light);
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition);
  font-weight: 500;
}

.nav-item:hover {
  background: var(--bg-secondary);
  color: var(--primary);
  transform: translateX(4px);
}

.nav-item.active {
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Content */
.main-content {
  padding: var(--space-8);
  overflow-y: auto;
  background: var(--bg);
  min-height: 100vh;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

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

.header-subtitle {
  color: var(--text-secondary);
  font-size: var(--font-lg);
}

.header-actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

/* User Profile */
.user-profile {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
}

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

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--font-sm);
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.user-name {
  font-weight: 600;
  color: var(--text);
  font-size: var(--font-sm);
}

.user-email {
  color: var(--text-secondary);
  font-size: var(--font-xs);
}

.logout-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-2);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-size: var(--font-sm);
}

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

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: none;
  border-radius: var(--radius);
  font-size: var(--font-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 44px; /* Touch friendly */
}

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

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

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

.btn-success {
  background: var(--gradient-success);
  color: white;
}

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

.btn-sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-xs);
  min-height: 36px;
}

.btn-lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-lg);
  min-height: 52px;
}

.btn-group {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ===== FORMULÁRIOS ===== */
.form-group {
  margin-bottom: var(--space-4);
}

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

.form-input {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--font-base);
  background: var(--card);
  color: var(--text);
  transition: all var(--transition);
  min-height: 44px; /* Touch friendly */
}

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

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

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

.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-3) center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: var(--space-10);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
}

.form-checkbox,
.form-radio {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}

.form-checkbox input,
.form-radio input {
  min-width: 16px;
  min-height: 16px;
}

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  overflow: hidden;
}

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

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

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

.card-subtitle {
  color: var(--text-secondary);
  font-size: var(--font-sm);
}

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

.card-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

/* ===== KANBAN BOARD ===== */
.kanban-board {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  overflow-x: auto;
  min-height: 600px;
}

.kanban-column {
  flex: 1;
  min-width: 320px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
}

.kanban-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--border);
}

.kanban-column-title {
  font-weight: 600;
  color: var(--text);
  font-size: var(--font-lg);
}

.kanban-column-count {
  background: var(--primary);
  color: white;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  font-weight: 600;
}

.kanban-tasks {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 400px;
}

.task-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.task-card.dragging {
  opacity: 0.5;
  transform: rotate(5deg);
}

.task-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
  font-size: var(--font-base);
}

.task-description {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}

.task-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.task-priority {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius);
  font-size: var(--font-xs);
  font-weight: 600;
  text-transform: uppercase;
}

.priority-high {
  background: var(--danger-bg);
  color: var(--danger);
}

.priority-medium {
  background: var(--warning-bg);
  color: var(--warning);
}

.priority-low {
  background: var(--info-bg);
  color: var(--info);
}

.task-assignee {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: var(--font-xs);
}

.task-actions {
  display: flex;
  gap: var(--space-1);
  opacity: 0;
  transition: opacity var(--transition);
}

.task-card:hover .task-actions {
  opacity: 1;
}

.task-action-btn {
  padding: var(--space-1);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.task-action-btn:hover {
  background: var(--bg-secondary);
  color: var(--primary);
}

/* ===== MODAIS ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform var(--transition);
}

.modal.active .modal-content {
  transform: scale(1);
}

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

.modal-title {
  font-size: var(--font-xl);
  font-weight: 600;
  color: var(--text);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: var(--font-2xl);
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--space-1);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--bg-secondary);
  color: var(--text);
}

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

.modal-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  background: var(--bg-secondary);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.toast {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
  min-width: 300px;
  max-width: 400px;
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.toast.show {
  transform: translateX(0);
}

.toast-icon {
  font-size: var(--font-lg);
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-1);
  font-size: var(--font-sm);
}

.toast-message {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  line-height: 1.4;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--space-1);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.toast-close:hover {
  background: var(--bg-secondary);
  color: var(--text);
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid var(--danger);
}

.toast.warning {
  border-left: 4px solid var(--warning);
}

.toast.info {
  border-left: 4px solid var(--info);
}

/* ===== LOGIN ===== */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: var(--space-4);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  overflow-y: auto;
}

.login-card {
  background: var(--card);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
}

.login-logo {
  text-align: center;
  font-size: var(--font-3xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-8);
  padding: var(--space-8) var(--space-6) var(--space-6);
}

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

.login-tab {
  flex: 1;
  padding: var(--space-4);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition);
  border-bottom: 2px solid transparent;
}

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

.login-tab:hover {
  color: var(--primary);
}

.login-form {
  padding: var(--space-6);
}

.login-submit-btn {
  width: 100%;
  margin-top: var(--space-4);
}

.login-divider {
  text-align: center;
  margin: var(--space-6) 0;
  position: relative;
}

.login-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.login-divider span {
  background: var(--card);
  padding: 0 var(--space-3);
  color: var(--text-secondary);
  font-size: var(--font-sm);
}

.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}

.google-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--border-dark);
}

.demo-btn {
  width: 100%;
  margin-top: var(--space-3);
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.demo-btn:hover {
  background: var(--bg-secondary);
  color: var(--text);
}

/* ===== UTILITÁRIOS ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }
.d-grid { display: grid; }

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

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

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

.m-0 { margin: 0; }
.m-2 { margin: var(--space-2); }
.m-4 { margin: var(--space-4); }

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

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

.hidden { display: none !important; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0f172a;
    --bg-secondary: #1e293b;
    --card: #1e293b;
    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border: #334155;
  }
}

/* Focus visible para melhor acessibilidade */
.btn:focus-visible,
.form-input:focus-visible,
.nav-item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Skip links para screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: var(--z-tooltip);
}

.skip-link:focus {
  top: 6px;
}
