/* ==================== CSS RESET & VARIABLES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #3b82f6;
  --secondary: #6366f1;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  
  --priority-low: #10b981;
  --priority-medium: #f59e0b;
  --priority-high: #ef4444;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
  
  --radius: 8px;
  --transition: 0.2s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==================== LAYOUT & GRID ==================== */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo::before {
  content: '📊';
  font-size: 28px;
}

.view-tabs {
  display: flex;
  gap: 8px;
  background: var(--gray-100);
  padding: 4px;
  border-radius: var(--radius);
}

.view-tab {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
}

.view-tab:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.view-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.header-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background: var(--gray-300);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}

.btn-danger:hover {
  background: #dc2626;
}

.main-content {
  flex: 1;
  padding: 24px;
  max-width: 1800px;
  width: 100%;
  margin: 0 auto;
}

.view {
  display: none;
  animation: fadeIn 0.3s ease;
}

.view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== KANBAN BOARD ==================== */
.kanban-board {
  display: flex;
  gap: 16px;
  height: calc(100vh - 180px);
  overflow-x: auto;
  align-items: stretch;
}

.kanban-column {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  min-width: 280px;
  flex-shrink: 0;
  transition: var(--transition);
  cursor: default;
}

.kanban-column.dragging-column {
  opacity: 0.5;
  transform: rotate(2deg);
}

.kanban-column.drag-over-column {
  border: 2px dashed var(--primary);
  background: rgba(59, 130, 246, 0.05);
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-300);
  position: relative;
}

.column-drag-handle {
  cursor: grab;
  color: var(--gray-400);
  font-size: 16px;
  margin-right: 8px;
  user-select: none;
  transition: var(--transition);
}

.column-drag-handle:hover {
  color: var(--gray-600);
}

.column-drag-handle:active {
  cursor: grabbing;
}

.column-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.column-title-editable {
  background: transparent;
  border: 1px solid transparent;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}

.column-title-editable:hover {
  background: var(--gray-200);
  border-color: var(--gray-300);
}

.column-title-editable:focus {
  outline: none;
  background: var(--white);
  border-color: var(--primary);
  text-transform: none;
}

.column-controls {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: var(--transition);
}

.column-header:hover .column-controls {
  opacity: 1;
}

.column-control-btn {
  width: 24px;
  height: 24px;
  border: none;
  background: var(--gray-200);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.column-control-btn:hover {
  background: var(--gray-300);
}

.column-control-btn.delete:hover {
  background: var(--danger);
  color: var(--white);
}

.add-column-btn {
  min-width: 42px;
  width: 42px;
  background: var(--white);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 16px 8px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--gray-600);
  font-size: 24px;
  font-weight: 300;
  flex-shrink: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.add-column-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--gray-50);
}

.add-column-icon {
  writing-mode: horizontal-tb;
  font-size: 20px;
}

.column-count {
  background: var(--gray-300);
  color: var(--gray-700);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.column-cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 4px;
}

.task-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  cursor: move;
  transition: var(--transition);
  user-select: none;
}

.task-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.task-card.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}

.task-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 8px;
}

.task-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  flex: 1;
  line-height: 1.4;
}

.priority-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.priority-low { background: var(--priority-low); }
.priority-medium { background: var(--priority-medium); }
.priority-high { background: var(--priority-high); }

.task-project {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--white);
  margin-bottom: 8px;
}

.task-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 12px;
  color: var(--gray-600);
}

.task-date {
  display: flex;
  align-items: center;
  gap: 4px;
}

.task-assignee {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.add-task-btn {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  background: var(--white);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.add-task-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--gray-50);
}

/* ==================== TIMELINE VIEW ==================== */
.timeline-container {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  padding-bottom: 16px;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 20;
}

.timeline-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.timeline-view-switcher {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  padding: 4px;
  border-radius: var(--radius);
}

.timeline-view-btn {
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
}

.timeline-view-btn:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.timeline-view-btn.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.timeline-scroll {
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 16px;
}

.timeline-grid {
  position: relative;
  min-width: 1200px;
  padding-top: 40px;
}

.timeline-dates {
  display: flex;
  position: sticky;
  background: var(--white);
  z-index: 15;
  margin-bottom: 20px;
  padding: 12px 0;
  gap: 4px;
  border-bottom: 1px solid var(--gray-200);
}

.timeline-date {
  flex: 1;
  min-width: 80px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  padding: 10px 8px;
  background: var(--gray-50);
  border-radius: 8px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.timeline-date:hover {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

.timeline-date.today {
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  border-color: var(--primary);
}

.timeline-tasks {
  position: relative;
  min-height: 560px;
}

.timeline-row {
  position: relative;
  height: 60px;
  margin-bottom: 8px;
}

.timeline-bar {
  position: absolute;
  height: 54px;
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.timeline-bar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--progress, 0%);
  background: rgba(255, 255, 255, 0.3);
  border-radius: 6px 0 0 6px;
  z-index: 0;
}

.timeline-bar > * {
  position: relative;
  z-index: 1;
}

.timeline-bar:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  z-index: 5;
}

.timeline-bar-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  flex-shrink: 0;
}

.timeline-bar-progress {
  font-size: 10px;
  opacity: 0.95;
  margin-top: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-today-marker {
  position: absolute;
  width: 2px;
  background: var(--danger);
  top: -30px;
  bottom: 0;
  z-index: 5;
  pointer-events: none;
}

.timeline-today-marker::before {
  content: 'Today';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--danger);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* ==================== CALENDAR VIEW ==================== */
.calendar-container {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 140px);
  overflow: hidden;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}

.calendar-title {
  font-size: 24px;
  color: var(--gray-900);
}

.calendar-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.calendar-month-picker {
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}

.calendar-month-picker:hover {
  border-color: var(--primary);
}

.calendar-month-picker:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.calendar-nav-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-100);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}

.calendar-nav-btn:hover {
  background: var(--gray-200);
}

.calendar-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day-header {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  padding: 8px;
  text-transform: uppercase;
}

.calendar-day {
  aspect-ratio: 1;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 8px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  min-height: 100px;
  background: var(--white);
}

.calendar-day:hover {
  background: var(--gray-50);
  border-color: var(--primary);
}

.calendar-day.other-month {
  opacity: 0.3;
}

.calendar-day.today {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.calendar-day-number {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.calendar-day-tasks {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.calendar-task-dot {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

.calendar-task-pill {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.day-tasks-modal .modal {
  max-width: 500px;
}

.day-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.day-task-item {
  background: var(--gray-50);
  padding: 12px;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.day-task-item:hover {
  background: var(--gray-100);
  transform: translateX(4px);
}

.day-task-item-title {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.day-task-item-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-600);
}

.day-task-item-project {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
}

/* ==================== MODAL ==================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
}

.modal-close {
  width: 28px;
  height: 28px;
  border: none;
  background: var(--gray-100);
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--gray-200);
}

.modal-body {
  padding: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 60px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.modal-footer-right {
  display: flex;
  gap: 12px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .header {
    padding: 12px 16px;
  }

  .header-left {
    flex-basis: 100%;
    justify-content: space-between;
  }

  .view-tabs {
    flex: 1;
  }

  .view-tab {
    padding: 8px 12px;
    font-size: 13px;
  }

  .logo {
    font-size: 20px;
  }

  .main-content {
    padding: 16px;
  }

  .kanban-board {
    grid-template-columns: 1fr;
    overflow-x: auto;
    display: flex;
    height: auto;
  }

  .kanban-column {
    min-width: 280px;
  }

  .timeline-grid {
    min-width: 800px;
  }

  .calendar-day {
    min-height: 60px;
    padding: 4px;
  }

  .calendar-day-number {
    font-size: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal {
    max-height: 80vh;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 16px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .kanban-board {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==================== DIALOG SYSTEM ==================== */
.dialog-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3000;
  animation: fadeIn 0.2s ease;
  backdrop-filter: blur(2px);
}

.dialog-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.dialog {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  animation: dialogSlideIn 0.3s ease;
  overflow: hidden;
}

@keyframes dialogSlideIn {
  from {
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.dialog-header {
  padding: 24px 24px 16px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.dialog-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.dialog-icon.info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
}

.dialog-icon.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.dialog-icon.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.dialog-icon.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.dialog-header-content {
  flex: 1;
  padding-top: 4px;
}

.dialog-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.dialog-message {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}

.dialog-body {
  padding: 0 24px 24px 88px;
}

.dialog-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

.dialog-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dialog-footer {
  padding: 16px 24px;
  background: var(--gray-50);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--gray-200);
}

.dialog-btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.dialog-btn-cancel {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.dialog-btn-cancel:hover {
  background: var(--gray-50);
}

.dialog-btn-confirm {
  background: var(--primary);
  color: var(--white);
}

.dialog-btn-confirm:hover {
  background: #2563eb;
}

.dialog-btn-confirm.danger {
  background: var(--danger);
}

.dialog-btn-confirm.danger:hover {
  background: #dc2626;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  pointer-events: all;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s;
  border-left: 4px solid var(--primary);
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.warning {
  border-left-color: var(--warning);
}

.toast.info {
  border-left-color: var(--primary);
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
  font-size: 14px;
}

.toast-message {
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.4;
}

.toast-close {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--gray-400);
  cursor: pointer;
  border-radius: 4px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.toast-close:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

/* ==================== UTILITIES ==================== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-600);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 16px;
  margin-bottom: 8px;
}

.hidden {
  display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-600);
}
