/* new-task.css — styles for the New Task modal */

.nt-modal { }

.nt-breadcrumb {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--ink-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.nt-mode-toggle {
  display: inline-flex;
  background: #f5f6f8; border-radius: 6px; padding: 3px;
  gap: 2px; margin-right: 8px;
}
.nt-mode-toggle button {
  border: none; background: transparent;
  padding: 5px 10px; font: inherit; font-size: 12px; font-weight: 600;
  color: var(--ink-muted); cursor: pointer; border-radius: 4px;
}
.nt-mode-toggle button.is-active {
  background: white; color: var(--ink-strong);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* Type chips */
.nt-type-row {
  display: flex; gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.nt-type-chip {
  --nt-c: #676879;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1.5px solid #e6e9ef;
  background: white;
  border-radius: 999px;
  font: inherit; font-size: 12.5px; font-weight: 600;
  color: #676879;
  cursor: pointer; transition: all .12s;
}
.nt-type-chip:hover { border-color: var(--nt-c, #0073ea); color: var(--nt-c, #0073ea); }
.nt-type-chip.is-active {
  background: color-mix(in srgb, var(--nt-c) 10%, white);
  border-color: var(--nt-c);
  color: var(--nt-c);
}

/* Big name input */
.nt-name {
  height: 42px !important;
  font-size: 15px !important;
  font-weight: 500;
}
.nt-desc {
  height: auto !important; padding: 10px !important;
  font-size: 13px; line-height: 1.5;
  resize: vertical; min-height: 70px;
}

/* Priority chips */
.nt-prio-row {
  display: flex; gap: 4px; flex-wrap: wrap;
}
.nt-prio-chip {
  border: 1.5px solid #e6e9ef;
  background: white;
  padding: 6px 10px;
  border-radius: 6px;
  font: inherit; font-size: 12px; font-weight: 600;
  color: #676879;
  cursor: pointer;
  flex: 1; min-width: 0;
}
.nt-prio-chip:hover { border-color: #0073ea; }
.nt-prio-chip.critical.is-active { background: #e2445c; color: white; border-color: #e2445c; }
.nt-prio-chip.high.is-active     { background: #fd713d; color: white; border-color: #fd713d; }
.nt-prio-chip.medium.is-active   { background: #fdab3d; color: #3a2a00; border-color: #fdab3d; }
.nt-prio-chip.low.is-active      { background: #579bfc; color: white; border-color: #579bfc; }

/* Point chips */
.nt-points-row {
  display: flex; gap: 4px;
}
.nt-pt-chip {
  flex: 1; min-width: 0;
  border: 1.5px solid #e6e9ef;
  background: white;
  padding: 6px 0;
  border-radius: 6px;
  font: inherit; font-size: 13px; font-weight: 700;
  color: #676879;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.nt-pt-chip:hover { border-color: #0073ea; }
.nt-pt-chip.is-active {
  background: #0073ea; color: white; border-color: #0073ea;
}

/* Assignees */
.nt-assignees {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.nt-assignee {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: #f5f6f8;
  border: 1.5px solid transparent;
  cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 500;
  color: var(--ink-strong);
  position: relative;
}
.nt-assignee:hover { background: #eceef3; }
.nt-assignee.is-picked {
  background: rgba(0,115,234,.1);
  border-color: #0073ea;
  color: #0073ea;
  font-weight: 600;
}
.nt-check {
  position: absolute; top: -3px; right: -3px;
  background: #0073ea; color: white;
  border-radius: 50%;
  width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
}

/* Footer */
.nt-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-muted); font-weight: 500;
  cursor: pointer;
}
.nt-more input { accent-color: #0073ea; }

.nt-kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  background: #f5f6f8;
  border: 1px solid #e6e9ef;
  border-radius: 3px;
  padding: 1px 4px;
  font-weight: 600;
}

/* Inline "create epic" form inside the task modal's epic dropdown */
.nt-epic-create {
  display: flex; flex-direction: column; gap: 8px;
  padding: 8px 10px;
  border: 1.5px solid #d6deea;
  background: #fafbfd;
  border-radius: 8px;
}
.nt-epic-create-row {
  display: flex; align-items: center; gap: 8px;
}
.nt-epic-swatch-pick {
  width: 14px; height: 14px; border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1.5px white, 0 0 0 2.5px rgba(0,0,0,.08);
}
.nt-epic-title-input {
  flex: 1;
}
.nt-epic-color-row {
  display: flex; align-items: center; gap: 6px;
}
.nt-epic-swatch {
  width: 18px; height: 18px; border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform .12s ease, border-color .12s ease;
}
.nt-epic-swatch:hover { transform: scale(1.08); }
.nt-epic-swatch.is-active {
  border-color: #1f2a44;
  box-shadow: 0 0 0 1px white inset;
}
.nt-epic-mini-btn {
  border: 1px solid #e6e9ef;
  background: white; color: var(--ink-body);
  font: inherit; font-size: 11.5px; font-weight: 600;
  padding: 5px 10px; border-radius: 6px; cursor: pointer;
}
.nt-epic-mini-btn:hover { background: #f5f6f8; }
.nt-epic-mini-btn.is-primary {
  background: #0073ea; color: white; border-color: #0073ea;
}
.nt-epic-mini-btn.is-primary:hover { background: #005bb5; }
.nt-epic-mini-btn:disabled { opacity: .55; cursor: not-allowed; }

/* Rich-text description */
.nt-desc-label {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.nt-desc-tools { display: inline-flex; gap: 6px; }
.nt-desc-tool {
  display: inline-flex; align-items: center; gap: 4px;
  font: inherit; font-size: 11px; font-weight: 600;
  color: var(--ink-muted, #676879);
  background: white; border: 1px solid #e6e9ef;
  padding: 3px 8px; border-radius: 6px; cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.nt-desc-tool:hover {
  color: var(--ink-strong, #0f1729); background: #f0f1f4;
  border-color: #d1d5e0;
}

.nt-desc-rich {
  height: auto !important;
  min-height: 90px;
  padding: 10px 12px !important;
  font-size: 13px; line-height: 1.55;
  color: var(--ink-body, #323338);
  white-space: pre-wrap;
  outline: none;
  cursor: text;
  overflow-y: auto;
  max-height: 280px;
}
.nt-desc-rich:focus {
  border-color: #0073ea !important;
  box-shadow: 0 0 0 3px rgba(0,115,234,.12);
}
.nt-desc-rich.is-empty:empty:not(:focus)::before {
  content: attr(data-placeholder);
  color: #a3a8b6; font-style: italic;
  pointer-events: none;
}
.nt-desc-rich img,
.nt-desc-rich .nt-desc-img {
  max-width: 100%; height: auto;
  border-radius: 6px; margin: 8px 0;
  display: block;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
  border: 1px solid #e6e9ef;
}

/* Due-date picker dropdown */
.nt-due-wrap { position: relative; }
.nt-due-btn {
  display: inline-flex; align-items: center; gap: 8px;
  width: 100%; text-align: left;
  background: white; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500;
  color: var(--ink-body, #323338);
}
.nt-due-btn.is-empty .nt-due-label { color: #a3a8b6; font-style: italic; }
.nt-due-btn:hover { border-color: #d1d5e0; }
.nt-due-btn:focus { outline: none; border-color: #0073ea; box-shadow: 0 0 0 3px rgba(0,115,234,.12); }
.nt-due-label { flex: 1; min-width: 0; }
.nt-due-clear {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  color: #676879; flex: none;
  transition: background .12s, color .12s;
}
.nt-due-clear:hover { background: #fee; color: #e2445c; }

.nt-due-pop {
  position: absolute; top: calc(100% + 6px); left: 0;
  z-index: 30;
  background: white;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(16, 22, 40, .18);
  border: 1px solid #e6e9ef;
  padding: 0;
  animation: ntDuePopIn .12s ease-out;
}
@keyframes ntDuePopIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
