/* ================================================================
   WorkTrack Pro — Main Stylesheet
   Professional light-theme dashboard
   ================================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── CSS Custom Properties ───────────────────────────────── */
:root {
  /* Brand */
  --primary:        #2563eb;
  --primary-dark:   #1d4ed8;
  --primary-light:  #dbeafe;

  /* Status */
  --success:        #10b981;
  --success-light:  #d1fae5;
  --warning:        #f59e0b;
  --warning-light:  #fef3c7;
  --danger:         #ef4444;
  --danger-light:   #fee2e2;
  --info:           #06b6d4;
  --info-light:     #cffafe;
  --orange-light:   #fff7ed;
  --orange-border:  #fed7aa;

  /* Sidebar */
  --sidebar-bg:          #0f172a;
  --sidebar-text:        #94a3b8;
  --sidebar-hover:       #1e293b;
  --sidebar-active-bg:   rgba(37,99,235,.15);
  --sidebar-active-text: #60a5fa;
  --sidebar-border:      #1e293b;
  --sidebar-width:       260px;

  /* Surface */
  --bg:          #f1f5f9;
  --card:        #ffffff;
  --text:        #0f172a;
  --text-muted:  #64748b;
  --text-light:  #94a3b8;
  --border:      #e2e8f0;
  --border-dark: #cbd5e1;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow:    0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.10), 0 4px 6px rgba(0,0,0,.05);

  /* Shape */
  --r-sm:   4px;
  --r:      8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-full: 9999px;

  /* Motion */
  --t:  all .18s ease;
  --ts: all .28s ease;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; }
body  {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: var(--t); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
button { font-family: inherit; }

/* ── App Shell ───────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 1000;
  transition: var(--ts);
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar::-webkit-scrollbar          { width: 4px; }
.sidebar::-webkit-scrollbar-track    { background: transparent; }
.sidebar::-webkit-scrollbar-thumb    { background: #334155; border-radius: var(--r-full); }

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}
.logo-icon {
  width: 38px; height: 38px;
  background: var(--primary);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.logo-icon .material-icons { font-size: 20px; }
.logo-text    { color: #f1f5f9; font-size: 15px; font-weight: 700; letter-spacing: -.3px; }
.logo-version { color: var(--sidebar-text); font-size: 11px; }

.sidebar-nav { padding: 12px 0; flex: 1; }
.nav-section-title {
  color: #475569; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 14px 20px 5px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  color: var(--sidebar-text); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: var(--t);
  border-left: 3px solid transparent;
}
.nav-item:hover  { background: var(--sidebar-hover); color: #e2e8f0; }
.nav-item.active { background: var(--sidebar-active-bg); color: var(--sidebar-active-text); border-left-color: var(--primary); }
.nav-icon { font-size: 20px; flex-shrink: 0; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}
.sidebar-user { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 34px; height: 34px;
  background: var(--primary); border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.user-name { color: #f1f5f9; font-size: 13px; font-weight: 600; }
.user-role { color: var(--sidebar-text); font-size: 11px; }

.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 999;
}
.sidebar-overlay.active { display: block; }

/* ── Language toggle ─────────────────────────────────────── */
.lang-toggle-wrap {
  padding: 4px 20px 12px;
  flex-shrink: 0;
}
.lang-toggle-btn {
  width: 100%;
  padding: 7px 0;
  background: var(--sidebar-hover);
  border: 1px solid rgba(255,255,255,.1);
  color: #94a3b8;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: var(--t);
  font-family: inherit;
  text-transform: uppercase;
}
.lang-toggle-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Main Content ────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1; min-height: 100vh; transition: var(--ts);
}

.page-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  position: sticky; top: 0; z-index: 100;
}
.page-header-left  { display: flex; align-items: center; gap: 12px; }
.page-header-right { display: flex; align-items: center; gap: 10px; }

.sidebar-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 6px; color: var(--text);
  border-radius: var(--r); transition: var(--t);
}
.sidebar-toggle:hover { background: var(--bg); }
.sidebar-toggle .material-icons { font-size: 24px; }

.page-title   { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -.3px; }
.breadcrumb   { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

.page-content { padding: 24px 28px; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--card); border-radius: var(--r-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden;
}
.card-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-title  { font-size: 15px; font-weight: 600; color: var(--text); }
.card-body   { padding: 20px; }

/* ── Stats Grid ──────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--card); border-radius: var(--r-lg);
  border: 1px solid var(--border); padding: 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow); transition: var(--t); cursor: default;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-icon {
  width: 50px; height: 50px; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.stat-icon .material-icons { font-size: 24px; }
.si-blue   { background: var(--primary-light); color: var(--primary); }
.si-green  { background: var(--success-light); color: var(--success); }
.si-yellow { background: var(--warning-light); color: var(--warning); }
.si-red    { background: var(--danger-light);  color: var(--danger); }
.si-purple { background: #ede9fe; color: #7c3aed; }

.stat-value { font-size: 30px; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--r);
  font-size: 14px; font-weight: 500;
  cursor: pointer; border: 1px solid transparent;
  transition: var(--t); white-space: nowrap;
  font-family: inherit; line-height: 1.5;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .material-icons { font-size: 17px; }

.btn-primary        { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover:not(:disabled)        { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-secondary      { background: #f1f5f9; color: var(--text); border-color: var(--border); }
.btn-secondary:hover:not(:disabled)      { background: #e2e8f0; color: var(--text); }
.btn-success        { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover:not(:disabled)        { background: #059669; border-color: #059669; color: #fff; }
.btn-warning        { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-warning:hover:not(:disabled)        { background: #d97706; border-color: #d97706; color: #fff; }
.btn-danger         { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover:not(:disabled)         { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn-outline-primary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover:not(:disabled){ background: var(--primary-light); }
.btn-outline-danger  { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-outline-danger:hover:not(:disabled) { background: var(--danger-light); }

.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-sm .material-icons { font-size: 15px; }
.btn-lg { padding: 11px 22px; font-size: 15px; }
.btn-icon { padding: 7px; }
.btn-icon .material-icons { font-size: 20px; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text); margin-bottom: 6px;
}
.form-control {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: var(--r);
  font-size: 14px; color: var(--text); background: var(--card);
  transition: var(--t); font-family: inherit; line-height: 1.5;
}
.form-control:focus          { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-control::placeholder   { color: var(--text-light); }
.form-control:disabled       { background: #f8fafc; color: var(--text-muted); cursor: not-allowed; }
select.form-control          { cursor: pointer; }
textarea.form-control        { resize: vertical; min-height: 80px; }
.form-row                    { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3                  { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-hint                   { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ── Tables ──────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }
table          { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  background: #f8fafc; padding: 11px 16px; text-align: left;
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
tbody td          { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover    { background: #f8fafc; }
tbody tr.row-orange          { background: var(--orange-light); }
tbody tr.row-orange:hover    { background: #ffedd5; }
.td-actions { display: flex; gap: 6px; }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.badge-success   { background: var(--success-light); color: #065f46; }
.badge-warning   { background: var(--warning-light); color: #92400e; }
.badge-danger    { background: var(--danger-light);  color: #991b1b; }
.badge-info      { background: var(--info-light);    color: #0e7490; }
.badge-primary   { background: var(--primary-light); color: #1e40af; }
.badge-secondary { background: #f1f5f9; color: var(--text-muted); }
.badge-orange    { background: var(--orange-light);  color: #9a3412; border: 1px solid var(--orange-border); }

/* ── Progress ────────────────────────────────────────────── */
.progress {
  height: 6px; background: var(--border); border-radius: var(--r-full); overflow: hidden;
}
.progress-bar {
  height: 100%; border-radius: var(--r-full); transition: width .5s ease;
}
.pb-green  { background: var(--success); }
.pb-yellow { background: var(--warning); }
.pb-red    { background: var(--danger); }
.pb-blue   { background: var(--primary); }

/* ── Project Cards ───────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--card); border-radius: var(--r-lg);
  border: 1px solid var(--border); padding: 20px;
  cursor: pointer; transition: var(--t); box-shadow: var(--shadow);
}
.project-card:hover       { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-dark); }
.project-card.low-hours   { border-color: var(--orange-border); background: linear-gradient(135deg,#fff,#fff7ed); }
.project-card.consulting  { border-color: #c7d2fe; background: linear-gradient(135deg,#fff,#f0f4ff); }

.pc-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.pc-name   { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.pc-client { font-size: 13px; color: var(--text-muted); }
.pc-hours  { text-align: right; flex-shrink: 0; }
.pc-hours-val { font-size: 22px; font-weight: 700; line-height: 1; }
.pc-hours-lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }

.pc-footer {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--text-muted);
}

/* ── Toolbar ─────────────────────────────────────────────── */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.search-wrap { position: relative; flex: 1; max-width: 360px; }
.search-wrap .material-icons {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 18px; pointer-events: none;
}
.search-wrap input { padding-left: 36px; }
.filter-select     { max-width: 200px; }

/* ── Project Detail ──────────────────────────────────────── */
.detail-header {
  background: var(--card); border-radius: var(--r-lg);
  border: 1px solid var(--border); padding: 24px;
  margin-bottom: 24px; box-shadow: var(--shadow);
}
.detail-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.detail-title { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.detail-meta  { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.meta-item    { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-muted); }
.meta-item .material-icons { font-size: 15px; }
.meta-item strong { color: var(--text); }

.hours-row    { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.hb-value     { font-size: 30px; font-weight: 700; line-height: 1; }
.hb-label     { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.hb-value.c-blue    { color: var(--primary); }
.hb-value.c-green   { color: var(--success); }
.hb-value.c-yellow  { color: var(--warning); }
.hb-value.c-red     { color: var(--danger); }
.hb-value.c-gray    { color: var(--text-muted); }

.detail-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }

/* ── Timer Page ──────────────────────────────────────────── */
.timer-wrap { max-width: 680px; margin: 0 auto; }
.timer-card {
  background: var(--card); border-radius: var(--r-xl);
  border: 1px solid var(--border); padding: 40px 36px;
  box-shadow: var(--shadow-md); text-align: center;
}
.timer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.timer-project { flex: 1; max-width: 340px; text-align: left; }
.timer-datetime { text-align: right; }
.timer-date-str { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.timer-time-str { font-size: 18px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

.timer-display {
  font-size: 80px; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums; letter-spacing: -3px;
  margin: 8px 0 28px; line-height: 1; transition: color .3s;
}
.timer-display.running { color: var(--primary); }
.timer-display.paused  { color: var(--warning); }

.timer-status-label {
  font-size: 13px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-light); margin-bottom: 28px;
}

.timer-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-timer {
  padding: 13px 28px; font-size: 15px; font-weight: 600;
  border-radius: var(--r-lg); display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; border: 2px solid transparent; transition: var(--t); font-family: inherit;
}
.btn-timer .material-icons  { font-size: 20px; }
.btn-timer-start  { background: var(--success); color: #fff; border-color: var(--success); }
.btn-timer-start:hover   { background: #059669; border-color: #059669; }
.btn-timer-pause  { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-timer-pause:hover   { background: #d97706; border-color: #d97706; }
.btn-timer-stop   { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-timer-stop:hover    { background: #dc2626; border-color: #dc2626; }
.btn-timer:disabled      { opacity: .4; cursor: not-allowed; }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--card); border-radius: var(--r-xl);
  width: 100%; max-width: 660px; max-height: 90vh;
  overflow-y: auto; box-shadow: var(--shadow-lg);
  transform: scale(.96) translateY(12px); transition: transform .2s;
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-header {
  padding: 18px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--card); z-index: 1;
}
.modal-title { font-size: 16px; font-weight: 700; color: var(--text); }
.modal-close {
  background: none; border: none; cursor: pointer; padding: 4px;
  border-radius: var(--r); color: var(--text-muted); transition: var(--t);
  display: flex; align-items: center;
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-close .material-icons { font-size: 20px; }
.modal-body   { padding: 24px; }
.modal-footer {
  padding: 14px 24px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
}

/* ── Alerts  ─────────────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--r); font-size: 14px;
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.alert .material-icons { font-size: 18px; flex-shrink: 0; }
.alert-warning { background: var(--warning-light); color: #92400e; border: 1px solid #fcd34d; }
.alert-danger  { background: var(--danger-light);  color: #991b1b; border: 1px solid #fca5a5; }
.alert-success { background: var(--success-light); color: #065f46; border: 1px solid #6ee7b7; }
.alert-info    { background: var(--info-light);    color: #0e7490; border: 1px solid #67e8f9; }

/* ── Toasts ──────────────────────────────────────────────── */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  color: #fff; padding: 12px 16px; border-radius: var(--r);
  font-size: 14px; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg); min-width: 260px; max-width: 360px;
  animation: toastIn .25s ease;
}
.toast .material-icons { font-size: 18px; flex-shrink: 0; }
.toast-success { background: var(--success); }
.toast-error   { background: var(--danger); }
.toast-warning { background: var(--warning); }
.toast-info    { background: var(--primary); }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }

/* ── Empty State ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .material-icons { font-size: 48px; color: var(--border-dark); display: block; margin-bottom: 12px; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-state p  { font-size: 14px; max-width: 300px; margin: 0 auto 16px; }

/* ── Section Divider ─────────────────────────────────────── */
.section-title {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .6px; color: var(--text-muted); margin-bottom: 14px;
}

/* ── Info rows ───────────────────────────────────────────── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.info-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 3px; }
.info-value { font-size: 14px; color: var(--text); font-weight: 500; }

/* ── Dashboard activity ──────────────────────────────────── */
.activity-list { list-style: none; }
.activity-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0; margin-top: 6px;
}
.activity-text { font-size: 13px; color: var(--text); }
.activity-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── Utility ─────────────────────────────────────────────── */
.d-flex  { display: flex; }
.ai-c    { align-items: center; }
.jc-sb   { justify-content: space-between; }
.gap-8   { gap: 8px; }
.gap-12  { gap: 12px; }
.gap-16  { gap: 16px; }
.flex-1  { flex: 1; }
.text-muted   { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger  { color: var(--danger); }
.fw-600  { font-weight: 600; }
.fw-700  { font-weight: 700; }
.fs-12   { font-size: 12px; }
.fs-13   { font-size: 13px; }
.fs-14   { font-size: 14px; }
.mt-8    { margin-top: 8px; }
.mt-16   { margin-top: 16px; }
.mt-24   { margin-top: 24px; }
.mb-8    { margin-bottom: 8px; }
.mb-16   { margin-bottom: 16px; }
.mb-24   { margin-bottom: 24px; }
.w-100   { width: 100%; }
.text-right { text-align: right; }

/* ── Print report page ───────────────────────────────────── */
.print-page { max-width: 860px; margin: 0 auto; padding: 40px 20px; }
.print-page h1 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.print-page .print-meta { color: var(--text-muted); font-size: 13px; margin-bottom: 30px; }
@media print {
  .page-header, .sidebar, .sidebar-overlay, .no-print { display: none !important; }
  .main-content { margin-left: 0 !important; }
  body { background: #fff; }
  .page-content { padding: 0; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sidebar          { transform: translateX(-100%); }
  .sidebar.open     { transform: translateX(0); }
  .main-content     { margin-left: 0 !important; }
  .sidebar-toggle   { display: flex; }
}

@media (max-width: 768px) {
  .page-content     { padding: 16px; }
  .page-header      { padding: 12px 16px; }
  .stats-grid       { grid-template-columns: repeat(2,1fr); }
  .projects-grid    { grid-template-columns: 1fr; }
  .form-row         { grid-template-columns: 1fr; }
  .form-row-3       { grid-template-columns: 1fr; }
  .timer-card       { padding: 24px 16px; }
  .timer-display    { font-size: 56px; letter-spacing: -2px; }
  .detail-actions   { flex-direction: row; flex-wrap: wrap; }
  .hours-row        { gap: 20px; }
  .info-grid        { grid-template-columns: 1fr; }
  .modal            { max-width: 100%; }
  .timer-top        { flex-direction: column; }
  .timer-datetime   { text-align: left; }
}

@media (max-width: 480px) {
  .stats-grid      { grid-template-columns: 1fr; }
  .timer-display   { font-size: 44px; }
  .btn-timer       { padding: 11px 18px; font-size: 14px; }
  .page-title      { font-size: 16px; }
}
