@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600&display=swap");

:root {
  --bg: radial-gradient(140% 160% at 10% 10%, #0f172a, #0b1021 45%, #060915 100%);
  --bg-accent: radial-gradient(50% 60% at 80% 20%, rgba(46, 204, 113, 0.15), transparent 60%),
    radial-gradient(70% 80% at 20% 70%, rgba(251, 197, 49, 0.2), transparent 70%);
  --card: #121a2e;
  --panel: rgba(12, 19, 36, 0.92);
  --muted: #8aa0c2;
  --border: #1f2a44;
  --green: #2ecc71;
  --yellow: #fbc531;
  --red: #e74c3c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg), var(--bg-accent);
  color: #e9f0ff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  position: relative;
  isolation: isolate;
}

.app-shell::before,
.app-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  filter: blur(120px);
  opacity: 0.35;
  z-index: -1;
}

.app-shell::before {
  background: radial-gradient(36% 36% at 20% 30%, rgba(46, 204, 113, 0.2), transparent);
}

.app-shell::after {
  background: radial-gradient(30% 30% at 80% 60%, rgba(231, 76, 60, 0.18), transparent);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.95), rgba(12, 19, 36, 0.92));
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon {
  font-size: 26px;
  color: #fbc531;
  text-shadow: 0 0 14px rgba(251, 197, 49, 0.45);
}

.pill {
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f172a;
  color: #c3d1ed;
  font-size: 13px;
}

button,
select,
input,
textarea {
  font: inherit;
}

button {
  background: linear-gradient(120deg, #2563eb, #22c55e);
  color: #0b1021;
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
}

button.secondary {
  background: #0f172a;
  color: #c3d1ed;
  border: 1px solid var(--border);
}

form.inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

input[type="text"],
textarea,
select {
  background: #0f172a;
  color: #dbe7ff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 180px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  min-height: 80px;
  width: 100%;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.column {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.column::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #cbd8f5;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-size: 13px;
  padding: 4px 2px;
}

.tasks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 60px;
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  cursor: grab;
  transition: transform 0.14s ease, border-color 0.12s ease, box-shadow 0.14s ease;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  touch-action: none;
}

.card.drag-over {
  border-color: #3b82f6;
}

.card.dragging {
  opacity: 0.7;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.32);
}

.card h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.card .meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 10px;
  display: inline-block;
}

.color-green {
  border-left: 4px solid var(--green);
  box-shadow: -6px 0 18px rgba(46, 204, 113, 0.24);
}

.color-yellow {
  border-left: 4px solid var(--yellow);
  box-shadow: -6px 0 18px rgba(251, 197, 49, 0.2);
}

.color-red {
  border-left: 4px solid var(--red);
  box-shadow: -6px 0 18px rgba(231, 76, 60, 0.22);
}

.dot.green {
  background: var(--green);
}

.dot.yellow {
  background: var(--yellow);
}

.dot.red {
  background: var(--red);
}

.card .actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.card .description {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.card .description.collapsed {
  max-height: 96px;
  overflow: hidden;
  position: relative;
}

.card .description.collapsed::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 32px;
  background: linear-gradient(180deg, rgba(18, 26, 46, 0) 0%, rgba(18, 26, 46, 0.95) 100%);
}

.card .description ul {
  padding-left: 16px;
  margin: 4px 0;
}

.card .description ol {
  padding-left: 18px;
  margin: 4px 0;
}

.card .description code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 12px;
  color: #e9f0ff;
}

.card .description li {
  margin: 2px 0;
}

.card .description-toggle {
  margin-top: 8px;
  padding: 6px 10px;
  font-size: 12px;
}

.card button {
  padding: 7px 10px;
  font-size: 12px;
}

.dropzone {
  min-height: 40px;
  padding: 4px;
  border-radius: 10px;
  transition: background 0.1s ease, border 0.1s ease;
}

.dropzone.active {
  border: 1px dashed #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal .sheet {
  background: #0e1426;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  max-width: 460px;
  width: 100%;
}

.modal.hidden {
  display: none;
}

@media (max-width: 700px) {
  .app-shell {
    padding: 14px;
  }
  form.inline {
    flex-direction: column;
    align-items: stretch;
  }
  input[type="text"],
  select {
    width: 100%;
  }
}
