/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Login Screen ─────────────────────────────────────── */
.login-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  display: flex; align-items: center; justify-content: center;
  animation: loginFadeIn 0.4s ease;
}
.login-overlay.hidden { display: none; }
@keyframes loginFadeIn { from { opacity: 0; } to { opacity: 1; } }
.login-box {
  background: #fff; border-radius: 16px; padding: 3rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  text-align: center; max-width: 440px; width: 90%;
  animation: loginSlideUp 0.5s ease;
}
@keyframes loginSlideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.login-logo {
  font-size: 1.6rem; font-weight: 800; color: #0f172a;
  letter-spacing: -0.5px; margin-bottom: 0.5rem;
}
.login-subtitle {
  color: #64748b; font-size: 0.9rem; margin-bottom: 2rem;
}
.login-buttons {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.login-btn {
  display: block; width: 100%; padding: 0.85rem 1rem;
  background: #f8f9fb; border: 1px solid #e2e8f0; border-radius: 10px;
  font-family: inherit; font-size: 1rem; font-weight: 500;
  color: #1e293b; cursor: pointer; text-align: left;
  transition: all 0.15s ease;
}
.login-btn:hover {
  background: #ea580c; color: #fff; border-color: #ea580c;
}
.login-btn .login-email {
  font-size: 0.75rem; color: #94a3b8; display: block; margin-top: 2px;
}
.login-btn:hover .login-email { color: rgba(255,255,255,.7); }
html { font-size: 15px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f8f9fb;
  color: #1e293b;
  min-height: 100vh;
}

/* ── Nav ───────────────────────────────────────────────── */
#topnav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 1.5rem; height: 56px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.nav-left { display: flex; align-items: center; gap: 1rem; }
.logo { font-weight: 800; font-size: 1.1rem; color: #f97316; margin-right: 1rem; }
.logo span { color: #1e293b; font-weight: 600; }
.nav-btn {
  padding: 6px 14px; border-radius: 8px; border: none;
  background: transparent; color: #64748b; font-size: .85rem;
  cursor: pointer; font-family: inherit; font-weight: 500;
  transition: all .15s;
}
.nav-btn:hover { background: #f1f5f9; color: #1e293b; }
.nav-btn.active { background: rgba(249,115,22,.1); color: #ea580c; }

.nav-right select {
  background: #fff; border: 1px solid #d1d5db; color: #1e293b;
  padding: 6px 12px; border-radius: 8px; font-size: .85rem;
  font-family: inherit; cursor: pointer;
}

/* ── Views ─────────────────────────────────────────────── */
.view { display: none; padding: 1.5rem 2rem; max-width: 1200px; margin: 0 auto; }
.view.active { display: block; }
.view-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.view-header h2 { font-size: 1.3rem; font-weight: 700; color: #1e293b; }
.arrow-btn {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid #d1d5db;
  background: #fff; color: #475569; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.arrow-btn:hover { background: #f1f5f9; border-color: #f97316; color: #f97316; }

/* ── Status Badge ──────────────────────────────────────── */
.status-badge {
  padding: 4px 12px; border-radius: 20px; font-size: .75rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
}
.status-badge.draft { background: #f1f5f9; color: #64748b; }
.status-badge.submitted { background: #dbeafe; color: #2563eb; }
.status-badge.approved { background: #dcfce7; color: #16a34a; }
.status-badge.synced { background: #f3e8ff; color: #9333ea; }

/* ── Timesheet Grid ────────────────────────────────────── */
.grid-wrap {
  background: #fff; border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
#timesheet-grid { width: 100%; border-collapse: collapse; }
#timesheet-grid th {
  padding: 12px 8px; font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px; color: #64748b;
  border-bottom: 2px solid #e2e8f0;
  background: #fafbfc;
}
.col-label { text-align: left; padding-left: 1rem !important; min-width: 200px; }
.col-day { text-align: center; width: 80px; }
.col-total { text-align: center; width: 80px; font-weight: 700; }
.day-date { font-size: .7rem; color: #94a3b8; font-weight: 400; }

/* Category header row */
.cat-row td {
  padding: 10px 1rem; font-weight: 700; font-size: .85rem;
  color: #ea580c; background: #fff7ed;
  border-top: 1px solid #fed7aa;
  cursor: pointer; user-select: none;
}
.cat-row:hover td { background: #ffedd5; }

/* Subtotal row */
.subtotal-row td {
  padding: 6px 8px; font-size: .75rem; color: #94a3b8;
  border-bottom: 1px solid #f1f5f9;
  font-style: italic;
}

/* Code row */
.code-row td { padding: 4px 8px; border-bottom: 1px solid #f8fafc; }
.code-row .col-label { padding-left: 2.2rem !important; font-size: .85rem; color: #475569; }

/* Flat row (R&D, SG&A) */
.flat-row td {
  padding: 8px; border-bottom: 1px solid #f1f5f9;
}
.flat-row .col-label { padding-left: 1rem !important; font-weight: 600; font-size: .85rem; color: #334155; }

/* Input cells */
.hour-input {
  width: 56px; padding: 6px 4px; text-align: center;
  background: #f8fafc; border: 1px solid #d1d5db; border-radius: 6px;
  color: #1e293b; font-size: .9rem; font-family: inherit;
  transition: all .15s;
}
.hour-input:focus {
  outline: none; border-color: #f97316;
  box-shadow: 0 0 0 2px rgba(249,115,22,.15);
  background: #fff;
}
.hour-input:disabled { background: #f1f5f9; border-color: #e2e8f0; color: #94a3b8; }
.holiday-col { background: #fef2f2 !important; }
.holiday-col .hour-input { background: #fef2f2; border-color: #fca5a5; }

/* Total row */
.total-row td {
  padding: 12px 8px; font-size: .95rem; font-weight: 700;
  border-top: 2px solid #fed7aa;
  color: #ea580c;
  background: #fffbf5;
}
.total-row .col-total { font-size: 1.1rem; }

/* Over-hours warning */
.over-hours { color: #dc2626 !important; animation: pulse .6s infinite alternate; }
@keyframes pulse { to { opacity: .5; } }

/* Row total */
.row-total { font-weight: 600; color: #334155; font-size: .9rem; }

/* ── TS Footer ─────────────────────────────────────────── */
.ts-footer { margin-top: 1rem; }
.notes-row {
  display: flex; align-items: center; gap: .8rem;
  margin-bottom: 1rem;
}
.notes-row label { font-size: .85rem; color: #64748b; white-space: nowrap; }
.notes-row input {
  flex: 1; padding: 8px 12px; background: #fff; border: 1px solid #d1d5db;
  border-radius: 8px; color: #1e293b; font-family: inherit; font-size: .85rem;
}
.notes-row input:focus { outline: none; border-color: #f97316; }

.btn-row { display: flex; gap: 1rem; justify-content: flex-end; }
.btn {
  padding: 10px 24px; border: none; border-radius: 8px;
  font-family: inherit; font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.btn-secondary { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.btn-secondary:hover { background: #e2e8f0; color: #1e293b; }
.btn-primary { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px) scale(1.02); box-shadow: 0 4px 12px rgba(249,115,22,.25); }
.btn-primary:active:not(:disabled) { transform: translateY(0) scale(0.98); box-shadow: 0 2px 4px rgba(249,115,22,.15); }
.btn-danger { background: #dc2626; color: #fff; }
.btn-sm { padding: 5px 12px; font-size: .8rem; }

/* ── Monthly View ──────────────────────────────────────── */
.monthly-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.monthly-table th {
  padding: 12px; font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px; color: #64748b;
  border-bottom: 2px solid #e2e8f0; text-align: center;
  background: #fafbfc;
}
.monthly-table th:first-child { text-align: left; padding-left: 1rem; }
.monthly-table td {
  padding: 10px 12px; text-align: center;
  border-bottom: 1px solid #f1f5f9; color: #334155;
}
.monthly-table td:first-child { text-align: left; padding-left: 1rem; }
.monthly-table tr:last-child td { border-bottom: none; font-weight: 700; color: #ea580c; }
.monthly-table .clickable { cursor: pointer; }
.monthly-table .clickable:hover td { background: #fff7ed; }

/* Compliance card */
.compliance-card {
  background: #fff; border-radius: 12px; padding: 1.5rem;
  margin-top: 1.5rem; border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.compliance-card h3 { font-size: 1rem; margin-bottom: 1rem; color: #1e293b; }
.compliance-bar {
  height: 24px; background: #f1f5f9; border-radius: 12px;
  overflow: hidden; margin: .5rem 0;
}
.compliance-fill {
  height: 100%; border-radius: 12px;
  transition: width .5s ease;
}
.compliance-fill.green { background: linear-gradient(90deg, #22c55e, #16a34a); }
.compliance-fill.yellow { background: linear-gradient(90deg, #eab308, #ca8a04); }
.compliance-fill.red { background: linear-gradient(90deg, #ef4444, #dc2626); }
.compliance-stats {
  display: flex; gap: 2rem; margin-top: .8rem; font-size: .85rem; color: #64748b;
}
.compliance-stats .stat-value { font-size: 1.4rem; font-weight: 700; color: #1e293b; }

/* Time Off section in monthly */
.monthly-timeoff {
  background: #fff; border-radius: 12px; padding: 1.5rem;
  margin-top: 1rem; border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.monthly-timeoff h4 { margin-bottom: .8rem; font-size: .9rem; color: #1e293b; }
.timeoff-tag {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  font-size: .75rem; margin: 2px 4px;
}
.timeoff-tag.pto { background: #dbeafe; color: #2563eb; }
.timeoff-tag.sick { background: #fee2e2; color: #dc2626; }
.timeoff-tag.personal { background: #f3e8ff; color: #9333ea; }
.timeoff-tag.holiday { background: #fef3c7; color: #d97706; }

/* ── Manager View ──────────────────────────────────────── */
.mgr-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.mgr-table th {
  padding: 12px; font-size: .8rem; font-weight: 600;
  text-transform: uppercase; color: #64748b;
  border-bottom: 2px solid #e2e8f0; text-align: center;
  background: #fafbfc;
}
.mgr-table th:first-child { text-align: left; padding-left: 1rem; }
.mgr-table td {
  padding: 10px 12px; border-bottom: 1px solid #f1f5f9;
  text-align: center; color: #334155;
}
.mgr-table td:first-child { text-align: left; padding-left: 1rem; }

/* ── Time Off View ─────────────────────────────────────── */
.to-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1rem; }
.to-section {
  background: #fff; border-radius: 12px; padding: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.to-section h3 { margin-bottom: 1rem; font-size: 1rem; color: #1e293b; }
.to-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid #f1f5f9;
  font-size: .85rem; color: #334155;
}
.to-item:last-child { border-bottom: none; }
.to-add {
  display: flex; gap: .5rem; margin-top: 1rem; align-items: center;
}
.to-add input, .to-add select {
  padding: 6px 10px; background: #fff; border: 1px solid #d1d5db;
  border-radius: 6px; color: #1e293b; font-family: inherit; font-size: .8rem;
}
.to-add input:focus, .to-add select:focus { outline: none; border-color: #f97316; }

/* ── Generate View ─────────────────────────────────────── */
.gen-header { margin-bottom: 1.5rem; }
.gen-header h2 { margin-bottom: .4rem; }
.gen-subtitle {
  color: #64748b; font-size: .85rem;
  max-width: 700px; line-height: 1.5;
}

/* Step layout */
.gen-step {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border-radius: 12px; padding: 1.2rem 1.5rem;
  border: 1px solid #e2e8f0; margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: border-color .2s, box-shadow .2s;
}
.gen-step:hover {
  border-color: #fdba74;
  box-shadow: 0 2px 8px rgba(249,115,22,.08);
}
.gen-step-number {
  flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff; font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
  box-shadow: 0 2px 6px rgba(249,115,22,.2);
}
.gen-step-content { flex: 1; min-width: 0; }
.gen-step-content h3 { font-size: .95rem; margin-bottom: .8rem; color: #1e293b; }
.gen-step-content h4 { font-size: .85rem; margin: 1rem 0 .8rem; color: #475569; }

.gen-controls { margin-bottom: 1rem; }
.gen-control-row {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
}
.gen-control-row label { font-size: .85rem; font-weight: 600; color: #334155; }
.gen-control-row select, .gen-input-sm {
  padding: 8px 14px; background: #fff; border: 1px solid #d1d5db;
  border-radius: 8px; font-family: inherit; font-size: .9rem; color: #1e293b;
  transition: border-color .15s, box-shadow .15s;
}
.gen-input-sm { width: 70px; text-align: center; }
.gen-input-sm:focus, .gen-control-row select:focus {
  outline: none; border-color: #f97316;
  box-shadow: 0 0 0 2px rgba(249,115,22,.15);
}
.gen-hint { font-size: .75rem; color: #94a3b8; }

.gen-targets { }
.gen-project-heading { font-size: .85rem; margin: 1rem 0 .8rem; color: #475569; font-weight: 600; }
.gen-target-row {
  display: flex; align-items: center; gap: .8rem;
  padding: 8px 0; border-bottom: 1px solid #f1f5f9;
  transition: background .1s;
}
.gen-target-row:hover { background: #fafbfc; }
.gen-target-row label {
  flex: 1; font-size: .85rem; color: #475569;
}
.gen-target-row input {
  width: 80px; padding: 7px 8px; text-align: center;
  background: #f8fafc; border: 1px solid #d1d5db; border-radius: 6px;
  font-family: inherit; font-size: .9rem; color: #1e293b;
  transition: all .15s;
}
.gen-target-row input:focus {
  outline: none; border-color: #f97316;
  box-shadow: 0 0 0 2px rgba(249,115,22,.15);
  background: #fff;
}
.gen-total-row {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1rem; padding-top: .8rem; border-top: 2px solid #fed7aa;
  font-weight: 700; font-size: 1rem; color: #ea580c;
}

.gen-summary {
  background: #fff; border-radius: 12px; padding: 1rem 1.5rem;
  border: 1px solid #e2e8f0; margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.gen-summary-item {
  display: inline-block; padding: 4px 12px; border-radius: 8px;
  font-size: .8rem; font-weight: 500; margin: 2px 4px;
}
.gen-summary-item.match { background: #dcfce7; color: #16a34a; }
.gen-summary-item.mismatch { background: #fef3c7; color: #d97706; }
.gen-meta { margin-top: .5rem; font-size: .75rem; color: #94a3b8; }

/* Generate sections */
.gen-section { }
.gen-section h3 { font-size: .95rem; margin-bottom: .8rem; color: #1e293b; }

/* Chips */
.gen-chip-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.gen-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: 6px 14px; border-radius: 8px;
  font-size: .8rem; font-weight: 500;
  transition: transform .1s;
}
.gen-chip:hover { transform: translateY(-1px); }
.gen-chip-holiday { background: #fef3c7; color: #92400e; }
.gen-chip-pto { background: #dbeafe; color: #1e40af; }
.gen-chip-empty { background: #f1f5f9; color: #94a3b8; font-style: italic; }
.gen-chip-remove {
  background: none; border: none; color: inherit; font-size: 1.1rem;
  cursor: pointer; padding: 0 2px; opacity: .6;
  transition: opacity .15s;
}
.gen-chip-remove:hover { opacity: 1; }

/* PTO toggle */
.gen-pto-toggle { display: flex; gap: .5rem; }
.pto-toggle { transition: all .15s; }
.pto-toggle.active {
  background: rgba(249,115,22,.1); color: #ea580c;
  border-color: #fdba74;
}

/* Working days bar */
.gen-workdays-bar {
  font-size: .9rem; color: #334155;
  padding: .5rem 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
}
.gen-wd-minus { color: #dc2626; font-weight: 500; }
.gen-wd-result { color: #16a34a; }
.gen-wd-suggest { color: #94a3b8; font-size: .8rem; font-weight: 400; }

/* Total hours input */
.gen-total-input-row {
  display: flex; align-items: center; gap: 1rem;
  padding-bottom: 1rem; border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}
.gen-total-input-row label { font-weight: 600; font-size: .9rem; color: #334155; }
.gen-input-lg {
  width: 100px; padding: 8px 12px; text-align: center;
  background: #fff; border: 2px solid #f97316; border-radius: 8px;
  font-family: inherit; font-size: 1.1rem; font-weight: 700; color: #ea580c;
}
.gen-input-lg:focus {
  outline: none; box-shadow: 0 0 0 3px rgba(249,115,22,.2);
}

/* Balance indicators */
.gen-balance-ok { color: #16a34a; font-weight: 600; font-size: .85rem; }
.gen-balance-warn { color: #d97706; font-weight: 600; font-size: .85rem; }
.gen-balance-over { color: #dc2626; font-weight: 600; font-size: .85rem; }

/* Generate action button */
.gen-action-row {
  display: flex; justify-content: center; margin: 1.5rem 0;
}
.btn-lg {
  padding: 14px 48px; font-size: 1.05rem;
  border-radius: 10px;
}
.btn:disabled {
  opacity: .45; cursor: not-allowed;
  transform: none !important; box-shadow: none !important;
}
.btn.loading {
  position: relative; pointer-events: none;
}
.btn.loading::after {
  content: ''; position: absolute; right: 12px; top: 50%;
  width: 16px; height: 16px; margin-top: -8px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Preview section */
.gen-preview-wrap {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #e2e8f0;
  animation: fadeIn .3s ease;
}
.gen-preview-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem;
}
.gen-preview-header h3 { margin: 0; font-size: 1.1rem; }
.gen-preview-actions {
  display: flex; gap: 1rem; margin-top: 1rem; align-items: center;
}

/* Copyable table */
.gen-copyable { user-select: text; -webkit-user-select: text; }
.gen-copyable td, .gen-copyable th { cursor: text; }

/* Preview table extras */
.zero-cell { color: #d1d5db; }
.under-hours { color: #d97706 !important; }
.week-separator td {
  height: 4px; padding: 0 !important;
  background: #f1f5f9; border: none !important;
}

/* ── Confirmation Modal ───────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .15s ease;
}
.modal-box {
  background: #fff; border-radius: 16px; padding: 2rem;
  max-width: 520px; width: 90%;
  box-shadow: 0 24px 48px rgba(0,0,0,.15);
  animation: slideUp .2s ease;
}
.modal-box h3 {
  font-size: 1.15rem; font-weight: 700; color: #1e293b;
  margin-bottom: 1rem;
}
.modal-box p { font-size: .9rem; color: #475569; margin-bottom: .8rem; line-height: 1.5; }
.modal-actions {
  display: flex; gap: 1rem; justify-content: flex-end;
  margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #e2e8f0;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── Toast ─────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: -60px; left: 50%; transform: translateX(-50%);
  padding: 10px 24px; border-radius: 10px;
  background: #22c55e; color: #fff; font-weight: 600;
  transition: bottom .3s; z-index: 1000; font-size: .85rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.toast.show { bottom: 24px; }
.toast.error { background: #ef4444; }

/* ── View Transitions ─────────────────────────────────── */
.view {
  opacity: 0;
  transition: opacity 200ms ease;
}
.view.active {
  opacity: 1;
}

/* ── Skeleton Loading ─────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton-row {
  display: flex;
  gap: 12px;
  padding: 12px 1rem;
  border-bottom: 1px solid #f1f5f9;
}
.skeleton-bar {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
}
.skeleton-bar.w-wide  { flex: 3; }
.skeleton-bar.w-med   { flex: 1; }
.skeleton-bar.w-short { width: 56px; flex-shrink: 0; }
.skeleton-wrap {
  background: #fff; border-radius: 12px;
  border: 1px solid #e2e8f0; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

/* ── Table Row Hover ──────────────────────────────────── */
.code-row:hover td,
.flat-row:hover td { background: #fafbfc; }
.mgr-table tbody tr:hover td { background: #fafbfc; }
.monthly-table tbody tr:hover td { background: #fafbfc; }
.to-item:hover { background: #fafbfc; }

/* ── Empty State Enhancements ─────────────────────────── */
.empty-state {
  text-align: center; padding: 3rem; color: #94a3b8;
}
.empty-state h3 { font-size: 1.2rem; margin-bottom: .5rem; color: #64748b; }
.empty-state p { margin-bottom: 1rem; }
.empty-state .empty-link {
  color: #ea580c; text-decoration: none; font-weight: 600;
  border-bottom: 1px dashed #ea580c;
  transition: color .15s, border-color .15s;
}
.empty-state .empty-link:hover {
  color: #f97316; border-color: #f97316;
}

/* ── Button Micro-animations ──────────────────────────── */
.btn {
  transition: all .15s ease;
  transform: translateY(0) scale(1);
}
.btn:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.02);
}
.btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
  transition-duration: 50ms;
}
.nav-btn {
  transition: all .15s ease;
  transform: scale(1);
}
.nav-btn:hover {
  transform: scale(1.03);
}
.nav-btn:active {
  transform: scale(0.97);
  transition-duration: 50ms;
}
.arrow-btn {
  transition: all .15s ease;
  transform: scale(1);
}
.arrow-btn:hover {
  transform: scale(1.08);
}
.arrow-btn:active {
  transform: scale(0.95);
  transition-duration: 50ms;
}
.login-btn {
  transition: all .15s ease;
  transform: translateX(0) scale(1);
}
.login-btn:hover {
  transform: translateX(4px) scale(1.01);
}
.login-btn:active {
  transform: translateX(2px) scale(0.98);
  transition-duration: 50ms;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  #topnav { flex-direction: column; height: auto; padding: .8rem; gap: .5rem; }
  .nav-left { flex-wrap: wrap; }
  .view { padding: 1rem; }
  .to-grid { grid-template-columns: 1fr; }
  .hour-input { width: 44px; font-size: .8rem; }
  .col-day { width: 56px; }
  .gen-control-row { flex-direction: column; align-items: flex-start; }
  .gen-step { flex-direction: column; gap: .6rem; }
  .gen-step-number { width: 28px; height: 28px; font-size: .8rem; }
  .modal-box { padding: 1.5rem; }
  .btn-lg { padding: 12px 32px; font-size: .95rem; }
}
