/* tasks.css — extracted from HomeDashboard.css */

.hdb-etp-title { font-size: 11px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }

.hdb-etp-event { font-size: 13px; color: #94a3b8; margin-bottom: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hdb-etp-task {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 4px; border-radius: 8px;
}

.hdb-etp-task:hover { background: rgba(255,255,255,.04); }

.hdb-etp-task.done .hdb-etp-task-title { text-decoration: line-through; color: #475569; }

.hdb-etp-check {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(245,158,11,.5);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: all .15s;
}

.hdb-etp-check:hover { border-color: #f59e0b; background: rgba(245,158,11,.15); }

.hdb-etp-check.checked {
  background: rgba(34,197,94,.15); border-color: #22c55e;
}

.hdb-etp-check.checked::after {
  content: '';
  display: block;
  width: 5px; height: 9px;
  border: 2px solid #22c55e;
  border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.hdb-etp-task-title { flex: 1; font-size: 13px; color: #e2e8f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hdb-etp-delete {
  background: none; border: none; color: #475569; cursor: pointer;
  font-size: 14px; padding: 2px 4px; border-radius: 4px; line-height: 1;
  opacity: 0; transition: opacity .15s, color .15s;
}

.hdb-etp-task:hover .hdb-etp-delete { opacity: 1; }

.hdb-etp-delete:hover { color: #ef4444; }

.hdb-etp-add {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  width: 100%; margin-top: 8px; padding: 7px 10px;
  background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.1);
  border-radius: 8px; color: #64748b; font-size: 12px; cursor: pointer;
  transition: background .15s, color .15s; box-sizing: border-box;
}

.hdb-etp-add:hover { background: rgba(255,255,255,.08); color: #94a3b8; }

.hdb-etp-new-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 4px; border-radius: 8px;
}

.hdb-etp-task-title[contenteditable="true"] {
  outline: none; border-bottom: 1px solid #2A6659;
  white-space: normal; word-break: break-word;
  min-width: 20px;
}

.hdb-etp-circle {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid #f59e0b; background: transparent;
}

.hdb-etp-new-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #e2e8f0; font-size: 13px; padding: 0;
  min-width: 0;
}

.hdb-etp-new-input::placeholder { color: #475569; }
/* ── My Tasks widget ── */

.hdb-task-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
}

.hdb-task-item:last-child { border-bottom: none; }

.hdb-task-check {
  width: 18px; height: 18px; min-width: 18px; border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,0.2); background: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; margin-top: 1px;
}

.hdb-task-check:hover { border-color: var(--primary-color); }

.hdb-task-check.done { background: var(--primary-color); border-color: var(--primary-color); }

.hdb-task-check.done::after { content: '✓'; color: #fff; font-size: 11px; line-height: 1; }

.hdb-task-body { flex: 1; min-width: 0; }

.hdb-task-title { font-size: 13px; color: #e2e8f0; line-height: 1.4; word-break: break-word; }

.hdb-task-item.done-item .hdb-task-title { color: #64748b; text-decoration: line-through; }

.hdb-task-meta { font-size: 11px; color: #64748b; margin-top: 2px; }

.hdb-task-del {
  opacity: 0; pointer-events: none; background: none; border: none;
  cursor: pointer; color: #64748b; font-size: 13px; padding: 2px 4px;
  transition: opacity 0.15s; flex-shrink: 0;
}

.hdb-task-item:hover .hdb-task-del { opacity: 1; pointer-events: auto; }

.hdb-task-del:hover { color: #f87171; }
/* ── Task file badge (attachment icon) ── */

.hdb-task-file-badge {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px !important; color: #94a3b8;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s;
  margin-top: 2px;
}

.hdb-task-item.has-files .hdb-task-file-badge { opacity: 0.6; }

.hdb-task-item:hover .hdb-task-file-badge { opacity: 1; color: var(--primary-color); }
/* ── Task View Modal ── */

.hdb-task-view-overlay {
  position: fixed; inset: 0; z-index: 2500;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: hdb-fade-in 0.2s ease;
}

.hdb-task-view-modal {
  background: rgba(15, 17, 30, 0.88);
  backdrop-filter: blur(50px) saturate(180%);
  -webkit-backdrop-filter: blur(50px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  width: 95%; max-width: 540px;
  max-height: 85vh;
  display: flex; flex-direction: column;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.04) inset;
  position: relative;
  overflow: hidden;
  animation: hdb-slide-up 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hdb-task-view-header {
  padding: 24px 24px 0;
  display: flex; align-items: flex-start; gap: 12px;
}

.hdb-task-view-status {
  width: 22px; height: 22px; min-width: 22px; border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.2);
  background: none; margin-top: 2px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

.hdb-task-view-status.done {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.hdb-task-view-status.done::after { content: '✓'; color: #fff; font-size: 12px; }

.hdb-task-view-title {
  flex: 1; font-size: 20px; font-weight: 700; color: #fff;
  line-height: 1.3; word-break: break-word;
}

.hdb-task-view-title.done-title { color: #64748b; text-decoration: line-through; }

.hdb-task-view-close {
  width: 36px; height: 36px; min-width: 36px; min-height: 36px;
  padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05); color: #94a3b8;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; font-size: 18px; line-height: 1;
  transition: all 0.2s;
}

.hdb-task-view-close:hover { background: rgba(255,255,255,0.1); color: #fff; transform: scale(1.1); }

.hdb-task-view-body {
  padding: 16px 24px 24px;
  overflow-y: auto; flex: 1;
}

.hdb-task-view-body::-webkit-scrollbar { width: 4px; }

.hdb-task-view-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

.hdb-task-view-meta {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 16px; margin-top: 8px;
}

.hdb-task-view-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
}

.hdb-task-view-chip.overdue {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.hdb-task-view-desc {
  font-size: 14px; color: #cbd5e1; line-height: 1.6;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 14px 16px;
  margin-bottom: 16px;
  white-space: pre-wrap; word-break: break-word;
}

.hdb-task-view-files-title {
  font-size: 11px; font-weight: 700; color: #475569;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}

.hdb-task-view-files-loading {
  font-size: 13px; color: #475569; padding: 8px 0;
}

.hdb-task-view-files-empty {
  font-size: 13px; color: #334155; font-style: italic; padding: 4px 0;
}

.hdb-task-view-file {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 8px;
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer; text-decoration: none;
}

.hdb-task-view-file:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(var(--primary-rgb), 0.25);
}

.hdb-task-view-file-icon {
  font-size: 22px; flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(var(--primary-rgb), 0.1);
  display: flex; align-items: center; justify-content: center;
}

.hdb-task-view-file-info { flex: 1; min-width: 0; }

.hdb-task-view-file-name {
  font-size: 13px; font-weight: 600; color: #e2e8f0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.hdb-task-view-file-size {
  font-size: 11px; color: #475569; margin-top: 2px;
}

.hdb-task-view-file-ext {
  font-size: 10px; font-weight: 700; color: var(--primary-color);
  opacity: 0.7;
}

.hdb-task-view-img-preview {
  width: 100%; border-radius: 12px; margin-bottom: 12px;
  max-height: 280px; object-fit: cover;
  border: 1px solid rgba(255,255,255,0.08);
  display: block;
}

.hdb-task-view-actions {
  display: flex; gap: 10px; padding: 0 24px 24px;
}

.hdb-task-view-btn {
  flex: 1; padding: 11px 16px; border-radius: 14px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s;
}

.hdb-task-view-btn.primary {
  background: rgba(var(--primary-rgb), 0.85);
  color: #fff;
}

.hdb-task-view-btn.primary:hover { opacity: 0.9; transform: translateY(-1px); }

.hdb-task-view-btn.secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
}

.hdb-task-view-btn.secondary:hover { background: rgba(255,255,255,0.09); color: #e2e8f0; }

.hdb-task-view-btn.danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.hdb-task-view-btn.danger:hover { background: rgba(239, 68, 68, 0.2); }
/* Download button inside task file row */

.hdb-task-file-download-btn {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #64748b;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.hdb-task-file-download-btn .material-symbols-outlined { font-size: 17px; }

.hdb-task-file-download-btn:hover {
  background: rgba(var(--primary-rgb), 0.2);
  border-color: rgba(var(--primary-rgb), 0.4);
  color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}
/* ── Timeline: add button + empty state ── */

.hdb-task-item:hover .hdb-item-del-btn {
  display: flex;
  opacity: 1;
}
/* \u041d\u0430 \u0442\u0430\u0447-\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u0434\u0430, \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u043e\u043b\u044c\u0448\u0435 */

[data-mode="light"] .hdb-task-title { color: #0f172a !important; }

[data-mode="light"] .hdb-task-meta { color: #475569 !important; }

/* ── Напоминания ── */

.hdb-task-modal-body { display: flex; flex-direction: column; gap: 20px; }

.hdb-task-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }

.hdb-task-input-p {
background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
border-radius: 14px; padding: 12px 16px; color: #fff; font-size: 14px; outline: none;
width: 100%; box-sizing: border-box; transition: all 0.2s;
}

.hdb-task-input-p:focus { border-color: var(--primary-color); background: rgba(255,255,255,0.08); }

/* === Extracted from HDM_TaskModals (block 2) === */