/* ============================================================
   BYTEWISE MANAGEMENT CONSOLE — styles.css
   ============================================================ */

/* ---- 1. Design tokens ---- */
:root {
  --bg:           #f1f5f9;
  --surface:      #ffffff;
  --surface-2:    #f8fafc;
  --border:       #e2e8f0;
  --border-2:     #cbd5e1;
  --text-1:       #0f172a;
  --text-2:       #475569;
  --text-3:       #94a3b8;
  --primary:      #4f46e5;
  --primary-h:    #4338ca;
  --primary-lt:   #eef2ff;
  --danger:       #dc2626;
  --danger-lt:    #fef2f2;
  --success:      #16a34a;
  --success-lt:   #f0fdf4;
  --warning:      #d97706;
  --warning-lt:   #fffbeb;
  --nav-h:        56px;
  --panel-w:      500px;
  --radius:       8px;
  --radius-sm:    4px;
  --radius-lg:    12px;
  --shadow-sm:    0 1px 2px 0 rgb(0 0 0 / .06);
  --shadow:       0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
  --shadow-md:    0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --shadow-lg:    0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --shadow-xl:    0 20px 25px -5px rgb(0 0 0 / .15), 0 8px 10px -6px rgb(0 0 0 / .1);
}

/* ---- 2. Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; font-size: 16px; }

body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

input, select, textarea, button { font: inherit; }

.hidden { display: none !important; }

/* ---- 3. Login ---- */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4f46e5 100%);
  padding: 24px;
}

.login-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-xl);
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  font-weight: 700;
  font-size: 18px;
  color: var(--text-1);
  letter-spacing: -0.02em;
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}

.login-subtitle {
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 28px;
}

/* ---- 4. Top navigation ---- */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topnav {
  height: var(--nav-h);
  background: #1e1b4b;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.topnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 32px;
  flex-shrink: 0;
}

.topnav-brand .logo-mark {
  width: 30px;
  height: 30px;
  font-size: 15px;
}

.topnav-brand .logo-text {
  color: #fff;
  font-size: 16px;
}

.topnav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav-link {
  color: #a5b4fc;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  background: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-link.active { background: rgba(255,255,255,.15); color: #fff; }

.topnav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e0e7ff;
  font-size: 13px;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.role-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.role-badge.admin   { background: #fef9c3; color: #713f12; }
.role-badge.manager { background: #dbeafe; color: #1e40af; }
.role-badge.staff   { background: #dcfce7; color: #14532d; }

.btn-logout {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #e0e7ff;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: background .15s;
}
.btn-logout:hover { background: rgba(255,255,255,.2); }

/* ---- 5. Main content ---- */
.main-content {
  flex: 1;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ---- 6. Page headers ---- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-title { font-size: 22px; font-weight: 700; color: var(--text-1); }
.page-subtitle { font-size: 13px; color: var(--text-2); margin-top: 2px; }

/* ---- 7. Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, box-shadow .15s, border-color .15s, opacity .15s;
  white-space: nowrap;
  user-select: none;
}

.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary   { background: var(--primary);   color: #fff;           border-color: var(--primary); }
.btn-primary:hover:not(:disabled) { background: var(--primary-h); border-color: var(--primary-h); }

.btn-secondary { background: var(--surface);   color: var(--text-1);  border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-2); }

.btn-danger    { background: var(--danger);    color: #fff;           border-color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }

.btn-ghost     { background: transparent;      color: var(--text-2);  border-color: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text-1); }

.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 16px;
}

/* ---- 8. Forms ---- */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-1);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-error {
  background: var(--danger-lt);
  color: var(--danger);
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 13px;
  margin-bottom: 12px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}

/* Checkboxes list */
.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--primary); }

/* ---- 9. Calendar view ---- */
.calendar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.week-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  min-width: 200px;
  text-align: center;
}

.cal-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.cal-filter-bar select {
  padding: 6px 10px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--surface);
  color: var(--text-1);
  cursor: pointer;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.day-col {
  background: var(--surface);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.day-col.weekend { background: var(--surface-2); }
.day-col.today   { background: #fafafe; }

.day-header {
  padding: 10px 8px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.day-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.day-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin: 4px auto 0;
}

.today .day-num {
  background: var(--primary);
  color: #fff;
}

.day-body {
  flex: 1;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.entry-block {
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  border-left: 3px solid var(--entry-color, var(--primary));
  background: var(--entry-bg, var(--primary-lt));
  transition: transform .1s, box-shadow .1s;
  position: relative;
}

.entry-block:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.entry-company {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--entry-color, var(--primary));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-1);
  margin-top: 1px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.entry-assignees {
  display: flex;
  gap: 2px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.assignee-chip {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
}

.day-add-btn {
  margin: 4px 6px 6px;
  padding: 5px;
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-3);
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  transition: background .15s, color .15s, border-color .15s;
  flex-shrink: 0;
}

.day-add-btn:hover {
  background: var(--primary-lt);
  color: var(--primary);
  border-color: var(--primary);
}

/* ---- 10. Entry panel (slide-over) ---- */
.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.35);
  z-index: 200;
  backdrop-filter: blur(2px);
}

.entry-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--panel-w);
  max-width: 100vw;
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  z-index: 201;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform .25s ease;
}

.entry-panel.open {
  transform: translateX(0);
}

.panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}

.panel-company-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.panel-title { font-size: 18px; font-weight: 700; flex: 1; }
.panel-meta  { font-size: 13px; color: var(--text-2); margin-top: 4px; }

.panel-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.panel-tab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.panel-tab:hover { color: var(--text-1); }
.panel-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

/* Entry detail sections */
.detail-section { margin-bottom: 20px; }
.detail-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.detail-value { font-size: 14px; color: var(--text-1); }

.assignee-list { display: flex; gap: 6px; flex-wrap: wrap; }
.assignee-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px 3px 4px;
  font-size: 12px;
}

/* ---- 11. Tasks ---- */
.task-list { display: flex; flex-direction: column; gap: 6px; }

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow .1s;
}
.task-item:hover { box-shadow: var(--shadow-sm); }

.task-status-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: border-color .15s, background .15s;
}
.task-item.in-progress .task-status-btn { border-color: var(--warning); }
.task-item.done .task-status-btn { background: var(--success); border-color: var(--success); color: #fff; }

.task-content { flex: 1; min-width: 0; }
.task-title { font-size: 13px; font-weight: 500; color: var(--text-1); }
.task-item.done .task-title { text-decoration: line-through; color: var(--text-3); }
.task-desc  { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.task-footer { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.task-due   { font-size: 11px; color: var(--text-3); }
.task-due.overdue { color: var(--danger); font-weight: 600; }

.status-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 7px;
  border-radius: 999px;
}
.status-todo        { background: var(--bg);         color: var(--text-2); border: 1px solid var(--border-2); }
.status-in-progress { background: #fef3c7;            color: #92400e; }
.status-done        { background: var(--success-lt);  color: var(--success); }
.status-active      { background: var(--primary-lt);  color: var(--primary); }
.status-completed   { background: var(--success-lt);  color: var(--success); }
.status-on-hold     { background: #fef3c7;            color: #92400e; }
.status-cancelled   { background: var(--danger-lt);   color: var(--danger); }

/* ---- 12. Comments ---- */
.comment-list { display: flex; flex-direction: column; gap: 12px; }

.comment-item {
  display: flex;
  gap: 10px;
}

.comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment-bubble { flex: 1; }

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 3px;
}

.comment-author { font-size: 13px; font-weight: 600; }
.comment-time   { font-size: 11px; color: var(--text-3); }
.comment-edited { font-size: 11px; color: var(--text-3); font-style: italic; }

.comment-body {
  font-size: 13px;
  color: var(--text-1);
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 8px 10px;
}

.comment-actions { margin-top: 4px; display: flex; gap: 8px; }
.comment-action-btn {
  font-size: 11px;
  color: var(--text-3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.comment-action-btn:hover { color: var(--text-1); }

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.comment-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  font-size: 13px;
  resize: none;
  min-height: 72px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.comment-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}

/* ---- 13. Tables (Companies / Projects / Users) ---- */
.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table-filters {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.table-search {
  flex: 1;
  min-width: 180px;
  padding: 7px 11px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
}
.table-search:focus { border-color: var(--primary); }

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

.data-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--surface-2); }

.company-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

.table-actions { display: flex; gap: 6px; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
}
.empty-state-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state-text { font-size: 15px; font-weight: 500; color: var(--text-2); }
.empty-state-sub  { font-size: 13px; margin-top: 4px; }

/* ---- 14. Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.5);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}

.modal-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

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

.modal-title { font-size: 17px; font-weight: 700; }

.modal-close {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.modal-close:hover { background: var(--surface-2); color: var(--text-1); }

.modal-body   { padding: 20px; }
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Confirm dialog variant */
.confirm-message { font-size: 14px; color: var(--text-2); margin-bottom: 4px; }

/* ---- 15. Toast notifications ---- */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--text-1);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toast-in .2s ease;
  max-width: 320px;
}

.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast.info    { background: var(--primary); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- 16. My tasks view ---- */
.my-tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.my-task-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow .15s;
}
.my-task-card:hover { box-shadow: var(--shadow-md); }

.my-task-company {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.my-task-title  { font-size: 14px; font-weight: 600; }
.my-task-entry  { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.my-task-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }

/* ---- 17. Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ---- 18. Loading spinner ---- */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  gap: 12px;
  color: var(--text-2);
}
