:root {
  --bg: #0d0d0d;
  --bg-alt: #141414;
  --bg-sidebar: #1a1a1a;
  --bg-hover: #262626;
  --bg-active: #333;
  --text: #e5e5e5;
  --text-dim: #a3a3a3;
  --text-muted: #737373;
  --border: #262626;
}

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

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none;
}
.flex {
  display: flex;
}
.mr-2 {
  margin-right: 0.5rem;
}

#app {
  display: flex;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

#sidebar {
  width: 260px;
  min-width: 180px;
  max-width: 420px;
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px;
  border-right: 1px solid var(--border);
}

#header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

#app-title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

#menu-button {
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 4px;
  transition: color 0.15s;
}
#menu-button:hover {
  color: var(--text);
}

#dropdown-menu {
  position: absolute;
  top: 28px;
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 10;
  width: 140px;
  overflow: hidden;
}

#dropdown-menu button {
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.1s,
    color 0.1s;
}
#dropdown-menu button:hover {
  background: var(--bg-hover);
  color: var(--text);
}

#board-config {
  flex: 1;
  width: 100%;
  resize: none;
  border: 0;
  padding: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 10px;
  border-radius: 4px;
  font-family: inherit;
}
#board-config::placeholder {
  color: var(--text-muted);
}
#board-config:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--bg-active);
}

#action-buttons {
  display: flex;
  gap: 6px;
}

.btn-action {
  flex: 1;
  padding: 7px 0;
  background: var(--bg-hover);
  border: none;
  border-radius: 4px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s;
}
.btn-action:hover {
  background: var(--bg-active);
  color: var(--text);
}

#splitter {
  width: 6px;
  margin-left: -2px;
  margin-right: -2px;
  background: var(--bg-sidebar);
  cursor: col-resize;
  transition: background-color 0.15s;
  flex-shrink: 0;
}
#splitter:hover {
  background: var(--bg-active);
}

#board-container {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

#board-title {
  font-size: 13px;
  margin-bottom: 16px;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.04em;
}

#board {
  flex: 1;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.column {
  min-width: 240px;
  max-width: 280px;
  background: var(--bg-sidebar);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  height: fit-content;
  max-height: 100%;
}

.column-title {
  padding: 8px 12px;
  margin: 0;
  border-radius: 6px 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  background: var(--bg-hover);
}

.tasks {
  flex: 1;
  min-height: 53px;
  padding: 8px;
  overflow-y: auto;
}

.task {
  background: var(--bg-alt);
  padding: 8px 10px;
  margin-bottom: 4px;
  cursor: grab;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition:
    border-color 0.15s,
    background-color 0.15s;
}
.task:hover {
  border-color: var(--bg-active);
}

.task.done {
  opacity: 0.5;
  border-color: transparent;
}

.task-content {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
