:root {
  --bg: #0f172a;
  --card: #0b1220;
  --muted: #94a3b8;  /* grey for secondary/muted text */
  --accent: #06b6d4;
  --glass: rgba(255, 255, 255, 0.03);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Roboto, system-ui, -apple-system, Arial;
  background: linear-gradient(180deg, #071228 0%, #081226 60%);
  color: #ffffff; /* default text color white */
  padding: 24px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

h1 {
  font-size: 20px;
  margin: 0;
  color: #ffffff; /* header text white */
}

.task-form {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}

/* Inputs & dropdowns */
.task-form input,
.task-form select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--glass);
  color: #ffffff; /* text white */
  outline: none;
  min-width: 120px;
  font-size: 14px;
  transition: all 0.2s ease;
}

/* Dropdown hover styling */
.task-form select option {
  color: #ffffff; /* white text */
  background: var(--card); /* dark background */
}

.task-form select option:hover {
  color: #ffffff; /* text remains white */
  background: var(--accent); /* blue hover */
}

/* Focus effect */
.task-form input:focus,
.task-form select:focus {
  border-color: var(--accent);
  background: rgba(6, 182, 212, 0.05);
  color: #ffffff; /* text white on focus */
}

.task-form button {
  padding: 10px 14px;
  border-radius: 8px;
  border: 0;
  background: var(--accent);
  color: #042027;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease, font-size 0.2s ease, padding 0.2s ease;
}

.task-form button:hover {
  background: #0aa3c0;
}

.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.column {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-radius: 12px;
  padding: 12px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.column h2 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: var(--muted); /* keep grey for secondary headings */
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 40px;
}

.card {
  background: linear-gradient(180deg, #07172766, #0b1b2a66);
  padding: 10px;
  border-radius: 10px;
  cursor: grab;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.6);
  color: #ffffff; /* all card text white */
}

.card.dragging {
  opacity: 0.6;
  transform: scale(0.98);
}

.card h3 {
  margin: 0 0 6px 0;
  font-size: 14px;
  color: #ffffff; /* task title white */
}

.card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted); /* description grey */
}

.card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  color: var(--muted); /* grey for meta info */
}

.small-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.drop-hint {
  outline: 2px dashed rgba(6, 182, 212, 0.18);
  border-radius: 8px;
  padding: 6px;
}

footer {
  margin-top: 12px;
  color: var(--muted); /* grey footer */
  font-size: 13px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .board {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .board {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: stretch;
  }

  h1 {
    font-size: 16px;
  }

  .task-form {
    flex-direction: column;
    gap: 8px;
    justify-content: stretch;
  }

  .task-form input,
  .task-form select,
  .task-form button {
    width: 100%;
    font-size: 12px;
    padding: 8px 10px;
    color: #ffffff; /* text white on mobile */
  }

  .board {
    display: flex;
    flex-direction: column;
  }

  .column {
    min-height: auto;
  }
}
