/* Seven Midas Kanban — Modern Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

:root {
  --bg: #f4f5f7;
  --header-bg: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  --card-bg: #ffffff;
  --col-bg: rgba(0,0,0,0.03);
  --text: #1e1e2e;
  --text-secondary: #585a6b;
  --text-muted: #9ca3b4;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-light: #ede9fe;
  --accent-glow: rgba(124,58,237,0.15);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}

html { height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.header {
  background: var(--header-bg);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.logo {
  font-size: 17px;
  font-weight: 900;
  color: white;
  white-space: nowrap;
  letter-spacing: -0.3px;
}
.logo span { color: #a78bfa; }

.filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
}

.filters select, .filters input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  padding: 7px 12px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-family: inherit;
  min-width: 0;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.filters select:hover, .filters input:hover { background: rgba(255,255,255,0.14); }
.filters select:focus, .filters input:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.16); }
.filters select { max-width: 170px; cursor: pointer; }
.filters select option, .filters select optgroup { color: #333; background: white; }
.filters input::placeholder { color: rgba(255,255,255,0.4); }
.filters input { width: 130px; }

.btn-filter {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.btn-filter:hover { background: rgba(255,255,255,0.15); }
.btn-filter.active { background: var(--accent); border-color: var(--accent); color: white; }

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.btn-new {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 2px 8px var(--accent-glow);
}
.btn-new:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px var(--accent-glow); }

.btn-template, .btn-view {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  padding: 7px 10px;
  border-radius: var(--radius-xs);
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  line-height: 1;
}
.btn-template:hover, .btn-view:hover { background: rgba(255,255,255,0.18); }
.btn-view.active { background: var(--accent); border-color: var(--accent); color: white; }

.user-info {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  transition: var(--transition);
}
.user-info:hover { background: rgba(255,255,255,0.08); }

.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white; flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.avatar-empty { background: #555; }

/* ===== MOBILE TABS ===== */
.tabs {
  display: none;
  background: white;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.tab-btn {
  flex: 1; padding: 12px; border: none; background: none;
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  cursor: pointer; font-family: inherit;
  border-bottom: 2px solid transparent;
  text-transform: uppercase; letter-spacing: 0.5px;
  transition: var(--transition);
}
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ===== BOARD ===== */
.board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}

.column {
  background: var(--col-bg);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-width: 260px;
  min-height: 0;
  overflow: hidden;
  backdrop-filter: blur(2px);
}

.col-header {
  padding: 14px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.col-title {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-muted);
}
.col-count {
  background: var(--accent-light); color: var(--accent);
  font-size: 11px; font-weight: 800; padding: 2px 9px;
  border-radius: 20px;
}

.col-cards {
  padding: 0 8px 8px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.col-cards::-webkit-scrollbar { width: 4px; }
.col-cards::-webkit-scrollbar-track { background: transparent; }
.col-cards::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.col-cards::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== CARDS ===== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 6px;
  border-left: 3px solid #ddd;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.card:active { cursor: grabbing; transform: scale(0.98); }

.card-ghost { opacity: 0.3; border: 2px dashed var(--accent) !important; background: var(--accent-light) !important; }
.card-chosen { transform: rotate(1.5deg) scale(1.02); box-shadow: var(--shadow-lg); z-index: 50; }
.card-drag { opacity: 0; }

.card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 8px; margin-bottom: 8px;
}
.card-title { font-size: 13px; font-weight: 600; line-height: 1.5; flex: 1; color: var(--text); }

.card-menu {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 18px; padding: 0 4px; line-height: 1;
  opacity: 0; transition: opacity 0.15s;
}
.card:hover .card-menu { opacity: 1; }

.card-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.card-progress-bar { flex: 1; height: 4px; background: var(--border-light); border-radius: 4px; overflow: hidden; }
.card-progress-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.card-progress-text { font-size: 10px; color: var(--text-muted); font-weight: 700; white-space: nowrap; }

.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }

.tag {
  font-size: 10px; font-weight: 600; padding: 3px 8px;
  border-radius: 20px; white-space: nowrap;
}
.tag-cat { background: var(--border-light); color: var(--text-muted); }

.card-bottom { display: flex; align-items: center; justify-content: space-between; }

.card-due { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.card-due.overdue {
  color: var(--danger); font-weight: 700;
  background: #fef2f2; padding: 2px 8px; border-radius: 20px;
}

/* ===== DETAIL PANEL ===== */
.detail-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 100;
  backdrop-filter: blur(4px);
}
.detail-overlay.open { display: block; }

.detail-panel {
  display: none; position: fixed; top: 0; right: 0;
  width: 580px; max-width: 100%; height: 100vh;
  background: white; z-index: 101;
  box-shadow: -12px 0 60px rgba(0,0,0,0.12);
  overflow-y: auto; overflow-x: hidden;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.detail-panel.open { display: block; transform: translateX(0); }

.dp-header {
  padding: 20px 24px 14px;
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 1px solid var(--border-light);
  position: sticky; top: 0; background: white; z-index: 5;
}
.dp-header h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.dp-header-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dp-pri { font-size: 12px; font-weight: 700; }
.dp-close {
  background: var(--border-light); border: none; font-size: 20px; color: var(--text-muted);
  cursor: pointer; line-height: 1; padding: 4px 8px; border-radius: var(--radius-xs);
  transition: var(--transition);
}
.dp-close:hover { background: var(--border); color: var(--text); }

.dp-title-wrap { padding: 16px 24px 0; }
.dp-title {
  font-size: 20px; font-weight: 800; line-height: 1.4; letter-spacing: -0.3px;
  outline: none; border-bottom: 2px solid transparent;
  padding: 4px 0; transition: border-color 0.2s; min-height: 32px;
}
.dp-title:focus { border-bottom-color: var(--accent); }

.dp-status-bar {
  display: flex; gap: 6px; padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
}
.dp-status-btn {
  flex: 1; padding: 10px 4px; border: 1px solid var(--border); border-radius: 20px;
  background: white; font-size: 11px; font-weight: 700; cursor: pointer;
  color: var(--text-muted); font-family: inherit; transition: var(--transition);
  text-transform: uppercase; letter-spacing: 0.3px;
}
.dp-status-btn:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent-light); }
.dp-status-btn.active { background: var(--accent); color: white; border-color: var(--accent); box-shadow: 0 2px 8px var(--accent-glow); }

.dp-body { padding: 20px 24px 100px; }

.dp-section { margin-bottom: 28px; }
.dp-section-header {
  font-size: 11px; font-weight: 800; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.dp-icon { font-size: 15px; }

.dp-desc {
  min-height: 80px; padding: 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; line-height: 1.7;
  outline: none; color: var(--text); transition: var(--transition);
  font-family: inherit;
}
.dp-desc:hover { border-color: #d1d5db; }
.dp-desc:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.dp-desc:empty::before {
  content: attr(data-placeholder); color: var(--text-muted); font-style: italic;
}

.dp-details {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 28px; padding: 16px;
  background: var(--border-light); border-radius: var(--radius);
}
.dp-detail-label {
  display: block; font-size: 10px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}
.dp-inline-select, .dp-inline-input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: var(--radius-xs); font-size: 13px; font-family: inherit;
  color: var(--text); background: white; cursor: pointer; transition: var(--transition);
}
.dp-inline-select:focus, .dp-inline-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.dp-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding: 14px 0; border-top: 1px solid var(--border-light);
  font-size: 11px; color: var(--text-muted);
}

.dp-footer {
  padding: 14px 24px 20px; display: flex; gap: 8px; justify-content: flex-end;
  border-top: 1px solid var(--border-light);
  position: sticky; bottom: 0; background: white; z-index: 5;
}

/* Shared buttons */
.btn-save {
  background: var(--accent); color: white; border: none; padding: 10px 28px;
  border-radius: 20px; font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: var(--transition);
  box-shadow: 0 2px 8px var(--accent-glow);
}
.btn-save:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-cancel {
  background: var(--border-light); color: var(--text-secondary); border: none;
  padding: 10px 20px; border-radius: 20px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: var(--transition);
}
.btn-cancel:hover { background: var(--border); }
.btn-delete {
  background: none; color: var(--danger); border: 1px solid var(--danger);
  padding: 10px 16px; border-radius: 20px; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; margin-right: auto; transition: var(--transition);
}
.btn-delete:hover { background: var(--danger); color: white; }
.btn-duplicate {
  background: none; color: var(--accent); border: 1px solid var(--accent);
  padding: 10px 16px; border-radius: 20px; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: var(--transition);
}
.btn-duplicate:hover { background: var(--accent); color: white; }

/* Form inside panel */
.dp-form { padding: 20px 24px; }
.dp-field { margin-bottom: 16px; }
.dp-field label {
  display: block; font-size: 11px; font-weight: 700; color: var(--text-muted);
  margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px;
}
.dp-field input, .dp-field select, .dp-field textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; color: var(--text);
  transition: var(--transition);
}
.dp-field input:focus, .dp-field select:focus, .dp-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.dp-field textarea { resize: vertical; min-height: 70px; }
.dp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dp-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; }

/* Template list */
.template-list { display: flex; flex-direction: column; gap: 10px; }
.template-card {
  padding: 18px; border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: var(--transition);
}
.template-card:hover { border-color: var(--accent); background: var(--accent-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.template-name { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.template-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; font-size: 12px; color: var(--text-muted); }
.template-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ===== CHECKLIST ===== */
.cl-count { font-size: 11px; font-weight: 600; color: var(--accent); margin-left: 4px; background: var(--accent-light); padding: 1px 8px; border-radius: 20px; }
.cl-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cl-progress-bar { flex: 1; height: 6px; background: var(--border-light); border-radius: 6px; overflow: hidden; }
.cl-progress-fill { height: 100%; background: var(--accent); border-radius: 6px; transition: width 0.4s ease; }
.cl-progress span { font-size: 12px; color: var(--text-muted); font-weight: 700; min-width: 32px; }

.cl-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 8px;
  border-radius: var(--radius-xs); transition: var(--transition);
  margin-bottom: 2px;
}
.cl-item:hover { background: var(--border-light); }
.cl-check {
  width: 18px; height: 18px; cursor: pointer; accent-color: var(--accent); flex-shrink: 0;
  border-radius: 4px;
}
.cl-text { font-size: 14px; flex: 1; line-height: 1.4; }
.cl-text.done { text-decoration: line-through; color: var(--text-muted); }
.cl-del {
  background: none; border: none; color: #ccc; font-size: 16px; cursor: pointer;
  opacity: 0; transition: opacity 0.15s; padding: 0 4px;
}
.cl-item:hover .cl-del { opacity: 1; }
.cl-del:hover { color: var(--danger); }

.cl-add { display: flex; gap: 6px; margin-top: 8px; }
.cl-input {
  flex: 1; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-xs); font-size: 13px; font-family: inherit;
  color: var(--text); transition: var(--transition);
}
.cl-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.cl-add-btn, .lk-add-btn {
  background: var(--accent); color: white; border: none; width: 36px; height: 36px;
  border-radius: 50%; font-size: 20px; cursor: pointer; font-weight: 700;
  transition: var(--transition); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px var(--accent-glow); flex-shrink: 0;
}
.cl-add-btn:hover, .lk-add-btn:hover { background: var(--accent-hover); transform: scale(1.1); }

/* ===== LINKS ===== */
.lk-item {
  display: flex; align-items: center; gap: 8px; padding: 8px;
  border-radius: var(--radius-xs); transition: var(--transition);
}
.lk-item:hover { background: var(--border-light); }
.lk-link {
  flex: 1; font-size: 13px; color: var(--accent); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500;
}
.lk-link:hover { text-decoration: underline; }
.lk-del {
  background: none; border: none; color: #ccc; font-size: 14px; cursor: pointer;
  opacity: 0; transition: opacity 0.15s;
}
.lk-item:hover .lk-del { opacity: 1; }
.lk-del:hover { color: var(--danger); }
.lk-add { display: flex; gap: 6px; margin-top: 8px; }
.lk-input {
  flex: 1; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-xs); font-size: 13px; font-family: inherit;
  color: var(--text); transition: var(--transition);
}
.lk-label-input { max-width: 120px; }
.lk-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

/* ===== COMMENTS ===== */
.cm-item { padding: 14px 12px; border-radius: var(--radius-sm); margin-bottom: 4px; }
.cm-item:hover { background: var(--border-light); }
.cm-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px;
}
.avatar-sm {
  width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 10px; font-weight: 700; color: white; flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.cm-time { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.cm-text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; padding-left: 32px; }
.cm-add { margin-top: 12px; }
.cm-input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px; font-family: inherit;
  color: var(--text); resize: vertical; min-height: 50px; transition: var(--transition);
}
.cm-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.cm-add-btn {
  background: var(--accent); color: white; border: none; padding: 8px 20px;
  border-radius: 20px; font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: inherit; margin-top: 8px; float: right; transition: var(--transition);
  box-shadow: 0 2px 6px var(--accent-glow);
}
.cm-add-btn:hover { background: var(--accent-hover); }
.cm-new { animation: fadeInUp 0.3s ease; background: var(--accent-light); border-radius: var(--radius-sm); padding: 14px 12px !important; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== USER PICKER ===== */
.user-picker {
  display: none; position: fixed; inset: 0;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  z-index: 200; align-items: center; justify-content: center; flex-direction: column;
}
.user-picker h2 { color: white; font-size: 24px; margin-bottom: 32px; font-weight: 800; letter-spacing: -0.5px; }
.user-list { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.user-btn {
  background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.1);
  color: white; padding: 18px 32px; border-radius: 16px;
  font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; gap: 14px;
  transition: var(--transition); backdrop-filter: blur(4px);
}
.user-btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }

.avatar-lg {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ===== LOADING ===== */
.loading {
  display: none; position: fixed; inset: 0;
  background: var(--bg); z-index: 150;
  align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-muted); font-weight: 600;
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-bottom: 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== CALENDAR VIEW ===== */
.calendar-view { flex: 1; overflow-y: auto; padding: 16px; }

.cal-header-nav {
  display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px;
}
.cal-month-label { font-size: 18px; font-weight: 800; min-width: 200px; text-align: center; letter-spacing: -0.3px; }
.cal-nav-btn {
  background: white; border: 1px solid var(--border); width: 36px; height: 36px;
  border-radius: 50%; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.cal-nav-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }

.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.cal-day-header {
  background: var(--text); color: white; padding: 10px 4px;
  font-size: 11px; font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: 0.5px;
}
.cal-cell {
  background: white; min-height: 100px; padding: 8px;
  display: flex; flex-direction: column; gap: 3px; transition: var(--transition);
}
.cal-cell:hover { background: #fafafa; }
.cal-cell-empty { background: #fafafa; }
.cal-today { background: var(--accent-light) !important; }
.cal-day-num { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; }
.cal-today .cal-day-num { color: var(--accent); }

.cal-card {
  display: flex; align-items: center; gap: 4px; padding: 3px 8px;
  border-radius: 20px; cursor: pointer; transition: var(--transition);
  background: var(--border-light);
}
.cal-card:hover { background: var(--accent); color: white; }
.cal-card-overdue { background: #fef2f2; }
.cal-card-overdue:hover { background: var(--danger); color: white; }
.cal-card-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.cal-card-title { font-size: 10px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cal-no-date {
  margin-top: 16px; background: white; border-radius: var(--radius);
  border: 1px solid var(--border); padding: 14px 18px;
}
.cal-no-date-header {
  font-size: 11px; font-weight: 800; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px;
}
.cal-no-date-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* ===== DASHBOARD VIEW ===== */
.dashboard-view { flex: 1; overflow-y: auto; padding: 16px; }
.dash-container { max-width: 1100px; margin: 0 auto; }

.dash-status-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px; }
.dash-stat-card {
  background: white; border-radius: var(--radius); padding: 22px 16px;
  text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition);
  border: 1px solid var(--border-light);
}
.dash-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dash-stat-overdue { border: 2px solid var(--danger); background: #fef2f2; }
.dash-stat-num { font-size: 36px; font-weight: 900; color: var(--text); letter-spacing: -1px; }
.dash-stat-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 6px; }

.dash-charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.dash-chart-card {
  background: white; border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
}
.dash-chart-title {
  font-size: 12px; font-weight: 800; margin-bottom: 18px;
  text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted);
}

.dash-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dash-bar-label {
  font-size: 12px; font-weight: 500; min-width: 110px; max-width: 110px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary);
}
.dash-bar-track { flex: 1; height: 22px; background: var(--border-light); border-radius: 20px; overflow: hidden; }
.dash-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #a78bfa); border-radius: 20px; transition: width 0.4s ease; }
.dash-bar-val { font-size: 12px; font-weight: 800; min-width: 24px; text-align: right; color: var(--text); }

.dash-cat-grid { display: flex; align-items: flex-end; gap: 12px; justify-content: center; min-height: 120px; padding-top: 16px; }
.dash-cat-item { text-align: center; flex: 1; min-width: 50px; }
.dash-cat-bar { border-radius: 6px 6px 0 0; margin: 0 auto; width: 100%; max-width: 40px; transition: height 0.4s ease; }
.dash-cat-label { font-size: 9px; font-weight: 700; color: var(--text-muted); margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.3px; }
.dash-cat-val { font-size: 10px; color: var(--text-muted); font-weight: 700; }

.dash-comments-card { margin-bottom: 16px; }
.dash-comment { padding: 12px 8px; border-radius: var(--radius-xs); transition: var(--transition); }
.dash-comment:hover { background: var(--border-light); }
.dash-comment-header { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; margin-bottom: 4px; }
.dash-comment-card { font-size: 11px; color: var(--accent); font-weight: 600; }
.dash-comment-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; padding-left: 30px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header { flex-wrap: wrap; padding: 10px 12px; gap: 8px; }
  .filters { order: 3; width: 100%; }
  .filters select, .filters input { font-size: 11px; padding: 6px 8px; }
  .filters input { flex: 1; }
  .btn-new { padding: 7px 14px; font-size: 12px; }
  .user-info span:not(.avatar) { display: none; }
  .btn-view, .btn-template { padding: 7px 10px; font-size: 12px; }

  .tabs { display: flex; }
  .board { grid-template-columns: 1fr; padding: 8px; gap: 0; overflow-y: auto; }
  .column { display: none !important; min-width: 0; }
  .column.mobile-active { display: flex !important; }
  .card-menu { opacity: 1; }

  .cal-cell { min-height: 70px; padding: 4px; }
  .cal-card-title { font-size: 10px; }
  .dash-status-row { grid-template-columns: repeat(3, 1fr); }
  .dash-charts-row { grid-template-columns: 1fr; }
  .dash-bar-label { min-width: 80px; max-width: 80px; }
}

@media (max-width: 400px) {
  .dp-row { grid-template-columns: 1fr; gap: 0; }
  .dp-details { grid-template-columns: 1fr; }
  .dash-status-row { grid-template-columns: repeat(2, 1fr); }
}
