/* Leovoid Audit Tool — Light Mode CSS */
/* Design System: Space Grotesk, Phosphor Icons, Leovoid brand colors */

:root {
  --color-base: #161616;
  --color-teal: #3abb90;
  --color-teal-light: #74ddbf;
  --color-teal-faint: #f0faf6;
  --color-orange: #ec6c21;
  --color-orange-faint: #fff5ef;
  --color-blue: #59b5f8;
  --color-blue-faint: #eff8ff;
  --color-purple: #b282f0;
  --color-purple-faint: #f6f0ff;
  --color-violet: #773dd0;
  --color-red: #e53935;
  --color-red-faint: #fef2f2;
  --color-gray: #a6a8ab;
  --color-dark-gray: #535862;
  --color-surface-mid: #424242;

  /* Light mode surfaces */
  --bg-page: #f5f5f7;
  --bg-card: #ffffff;
  --bg-sidebar: #ffffff;
  --border: #e8e8ec;
  --border-light: #f0f0f4;

  --text-primary: #161616;
  --text-secondary: #535862;
  --text-tertiary: #a6a8ab;

  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.05);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Sidebar ── */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border-light);
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--color-base);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 14px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.3px; line-height: 1.2; }
.logo-sub { font-size: 11px; color: var(--text-tertiary); font-weight: 400; }

.sidebar-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
}

.nav-item ph-icon, .nav-item [class^="ph-"] { font-size: 18px; flex-shrink: 0; }

.nav-item:hover { background: var(--bg-page); color: var(--text-primary); }

.nav-item.active {
  background: var(--color-teal-faint);
  color: var(--color-teal);
}
.nav-item.active ph-icon { color: var(--color-teal); }

.nav-item-cta {
  background: var(--color-base);
  color: #fff;
  margin-bottom: 6px;
}
.nav-item-cta:hover { background: #2a2a2a; color: #fff; }

.sidebar-bottom {
  padding: 12px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-page);
  border-radius: var(--radius-md);
  margin-top: 4px;
}

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

.user-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--text-tertiary); text-transform: capitalize; }

.logout-btn {
  color: var(--text-tertiary);
  font-size: 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s;
}
.logout-btn:hover { color: var(--color-red); }

/* ── Main Content ── */
.main-content {
  flex: 1;
  padding: 32px 40px;
  max-width: calc(100vw - 240px);
  overflow-x: hidden;
}

/* ── Page Header ── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-header-left { display: flex; flex-direction: column; gap: 4px; }
.page-eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--color-teal); text-transform: uppercase; letter-spacing: 0.8px; }
.page-title { font-size: 26px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.5px; line-height: 1.2; }
.page-subtitle { font-size: 14px; color: var(--text-secondary); margin-top: 2px; }

/* ── Flash Messages ── */
.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
}

.flash button { margin-left: auto; background: none; border: none; cursor: pointer; opacity: 0.6; display: flex; }

.flash-success { background: var(--color-teal-faint); color: #0a7a5a; border: 1px solid rgba(58,187,144,0.2); }
.flash-error { background: var(--color-red-faint); color: #b91c1c; border: 1px solid rgba(229,57,53,0.2); }
.flash-warning { background: var(--color-orange-faint); color: #b45309; border: 1px solid rgba(236,108,33,0.2); }
.flash-info { background: var(--color-blue-faint); color: #0369a1; border: 1px solid rgba(89,181,248,0.2); }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

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

.card-title { font-size: 15px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.card-body { padding: 24px; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border-light); background: #fafafa; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ── Stat Cards ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent, var(--color-teal));
  border-radius: 3px 3px 0 0;
}

.stat-label { font-size: 12px; font-weight: 500; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 30px; font-weight: 700; color: var(--text-primary); letter-spacing: -1px; line-height: 1; }
.stat-sub { font-size: 12px; color: var(--text-tertiary); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1.35;
}

.btn-primary { background: var(--color-base); color: #fff; border-color: var(--color-base); }
.btn-primary:hover { background: #2a2a2a; }

.btn-teal { background: var(--color-teal); color: #fff; border-color: var(--color-teal); }
.btn-teal:hover { background: #33a87f; }

.btn-outline { background: transparent; color: var(--text-primary); border-color: var(--border); }
.btn-outline:hover { border-color: var(--text-tertiary); background: var(--bg-page); }

.btn-danger { background: var(--color-red); color: #fff; border-color: var(--color-red); }
.btn-danger:hover { background: #c62828; }

.btn-ghost { background: transparent; color: var(--text-secondary); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-page); color: var(--text-primary); }

.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }

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

/* ── Badges / Status ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-draft { background: #f1f1f1; color: var(--text-secondary); }
.badge-pending { background: var(--color-orange-faint); color: #b45309; }
.badge-approved { background: var(--color-blue-faint); color: #0369a1; }
.badge-sent { background: var(--color-teal-faint); color: #0a7a5a; }
.badge-rejected { background: var(--color-red-faint); color: #b91c1c; }

/* ── Table ── */
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead tr { border-bottom: 1.5px solid var(--border); }
thead th { padding: 10px 16px; text-align: left; font-size: 11px; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--border-light); transition: background 0.1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-page); }
tbody td { padding: 13px 16px; color: var(--text-primary); vertical-align: middle; }
.td-muted { color: var(--text-tertiary); font-size: 13px; }
.td-mono { font-family: var(--font-mono); font-size: 12px; }

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
label .req { color: var(--color-red); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="tel"],
select,
textarea {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 9px 13px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(58,187,144,0.12);
}

input::placeholder, textarea::placeholder { color: var(--text-tertiary); }

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

select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); background-position: right 10px center; background-repeat: no-repeat; background-size: 16px; padding-right: 36px; }

.form-hint { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.form-error { font-size: 12px; color: var(--color-red); margin-top: 2px; }

/* ── Checkbox issues grid ── */
.issues-section { margin-bottom: 24px; }

.issues-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
  transition: background 0.1s;
}

.issues-section-header:hover { background: #ededf0; }

.issues-section-header .section-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-base);
  color: #fff;
  font-size: 15px;
  flex-shrink: 0;
}

.issues-section-header .section-title { font-size: 14px; font-weight: 600; color: var(--text-primary); flex: 1; }
.issues-section-header .section-count { font-size: 12px; color: var(--color-teal); font-weight: 600; }
.issues-section-header .chevron { font-size: 16px; color: var(--text-tertiary); transition: transform 0.2s; }
.issues-section-header.open .chevron { transform: rotate(180deg); }

.issues-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px 0 8px;
  display: none;
}
.issues-grid.open { display: grid; }

.issue-checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.12s;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.35;
}

.issue-checkbox:hover { border-color: var(--color-teal); color: var(--text-primary); }
.issue-checkbox.checked { border-color: var(--color-teal); background: var(--color-teal-faint); color: var(--text-primary); }

.issue-checkbox input[type="checkbox"] { display: none; }

.issue-check-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}

.issue-checkbox.checked .issue-check-box {
  background: var(--color-teal);
  border-color: var(--color-teal);
}

.issue-check-icon { display: none; color: #fff; font-size: 11px; }
.issue-checkbox.checked .issue-check-icon { display: block; }

/* ── Send mode toggle ── */
.send-mode-toggle {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.send-mode-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.15s;
}

.send-mode-option:hover { border-color: var(--color-teal-light); }
.send-mode-option.selected { border-color: var(--color-teal); background: var(--color-teal-faint); }

.send-mode-option input { display: none; }
.send-mode-title { font-size: 14px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.send-mode-desc { font-size: 12px; color: var(--text-secondary); }

/* ── Settings Tabs ── */
.settings-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
  overflow-x: auto;
}

.settings-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}

.settings-tab:hover { color: var(--text-primary); }
.settings-tab.active { color: var(--color-teal); border-bottom-color: var(--color-teal); }

.settings-panel { display: none; }
.settings-panel.active { display: block; }

/* ── Section Divider ── */
.section-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* ── Template Editor ── */
.template-editor-wrap {
  position: relative;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.template-editor {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  min-height: 320px;
  border: none;
  border-radius: 0;
  resize: vertical;
  background: #fafafa;
}

.template-editor:focus { box-shadow: none; border: none; }

.merge-tags-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  background: #f8f8fa;
  border-bottom: 1px solid var(--border);
}

.merge-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--color-violet);
  cursor: pointer;
  transition: all 0.1s;
  font-weight: 500;
}

.merge-tag:hover { background: var(--color-purple-faint); border-color: var(--color-purple); }

/* ── Preview iframe ── */
.email-preview-frame {
  width: 100%;
  height: 600px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #f4f4f4;
}

/* ── Audit detail ── */
.audit-issues-list { display: flex; flex-direction: column; gap: 12px; }

.audit-category {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.audit-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-light);
}

.audit-category-icon {
  width: 30px;
  height: 30px;
  background: var(--color-base);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  font-size: 15px;
}

.audit-category-title { font-size: 13px; font-weight: 600; color: var(--text-primary); flex: 1; }
.audit-category-count { font-size: 11px; color: var(--color-teal); font-weight: 700; }

.audit-category-items { padding: 8px 16px; }

.audit-issue-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.audit-issue-item:last-child { border-bottom: none; }

.issue-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-teal);
  flex-shrink: 0;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.pagination-links { display: flex; gap: 4px; }

.page-link {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.12s;
}

.page-link:hover { border-color: var(--color-teal); color: var(--color-teal); }
.page-link.active { background: var(--color-base); color: #fff; border-color: var(--color-base); }

/* ── Filter Bar ── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-bar input, .filter-bar select { width: auto; min-width: 180px; }

/* ── Approvals banner ── */
.approval-banner {
  background: linear-gradient(135deg, var(--color-orange-faint), #fff5f0);
  border: 1.5px solid rgba(236,108,33,0.25);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.approval-banner-icon {
  width: 40px;
  height: 40px;
  background: var(--color-orange);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.approval-banner-text { flex: 1; }
.approval-banner-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.approval-banner-desc { font-size: 13px; color: var(--text-secondary); }

/* ── Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  width: 100%;
  max-width: 420px;
  transform: translateY(8px);
  transition: transform 0.2s;
}

.modal-backdrop.open .modal { transform: translateY(0); }
.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.3px; }
.modal-body { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-tertiary);
}

.empty-state-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }
.empty-state-title { font-size: 16px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.empty-state-desc { font-size: 14px; }

/* ── Mono tag ── */
.mono-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-secondary);
}

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

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

/* ── Login Page ── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
  padding: 24px;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 40px;
  width: 100%;
  max-width: 380px;
}

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

.login-logo-mark {
  width: 44px; height: 44px;
  background: var(--color-base);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-logo-text h1 { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; color: var(--text-primary); }
.login-logo-text p { font-size: 12px; color: var(--text-tertiary); }

.login-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.4px; }
.login-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }

/* ── Tooltip ── */
[data-tip] { position: relative; }
[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-base);
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 100;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .sidebar { width: 200px; }
  .main-content { padding: 20px 24px; max-width: calc(100vw - 200px); }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .issues-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; }
  .main-content { max-width: 100%; padding: 16px; }
}

/* ── Utility ── */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-muted { color: var(--text-tertiary); }
.text-secondary { color: var(--text-secondary); }
.text-teal { color: var(--color-teal); }
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
