/* Task Manager — Main Stylesheet */
:root {
  --tm-purple: #534AB7;
  --tm-purple-light: #EEEDFE;
  --tm-green: #1D9E75;
  --tm-orange: #D85A30;
  --tm-amber: #BA7517;
  --tm-gray: #6c757d;
}

body { background: #f4f3fb; font-family: 'Segoe UI', sans-serif; }

/* Navbar */
.tm-navbar { background: var(--tm-purple); box-shadow: 0 2px 8px rgba(83,74,183,.25); }
.tm-navbar .nav-link { color: rgba(255,255,255,.85) !important; font-size: 14px; }
.tm-navbar .nav-link:hover, .tm-navbar .nav-link.active { color: #fff !important; }
.tm-role-badge { background: rgba(255,255,255,.2); font-size: 10px; padding: 3px 8px; border-radius: 20px; }

/* Cards */
.tm-card { background: #fff; border: 0.5px solid #e0dff5; border-radius: 12px; padding: 1.25rem; margin-bottom: 1rem; }
.tm-card-header { font-size: 14px; font-weight: 600; color: #444; margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; }

/* Stat cards */
.stat-card { background: #fff; border: 0.5px solid #e0dff5; border-radius: 12px; padding: 1.25rem; text-align: center; }
.stat-card .stat-num { font-size: 28px; font-weight: 600; }
.stat-card .stat-lbl { font-size: 12px; color: #888; margin-top: 2px; }
.stat-card.purple .stat-num { color: var(--tm-purple); }
.stat-card.green .stat-num  { color: var(--tm-green); }
.stat-card.orange .stat-num { color: var(--tm-orange); }
.stat-card.amber .stat-num  { color: var(--tm-amber); }

/* Priority badges */
.badge-high   { background: #FAECE7; color: #993C1D; font-size: 11px; padding: 3px 10px; border-radius: 20px; }
.badge-medium { background: #FAEEDA; color: #854F0B; font-size: 11px; padding: 3px 10px; border-radius: 20px; }
.badge-low    { background: #EAF3DE; color: #3B6D11; font-size: 11px; padding: 3px 10px; border-radius: 20px; }

/* Status badges */
.badge-pending     { background: #f1f1f1; color: #555; font-size: 11px; padding: 3px 10px; border-radius: 20px; }
.badge-in_progress { background: #E6F1FB; color: #185FA5; font-size: 11px; padding: 3px 10px; border-radius: 20px; }
.badge-completed   { background: #EAF3DE; color: #3B6D11; font-size: 11px; padding: 3px 10px; border-radius: 20px; }
.badge-cancelled   { background: #FCEBEB; color: #A32D2D; font-size: 11px; padding: 3px 10px; border-radius: 20px; }

/* Task list rows */
.task-row { background: #fff; border: 0.5px solid #e8e8f0; border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; transition: box-shadow .15s; }
.task-row:hover { box-shadow: 0 2px 10px rgba(83,74,183,.1); }
.task-row .task-title { font-size: 14px; font-weight: 500; color: #333; }
.task-row .task-meta  { font-size: 12px; color: #888; margin-top: 2px; }
.task-priority-bar { width: 4px; height: 40px; border-radius: 4px; flex-shrink: 0; }
.task-priority-bar.high   { background: var(--tm-orange); }
.task-priority-bar.medium { background: var(--tm-amber); }
.task-priority-bar.low    { background: var(--tm-green); }

/* Weekly grid */
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.week-col { background: #f9f8ff; border: 0.5px solid #e0dff5; border-radius: 10px; padding: 10px; min-height: 140px; }
.week-col.today { border-color: var(--tm-purple); background: var(--tm-purple-light); }
.week-col .day-label { font-size: 11px; font-weight: 700; text-align: center; margin-bottom: 8px; color: #888; text-transform: uppercase; letter-spacing: .05em; }
.week-col.today .day-label { color: var(--tm-purple); }
.week-task { background: #fff; border: 0.5px solid #ddd; border-radius: 6px; padding: 5px 7px; font-size: 11px; color: #333; margin-bottom: 4px; border-left: 3px solid var(--tm-purple); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week-task.completed { opacity: .5; text-decoration: line-through; }
.week-task.high   { border-left-color: var(--tm-orange); }
.week-task.medium { border-left-color: var(--tm-amber); }
.week-task.low    { border-left-color: var(--tm-green); }

/* Employee avatar */
.emp-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }

/* Login page */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #534AB7 0%, #1D9E75 100%); }
.login-card { background: #fff; border-radius: 16px; padding: 2.5rem 2rem; width: 100%; max-width: 400px; box-shadow: 0 8px 40px rgba(0,0,0,.15); }
.login-logo { text-align: center; margin-bottom: 1.5rem; }
.login-logo i { font-size: 40px; color: var(--tm-purple); }
.login-logo h4 { font-weight: 700; color: #333; margin-top: .5rem; }

/* Buttons */
.btn-tm-primary { background: var(--tm-purple); border-color: var(--tm-purple); color: #fff; }
.btn-tm-primary:hover { background: #3C3489; border-color: #3C3489; color: #fff; }

/* Footer */
.tm-footer { border-top: 1px solid #eee; background: #fff; }

/* Tables */
.tm-table th { font-size: 12px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: .05em; background: #f9f8ff; }
.tm-table td { font-size: 13px; vertical-align: middle; }

/* Responsive */
@media (max-width: 768px) {
  .week-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .week-grid { grid-template-columns: repeat(2, 1fr); }
}
