/* Custom Animations */
@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

@keyframes highlightFlash {

  0%,
  100% {
    background-color: transparent;
  }

  50% {
    background-color: rgba(59, 130, 246, 0.2);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Animation Classes */
.toast-enter {
  animation: slideIn 0.3s ease-out;
}

.toast-exit {
  animation: slideOut 0.3s ease-in;
}

.animate-slide-in-right {
  animation: slideIn 0.3s ease-out;
}

.animate-slide-out-right {
  animation: slideOut 0.3s ease-in;
}

.animate-scale {
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.highlight-flash {
  animation: highlightFlash 1s ease-in-out 2;
}

/* Line Clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Analytics Sub-Tab Styling */
.analytics-subtab-btn {
  transition: all 0.3s ease;
}

.analytics-subtab-btn.bg-blue-600 {
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Kanban Column Header Colors */
/* jKanban uses classList.add(class) — tek class token olmalı */
.kanban-col-todo {
  background-color: #fff1f2;
  color: #be123c;
  font-weight: 600;
}

.kanban-col-progress {
  background-color: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.kanban-col-done {
  background-color: #f0fdf4;
  color: #15803d;
  font-weight: 600;
}

.kanban-col-default {
  background-color: #f9fafb;
  color: #374151;
  font-weight: 600;
}

/* jKanban genel stil iyileştirmeleri */
.kanban-board .kanban-drag {
  min-height: 60px;
}

.kanban-board .kanban-item {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 8px;
}

.kanban-board .kanban-item:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

/* ─── Layout Fix: Tab Container ─────────────────────────────────────────────
   #tab-analytics, max-w-7xl px-6 py-6 container'ının İÇİNDE → zaten düzgün.
   Diğer tüm tab'lar container DIŞINDA kalmış → aynı kural buradan uygulanır.
   ─────────────────────────────────────────────────────────────────────────── */
.tab-content:not(#tab-analytics) {
  max-width: 80rem;
  /* = max-w-7xl */
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem;
  /* = p-6 */
}