@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --brand: #5600C2;
  --brand-hover: #4300a3;
  --brand-light: rgba(167, 139, 250, 0.15);
  --brand-ring: rgba(167, 139, 250, 0.20);

  /* Glass Theme Variations (Light Mode) */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-reflection: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.05) 100%);
  --glass-blur: blur(20px) saturate(170%);

  --bg: #f3f0fa;
  --bg-subtle: rgba(245, 241, 253, 0.5);
  --bg-input: rgba(255, 255, 255, 0.4);
  --bg-chip: rgba(86, 0, 194, 0.08);

  --border: rgba(86, 0, 194, 0.12);
  --border-input: rgba(86, 0, 194, 0.18);
  --border-focus: #5600C2;

  --text-primary: #150a26;
  --text-secondary: #524669;
  --text-muted: #83769c;
  --text-inverted: #ffffff;

  --chip-text: #5600C2;
  --chip-bg: rgba(86, 0, 194, 0.07);

  --shadow-card: 0 8px 32px 0 rgba(31, 38, 135, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  --shadow-elevated: 0 12px 40px rgba(86, 0, 194, 0.15);
  --shadow-btn: 0 4px 14px rgba(86, 0, 194, 0.35);

  --radius: 20px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --row-hover-bg: rgba(86, 0, 194, 0.05);
}

/* ── Dark Mode ── */
[data-theme="dark"] {
  --brand: #a78bfa;
  --brand-hover: #c4b5fd;
  --brand-light: rgba(167, 139, 250, 0.15);
  --brand-ring: rgba(167, 139, 250, 0.20);

  /* Glass: near-black, no purple at rest */
  --glass-bg: rgba(10, 8, 18, 0.72);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-reflection: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
  --glass-blur: blur(28px) saturate(150%);

  --bg: transparent;
  --bg-subtle: rgba(255, 255, 255, 0.04);
  --bg-input: rgba(255, 255, 255, 0.06);
  --bg-chip: rgba(167, 139, 250, 0.18);

  /* Borders: subtle white lines, no purple at rest */
  --border: rgba(255, 255, 255, 0.08);
  --border-input: rgba(255, 255, 255, 0.12);
  --border-focus: #a78bfa;

  --text-primary: #f1eeff;
  --text-secondary: #9d93b8;
  --text-muted: #4e4870;

  /* Chips: purple -- only purple visible at rest */
  --chip-text: #c4b5fd;
  --chip-bg: rgba(167, 139, 250, 0.18);

  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.40), inset 0 1px 0px rgba(255, 255, 255, 0.05);
  --shadow-elevated: 0 20px 50px rgba(0, 0, 0, 0.70);
  --shadow-btn: 0 4px 20px rgba(167, 139, 250, 0.40);

  /* Hover: purple tint */
  --row-hover-bg: rgba(167, 139, 250, 0.10);
}

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

html { 
  height: 100%; 
}

body {
  font-family: 'Manrope', sans-serif;

  position: relative;
  min-height: 100%;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Background — bg.jpg with CSS blur (GPU-composited, no repaint lag) ── */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  background-image: url('bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Scale to hide blur edge bleed */
  transform: scale(1.08);
  /* blur + light mode: natural brightness */
  filter: blur(0px) brightness(1) saturate(1.2);
  /* GPU layer promotion — eliminates theme-switch lag */
  will-change: filter;
}

/* Dark overlay: opacity-only = zero repaint, pure GPU composite */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #08060f;
  opacity: 0;
  will-change: opacity;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode: fade overlay in, no filter change on ::before = no repaint */
[data-theme="dark"] body::after {
  opacity: 0.5;
}

/* ── Glass Components base ── */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  background-image: var(--glass-reflection);
  box-shadow: var(--shadow-card);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.glass-input {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border) !important;
  background-image: var(--glass-reflection);
  box-shadow: var(--shadow-card);
  color: var(--text-primary) !important;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.glass-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  background-image: var(--glass-reflection);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

/* ── Ghost Buttons (Like Logout) ── */
.glass-button {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

/* Clear contrast fix for Logout Button in Dark Mode (No Purple Hover Tint) */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  padding: 8px 16px;
  font-size: 13.5px;
}
[data-theme="dark"] .btn-ghost {
  color: var(--text-primary);
  border-color: var(--border-input);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--text-primary);
  color: var(--text-primary);
}
[data-theme="dark"] .btn-ghost:hover {
  background: rgba(167, 139, 250, 0.10);
  border-color: rgba(167, 139, 250, 0.35);
  color: #f1eeff;
}

/* ── Theme Toggle (No Purple Stroke On Hover) ── */
.theme-toggle {
  position: fixed;
  bottom: 18px;
  right: 20px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
  padding: 0;
}
.theme-toggle:hover {
  border-color: var(--border-focus); /* Evaluates to white on dark mode, avoiding purple */
  color: var(--text-primary);
  transform: scale(1.05) rotate(8deg);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon { width: 20px; height: 20px; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ── Login Screen ── */
#loginScreen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  position: relative;
}

.login-card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  padding: 48px 40px 40px;
  width: 100%;
  max-width: 420px;
  animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.login-logo img {
  height: 48px;
  width: auto;
}
.logo-dark { display: none; }
.logo-light { display: block; }
[data-theme="dark"] .logo-dark { display: block; }
[data-theme="dark"] .logo-light { display: none; }

.login-header {
  text-align: center;
  margin-bottom: 32px;
}
.login-header h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.login-header p {
  font-size: 13.5px;
  color: var(--text-secondary);
  font-weight: 400;
}

.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

/* ── Input Fields & Placeholders Fix ── */
.input {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
.input::placeholder { 
  color: var(--text-muted); 
  opacity: 0.8; 
}
/* Enhanced high visibility search placeholder in dark mode */
[data-theme="dark"] .input::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}
.input:focus {
  border-color: var(--border-focus) !important;
  box-shadow: 0 0 0 4px var(--brand-ring);
}
[data-theme="dark"] .input:focus {
  border-color: rgba(167, 139, 250, 0.7) !important;
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15);
}

/* ── Primary CTA Button & Loading Morph Animation ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
  padding: 11px 20px;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Strict Brand Color Isolation to Primary CTAs Only */
.btn-primary.primary-cta {
  width: 100%;
  padding: 14px 20px;
  background: #5600C2 !important;
  color: #ffffff !important;
  box-shadow: var(--shadow-btn);
  position: relative;
  overflow: hidden;
}
.btn-primary.primary-cta:hover:not(:disabled) {
  background: var(--brand-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(86, 0, 194, 0.45);
}
.btn-primary.primary-cta:active:not(:disabled) { 
  transform: translateY(0); 
}

/* Modern Multi-stage Button Loading Animation Structure */
.btn-primary.primary-cta.loading {
  animation: buttonMorph 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  pointer-events: none;
  background: #4300a3 !important;
}
.btn-primary.primary-cta.loading .btn-text {
  opacity: 0;
  transform: translateY(-12px);
}
/* spinner display/animation now handled in .spinner rule above */

@keyframes buttonMorph {
  0% { transform: scale(1); }
  50% { transform: scale(0.96); opacity: 0.95; }
  100% { transform: scale(1); box-shadow: 0 0 24px rgba(86, 0, 194, 0.5); }
}

/* Spinner Element inside CTA */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -9px;
  margin-top: -9px;
  /* Don't use transform here — margin centering avoids the keyframe conflict */
  opacity: 0;
  transition: opacity 0.2s ease;
}
.btn-primary.primary-cta.loading .spinner {
  display: block;
  opacity: 1;
  animation: spin 0.7s linear infinite;
}
.btn-text {
  transition: all 0.3s var(--transition);
  display: inline-block;
}
@keyframes spin { 
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); } 
}

/* ── Dashboard Layout ── */
#dashboard { 
  display: none; 
  min-height: 100vh; 
  flex-direction: column; 
}
#dashboard.visible { 
  display: flex; 
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-logo {
  height: 30px;
  width: auto;
}
.topbar-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-content {
  flex: 1;
  padding: 32px 24px;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

/* Toolbar Controls */
.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.search-wrapper {
  position: relative;
  flex: 1;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%) translateZ(0);
  color: var(--text-secondary);
  pointer-events: none;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  /* Pull out of the backdrop-filter stacking context so it stays crisp */
  z-index: 1;
  shape-rendering: geometricPrecision;
  backface-visibility: hidden;
}
.input-search {
  width: 100%;
  padding: 12px 16px 12px 42px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input-search:focus {
  border-color: var(--border-focus) !important;
  box-shadow: 0 0 0 4px var(--brand-ring);
}
[data-theme="dark"] .input-search:focus {
  border-color: rgba(167, 139, 250, 0.7) !important;
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15);
}

/* ── Table Rows Custom Hover ── */
.table-card {
  border-radius: var(--radius);
  overflow: hidden;
}
.table-wrap { 
  overflow-x: auto; 
}

table {
  width: 100%;
  border-collapse: collapse;
}
thead tr {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
th {
  padding: 14px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  opacity: 0.9;
}
td {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr:last-child td { 
  border-bottom: none; 
}

/* Neutral sleek row accents for Dark Mode, Vibrant Purple for Light Mode */
tbody tr {
  transition: background var(--transition);
}
tbody tr:hover { 
  background: var(--row-hover-bg) !important; 
}

/* Column specific properties */
td:first-child {
  font-family: 'Manrope', monospace;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
td:nth-child(2) {
  font-weight: 600;
  color: var(--text-primary);
}

/* Metadata Tag Pill Chips */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 2px 4px 2px 0;
  border: 1px solid rgba(86, 0, 194, 0.12);
}
[data-theme="dark"] .chip {
  border-color: rgba(167, 139, 250, 0.25);
}

/* Empty Status Display */
.empty-state {
  padding: 54px 24px;
  text-align: center;
  color: var(--text-muted);
}
.empty-state svg {
  margin: 0 auto 14px;
  opacity: 0.5;
  display: block;
}
.empty-state p {
  font-size: 14.5px;
  font-weight: 600;
}

/* Row quantity counter */
.row-count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  white-space: nowrap;
  min-width: 148px;
  text-align: center;
}

/* ── Toast Notifications System ── */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast {
  pointer-events: all;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-radius: var(--radius);
  padding: 16px 18px;
  min-width: 320px;
  max-width: 420px;
  box-shadow: var(--shadow-elevated);
  animation: toastIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  position: relative;
  overflow: hidden;
}
.toast::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--brand);
}
.toast.toast-error::before { background: #ff4d4d; }
.toast.toast-success::before { background: #00e676; }
.toast.toast-warning::before { background: #ffc107; }

.toast-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}
.toast-icon.success { color: #00e676; }
.toast-icon.error { color: #ff4d4d; }
.toast-icon.warning { color: #ffc107; }
.toast-icon.info { color: #5600C2; }
[data-theme="dark"] .toast-icon.info { color: #a78bfa; }

.toast-body { 
  flex: 1; 
  min-width: 0; 
}
.toast-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  line-height: 1.3;
}
.toast-message {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  word-break: break-word;
}
.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 2px;
  border-radius: 4px;
  transition: color var(--transition);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toast-close:hover { 
  color: var(--text-primary); 
}
.toast-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: var(--brand);
  opacity: 0.4;
  animation: progress 4s linear forwards;
  transform-origin: left;
}
.toast.toast-error .toast-progress { background: #ff4d4d; }
.toast.toast-success .toast-progress { background: #00e676; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(30px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(20px) scale(0.95); height: 0; padding: 0; margin: 0; }
}
@keyframes progress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ── Filter Button & Dropdown ── */
.filter-wrapper {
  position: relative;
}

.btn-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Manrope', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background-image: var(--glass-reflection);
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-filter:hover {
  border-color: var(--border-focus);
  color: var(--text-primary);
  background: var(--brand-light);
}
.btn-filter.active {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
}
.btn-filter .filter-count {
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
  line-height: 1.6;
}

/* Dropdown panel */
.filter-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 200;
  min-width: 220px;
  max-height: 320px;
  overflow-y: auto;
  border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-elevated);
  background-image: var(--glass-reflection);
  animation: dropdownIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.filter-dropdown.open {
  display: block;
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.filter-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.filter-dropdown-header span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.filter-clear-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand);
  padding: 0;
  transition: opacity var(--transition);
}
.filter-clear-btn:hover { opacity: 0.7; }

.filter-list {
  padding: 8px 0;
  list-style: none;
}
.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background var(--transition);
}
.filter-item:hover {
  background: var(--row-hover-bg);
}
.filter-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--border-input);
  background: var(--bg-input);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
  position: relative;
}
.filter-item input[type="checkbox"]:checked {
  background: var(--brand);
  border-color: var(--brand);
}
.filter-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1.5px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(40deg);
}
.filter-item label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  flex: 1;
  letter-spacing: 0.01em;
}
.filter-item-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border-radius: var(--radius-pill);
  padding: 1px 7px;
}

/* Scrollbar for filter dropdown */
.filter-dropdown::-webkit-scrollbar { width: 4px; }
.filter-dropdown::-webkit-scrollbar-track { background: transparent; }
.filter-dropdown::-webkit-scrollbar-thumb { background: var(--border-input); border-radius: 2px; }

/* ── Screen Breakpoints ── */
@media (max-width: 600px) {
  .login-card { padding: 40px 24px 32px; }
  .main-content { padding: 24px 16px; }
  .toolbar { gap: 12px; }
  .glass-topbar { padding: 0 16px; }
  #toast-container { bottom: 16px; width: calc(100% - 32px); }
  .toast { min-width: unset; width: 100%; }
  th:nth-child(3), td:nth-child(3) { min-width: 150px; }
}