/*
SPDX-FileCopyrightText: Copyright (c) 2025 Yegor Bugayenko
SPDX-License-Identifier: MIT
*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  height: 100vh;
  overflow: hidden;
}
.container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 100vh;
  gap: 2px;
  background: #ccc;
}
.quadrant {
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
}
.header {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-urgent-important {
  background: #fee2e2;
  color: #991b1b;
}
.header-not-urgent-important {
  background: #fef3c7;
  color: #92400e;
}
.header-urgent-not-important {
  background: #dbeafe;
  color: #1e40af;
}
.header-not-urgent-not-important {
  background: #e5e7eb;
  color: #374151;
}
.add {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.add:hover {
  opacity: 1;
}
.tasks {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
  align-content: start;
}
.task {
  display: flex;
  align-items: flex-start;
  padding: 10px 12px;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  gap: 8px;
}
.task:hover {
  background: #f3f4f6;
}
.task[draggable="true"] {
  cursor: grab;
}
.task.dragging {
  opacity: 0.5;
  cursor: grabbing;
}
.tasks.drag-over {
  background: #e0f2fe;
  border-radius: 6px;
}
.task-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}
.task-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}
.task:hover .task-actions {
  opacity: 1;
}
.task-btn {
  background: none;
  border: none;
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  color: #6b7280;
}
.task-btn:hover {
  background: #e5e7eb;
}
.task.on-hold {
  opacity: 0.5;
  background: #f3f4f6;
  border-style: dashed;
}
.task.on-hold .task-text {
  text-decoration: line-through;
  color: #9ca3af;
}
.task-input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 6px;
  border: 2px solid #3b82f6;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}
@media (max-width: 600px) {
  .container {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
  }
  .header {
    padding: 10px 12px;
    font-size: 12px;
  }
  .tasks {
    grid-template-columns: 1fr;
  }
  .task {
    padding: 8px 10px;
  }
  .task-actions {
    opacity: 1;
  }
}
