



.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}


.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.75rem 1.4rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}

.table td {
  padding: 0.85rem 1.4rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--surface2); }


.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
}

.pill-high   { background: rgba(249,65,68,0.18);   color: var(--danger); }
.pill-medium { background: rgba(249,199,79,0.18);  color: var(--warn); }
.pill-low    { background: rgba(78,204,163,0.18);  color: var(--success); }
.pill-done   { background: rgba(122,128,168,0.15); color: var(--text-muted); }


.activity-feed { padding: 0.6rem 0; }

.activity-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.75rem 1.4rem;
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 5px;
  flex-shrink: 0;
}

.activity-dot.green  { background: var(--success); }
.activity-dot.red    { background: var(--danger); }
.activity-dot.yellow { background: var(--warn); }

.activity-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.activity-text strong { color: var(--text); font-weight: 600; }
.activity-time { font-size: 0.72rem; color: var(--text-faint); margin-top: 2px; }



.tasks-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  max-width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-box:focus { border-color: var(--accent); }

.filter-group {
  display: flex;
  gap: 0.4rem;
}

.filter-pill,
.filter-pill-static {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.45rem 0.9rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-pill:hover,
.filter-pill-static:hover  { border-color: var(--accent); color: var(--text); }
.filter-pill.active,
.filter-pill-static.active { background: var(--accent); border-color: var(--accent); color: #fff; }


.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: start;
}


.task-col {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom: 2px solid var(--border);
  background: var(--surface2);
}

.col-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.col-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.col-dot.high   { background: var(--danger); }
.col-dot.medium { background: var(--warn); }
.col-dot.low    { background: var(--success); }

.col-count {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--surface3);
  color: var(--text-muted);
  padding: 1px 7px;
  border-radius: 99px;
}

.col-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 0.8rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}


.task-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  
  border-left: 3px solid transparent;
  transition: box-shadow 0.15s, transform 0.15s;
}


.task-card.priority-high   { border-left-color: var(--danger); }
.task-card.priority-medium { border-left-color: var(--warn); }
.task-card.priority-low    { border-left-color: var(--success); }

.task-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.task-card.done { opacity: 0.45; }

.task-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.task-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-faint);
}

.task-card-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.icon-btn {
  background: var(--surface2);
  border: none;
  color: var(--text-muted);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.15s;
  flex: 1;
}

.icon-btn:hover         { background: var(--surface3); color: var(--text); }
.icon-btn.danger:hover  { background: rgba(249,65,68,0.2);  color: var(--danger); }
.icon-btn.success:hover { background: rgba(78,204,163,0.2); color: var(--success); }

@media (max-width: 768px) {
  .board { grid-template-columns: 1fr; }
}



.archive-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.archive-search-bar {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border);
}

.restore-btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
}



.settings-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .settings-layout { grid-template-columns: 1fr; }
}

.settings-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.settings-nav-item {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
}

.settings-nav-item:hover  { background: var(--surface2); color: var(--text); }
.settings-nav-item.active { background: var(--surface3); color: var(--text); }

.settings-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.settings-card-header {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}

.settings-card-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.settings-card-body { padding: 1.4rem; }

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}

.settings-row:last-child { border-bottom: none; }

.settings-row-label { font-size: 0.88rem; font-weight: 600; }
.settings-row-sub   { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }


.toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--surface3);
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }


.danger-zone {
  border-color: rgba(249,65,68,0.35) !important;
}

.danger-zone .settings-card-header {
  background: rgba(249,65,68,0.08);
  border-bottom-color: rgba(249,65,68,0.25);
}
