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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #000000;              /* ← Чёрный фон вместо фиолетового */
  color: #ffffff;
  min-height: 100vh;
  padding: 20px;
}

.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.column {
  background: #1a1a1a;              /* ← Тёмные колонки */
  border: 1px solid #333;
  border-radius: 12px;
  padding: 16px;
  min-height: 500px;
}

.column h2 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1.1rem;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 2px solid #444;
}

.task-list {
  min-height: 400px;
  padding: 8px;
}

/* Карточка задачи */
.task-card {
  background: linear-gradient(135deg, #4A90E2, #4A90E2);
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  color: white;
  cursor: grab;
  transition: background 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
  user-select: none;
}

.task-card:active { cursor: grabbing; }
.task-card.dragging { 
  opacity: 0.9; 
  transform: scale(1.03); 
  z-index: 1000; 
  transition: none; 
  box-shadow: 0 8px 25px rgba(0,0,0,0.5); 
}

.task-card.in-progress { background: linear-gradient(135deg, #F5A623, #F5A623); }
.task-card.done { background: linear-gradient(135deg, #50C878, #50C878); }

.task-card strong { display: block; margin-bottom: 6px; font-size: 1rem; }
.task-card p { margin: 0; font-size: 0.9rem; opacity: 0.95; line-height: 1.4; }

/* Кнопка "+" — фикс позиционирования */
#add-task-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 16px 32px;
  background: #ffffff;
  color: #000000;           /* ← чёрный текст на белой кнопке */
  border: 2px solid #fff;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: all 0.2s ease;
  z-index: 9999;            /* ← выше всего */
  display: flex;
  align-items: center;
  gap: 8px;
}

#add-task-btn:hover { 
  transform: scale(1.05); 
  box-shadow: 0 6px 25px rgba(255,255,255,0.3);
  background: #f0f0f0;
}

#add-task-btn:active { 
  transform: scale(0.98); 
}

/* Анимация появления */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.task-card.new { animation: slideIn 0.3s ease; }

/* Адаптив для мобильных */
@media (max-width: 600px) {
  #add-task-btn {
    bottom: 20px;
    right: 20px;
    padding: 14px 24px;
    font-size: 1rem;
  }
  .board {
    grid-template-columns: 1fr;
  }
}
