/* NexDesk — IT Helpdesk & Asset Management */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sidebar-w: 240px;
  --sidebar-bg: #0f172a;
  --sidebar-hover: #1e293b;
  --sidebar-active: #1d4ed8;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  --purple: #8b5cf6;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 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,.05);
}

html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; }

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

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-logo {
  width: 38px; height: 38px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; letter-spacing: -1px; color: #fff;
  flex-shrink: 0;
}
.brand-name { font-size: 16px; font-weight: 700; color: #fff; }
.brand-sub  { font-size: 11px; color: #64748b; margin-top: 1px; }

.nav-list { list-style: none; padding: 10px 0; flex: 1; }
.nav-item { }
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s, color .15s;
  border-radius: 0;
}
.nav-link:hover { background: var(--sidebar-hover); color: #fff; }
.nav-item.active .nav-link { background: var(--sidebar-active); color: #fff; }
.nav-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }

.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 14px 16px;
}
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s;
  margin-bottom: 8px;
}
.user-chip:hover { background: rgba(255,255,255,.06); }
.user-avatar {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.user-name { font-size: 13px; font-weight: 600; color: #e2e8f0; }
.user-role { font-size: 11px; color: #64748b; text-transform: capitalize; }
.btn-logout {
  width: 100%; padding: 7px 12px;
  background: transparent; border: 1px solid rgba(255,255,255,.12);
  color: #94a3b8; border-radius: var(--radius);
  font-size: 12.5px; cursor: pointer; transition: all .15s;
}
.btn-logout:hover { background: rgba(255,255,255,.06); color: #fff; }

/* ── Main Content ── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 28px 32px 60px;
  max-width: 1280px;
  width: calc(100% - var(--sidebar-w));
}

/* ── Page Header ── */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.page-header h1 { font-size: 22px; font-weight: 700; color: var(--text); }
.page-subtitle  { font-size: 13.5px; color: var(--text-muted); margin-top: 3px; }
.page-actions   { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 12px; }

/* ── Stat Cards ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card  {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.stat-card.blue::before   { background: var(--primary); }
.stat-card.green::before  { background: var(--success); }
.stat-card.orange::before { background: var(--warning); }
.stat-card.purple::before { background: var(--purple); }
.stat-card.red::before    { background: var(--danger); }
.stat-card.teal::before   { background: var(--info); }

.stat-label  { font-size: 11.5px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.stat-value  { font-size: 32px; font-weight: 800; color: var(--text); line-height: 1.1; margin: 8px 0 4px; }
.stat-trend  { font-size: 12px; color: var(--text-light); }
.stat-icon   { position: absolute; right: 16px; top: 16px; font-size: 24px; opacity: .15; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 6px; border: 1px solid transparent;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .15s; text-decoration: none; white-space: nowrap;
  line-height: 1.4;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary   { background: var(--primary);  color: #fff; border-color: var(--primary); }
.btn-primary:hover  { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: #f1f5f9; }
.btn-danger    { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #dc2626; }
.btn-success   { background: var(--success); color: #fff; border-color: var(--success); }
.btn-ghost     { background: transparent; color: var(--primary); border-color: transparent; }
.btn-ghost:hover { background: #eff6ff; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 10px 20px; font-size: 15px; }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 13.5px; color: var(--text);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  line-height: 1.5;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Search Bar ── */
.search-bar { display: flex; gap: 8px; align-items: center; }
.search-input {
  flex: 1; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 13.5px; color: var(--text);
  background: var(--surface);
  transition: border-color .15s;
}
.search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.search-label { font-size: 13px; color: var(--text-muted); }

/* ── Filter Bar ── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filter-group { display: flex; align-items: center; gap: 6px; }
.filter-group label { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.filter-group select { padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 12.5px; cursor: pointer; }

/* ── Tables ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 10px 14px; text-align: left;
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-muted);
  background: #f8fafc;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; font-size: 13.5px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #fafbfc; }
.data-table tbody tr { cursor: default; }
.data-table tbody tr.clickable { cursor: pointer; }
.data-table .col-actions { text-align: right; width: 100px; }
.table-container { overflow-x: auto; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  border-radius: 20px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px;
  white-space: nowrap;
}
/* Status */
.badge-open        { background: #dbeafe; color: #1d4ed8; }
.badge-in_progress { background: #fef3c7; color: #b45309; }
.badge-resolved    { background: #dcfce7; color: #15803d; }
.badge-closed      { background: #f1f5f9; color: #475569; }
/* Priority */
.badge-critical { background: #fee2e2; color: #b91c1c; }
.badge-high     { background: #ffedd5; color: #c2410c; }
.badge-medium   { background: #fef9c3; color: #a16207; }
.badge-low      { background: #f0fdf4; color: #15803d; }
/* Asset status */
.badge-active   { background: #dcfce7; color: #15803d; }
.badge-inactive { background: #f1f5f9; color: #475569; }
.badge-retired  { background: #fee2e2; color: #b91c1c; }
/* Role */
.badge-admin    { background: #ede9fe; color: #6d28d9; }
.badge-user     { background: #f1f5f9; color: #475569; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
  backdrop-filter: blur(2px);
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--surface);
  border-radius: 12px;
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: 16px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-muted); padding: 0 4px; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-body   { padding: 20px 24px; }
.modal-footer { padding: 14px 24px 20px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--border); }

/* ── Tabs ── */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 20px; gap: 0; }
.tab-btn {
  padding: 10px 18px; border: none; background: none; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.tab-btn:hover  { color: var(--text); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel      { display: none; }
.tab-panel.active { display: block; }

/* ── Alerts ── */
.alert { padding: 10px 14px; border-radius: 6px; font-size: 13px; margin: 10px 0; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.alert-warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

/* ── Ticket Detail Layout ── */
.ticket-detail-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; }
.ticket-comments-section { margin-top: 24px; }
.comment-thread { display: flex; flex-direction: column; gap: 12px; }
.comment-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.comment-item.internal { background: #fffbeb; border-color: #fde68a; }
.comment-author { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.comment-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.comment-author-name { font-size: 13px; font-weight: 600; }
.comment-time  { font-size: 11.5px; color: var(--text-muted); }
.comment-body  { font-size: 13.5px; line-height: 1.6; color: #334155; }
.comment-internal-badge { font-size: 10px; background: #fef3c7; color: #b45309; border: 1px solid #fde68a; padding: 1px 6px; border-radius: 4px; font-weight: 700; text-transform: uppercase; }

/* ── Ticket Sidebar ── */
.ticket-sidebar { display: flex; flex-direction: column; gap: 14px; }
.sidebar-widget  { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.sidebar-widget-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-muted); margin-bottom: 12px; }
.sidebar-field { margin-bottom: 10px; }
.sidebar-field-label { font-size: 11.5px; color: var(--text-muted); margin-bottom: 2px; }
.sidebar-field-value { font-size: 13.5px; font-weight: 600; color: var(--text); }

/* ── Asset Detail Panel ── */
.asset-panel {
  position: fixed; top: 0; right: -480px; bottom: 0; width: 480px;
  background: var(--surface);
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
  z-index: 200; overflow-y: auto;
  transition: right .25s cubic-bezier(.4,0,.2,1);
  padding: 24px;
}
.asset-panel.open { right: 0; }
.asset-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.asset-panel-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-muted); }
.asset-panel-close:hover { color: var(--text); }
.panel-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 199; display: none; }
.panel-overlay.show { display: block; }

/* ── KB Grid ── */
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.kb-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.kb-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kb-card-category { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 3px 8px; border-radius: 4px; display: inline-block; margin-bottom: 10px; }
.kb-card-title   { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.kb-card-views   { font-size: 12px; color: var(--text-muted); }
.kb-category-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.kb-filter-chip {
  padding: 5px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
  text-decoration: none; transition: all .15s; cursor: pointer;
}
.kb-filter-chip:hover, .kb-filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Kanban Board ── */
.kanban-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kanban-col { background: #f1f5f9; border-radius: var(--radius); padding: 14px; min-height: 400px; }
.kanban-col-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.kanban-col-title  { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); }
.kanban-col-count  { background: var(--border); border-radius: 10px; padding: 1px 7px; font-size: 11px; font-weight: 700; color: var(--text-muted); }
.kanban-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 8px; cursor: pointer;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
  border-left: 3px solid transparent;
}
.kanban-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.kanban-card.critical { border-left-color: var(--danger); }
.kanban-card.high     { border-left-color: var(--warning); }
.kanban-card.medium   { border-left-color: var(--primary); }
.kanban-card.low      { border-left-color: var(--success); }
.kanban-card-title    { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.35; }
.kanban-card-meta     { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ── Team Cards ── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.team-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-align: center; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.team-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.team-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; margin: 0 auto 12px; }
.team-name   { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.team-dept   { font-size: 12.5px; color: var(--text-muted); margin-bottom: 8px; }
.team-email  { font-size: 12px; color: var(--primary); text-decoration: none; display: block; word-break: break-all; }

/* ── SVG Charts ── */
.chart-container { width: 100%; overflow-x: auto; }
.chart-svg { display: block; }
.chart-bar { transition: opacity .15s; }
.chart-bar:hover { opacity: .8; }

/* ── Reports ── */
.reports-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.payroll-table-wrap { overflow-x: auto; }

/* ── Toasts ── */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  padding: 12px 18px; border-radius: var(--radius);
  font-size: 13.5px; font-weight: 600; color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s, transform .25s;
  z-index: 9999; max-width: 360px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-info    { background: var(--primary); }
.toast-success { background: var(--success); }
.toast-error   { background: var(--danger); }
.toast-warning { background: var(--warning); }

/* ── Login Page ── */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--sidebar-bg); }
.login-card { background: var(--surface); border-radius: 14px; padding: 40px 40px 32px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.login-brand { text-align: center; margin-bottom: 28px; }
.login-logo  { width: 52px; height: 52px; background: var(--primary); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -1px; margin-bottom: 12px; }
.login-title { font-size: 22px; font-weight: 800; color: var(--text); }
.login-sub   { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.login-divider { text-align: center; margin: 18px 0; font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.sso-section { background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-top: 8px; }
.sso-toggle { background: none; border: none; color: var(--primary); font-size: 13px; cursor: pointer; font-weight: 600; padding: 0; }

/* ── Misc Utilities ── */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-muted  { color: var(--text-muted); }
.text-light  { color: var(--text-light); }
.text-danger { color: var(--danger); }
.text-success{ color: var(--success); }
.text-mono   { font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace; font-size: 12.5px; }
.fw-bold     { font-weight: 700; }
.d-flex      { display: flex; }
.align-center{ align-items: center; }
.gap-2       { gap: 8px; }
.gap-3       { gap: 12px; }
.w-100       { width: 100%; }
.hidden      { display: none !important; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-state p { font-size: 15px; margin-bottom: 16px; }
.divider     { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ── View Toggle ── */
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.view-btn { padding: 6px 12px; background: var(--surface); border: none; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--text-muted); transition: all .15s; }
.view-btn.active { background: var(--primary); color: #fff; }

/* ── Dashboard Activity Feed ── */
.activity-feed { display: flex; flex-direction: column; gap: 10px; }
.activity-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: 5px; flex-shrink: 0; }
.activity-text { flex: 1; line-height: 1.5; }
.activity-time { font-size: 11px; color: var(--text-light); white-space: nowrap; }

/* ── Quick actions ── */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.quick-action-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; text-align: center; cursor: pointer; text-decoration: none; color: var(--text);
  transition: transform .15s, box-shadow .15s;
}
.quick-action-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.quick-action-icon { font-size: 28px; margin-bottom: 8px; }
.quick-action-label { font-size: 13px; font-weight: 600; }

/* ── Back link ── */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); text-decoration: none; font-size: 13.5px; font-weight: 500; margin-bottom: 16px; transition: color .15s; }
.back-link:hover { color: var(--text); }

/* ── Notification Bell ── */
.notif-bell { position: relative; display: inline-block; cursor: pointer; font-size: 20px; color: #94a3b8; }
.notif-badge { position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; background: var(--danger); border-radius: 50%; font-size: 10px; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .main-content { padding: 16px; }
  .ticket-detail-layout { grid-template-columns: 1fr; }
  .reports-grid { grid-template-columns: 1fr; }
  .kanban-board { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sidebar { transform: translateX(-100%); }
  .main-content { margin-left: 0; width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Code / Pre ── */
pre, code { font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace; font-size: 12.5px; }
pre { background: #1e293b; color: #e2e8f0; padding: 14px; border-radius: 6px; overflow-x: auto; line-height: 1.6; }
