/* ══════════════════════════════════════════════════════════════
   Expirum — Shared CSS
   Design tokens extracted from UI_design_v9.html (primary visual source)
   ══════════════════════════════════════════════════════════════ */

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

/* ── DESIGN TOKENS ── */
:root {
  /* Colors */
  --primary: #2563EB;
  --primary-light: #EFF6FF;
  --primary-mid: #BFDBFE;
  --primary-dark: #1D4ED8;

  --success-bg: #F0FDF4;
  --success-text: #16A34A;
  --warning-bg: #FFFBEB;
  --warning-text: #D97706;
  --danger-bg: #FFF1F2;
  --danger-text: #E11D48;
  --danger-alt: #DC2626;

  /* Surfaces */
  --bg-page: #f1f5f9;
  --bg-card: #FFFFFF;
  --bg-sidebar: #F8FAFD;
  --bg-surface: #F8FAFC;

  /* Text */
  --text-dark: #0F172A;
  --text-mid: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Borders */
  --border: rgba(148,163,184,0.2);
  --border-solid: #e5e7eb;
  --border-light: rgba(148,163,184,0.12);

  /* Shadows */
  --shadow-card: 0 10px 28px rgba(0,0,0,0.08);
  --shadow-hover: 0 14px 36px rgba(0,0,0,0.11);
  --shadow-button: 0 6px 16px rgba(37,99,235,0.25);
  --shadow-sidebar: 4px 0 20px rgba(0,0,0,0.04);

  /* Radii */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  /* Layout */
  --sidebar-w: 220px;
  --topbar-h: 64px;

  /* Typography */
  --font: 'DM Sans', sans-serif;

  /* Transitions */
  --transition: all 0.15s ease;
}

/* ── BASE ── */
body {
  font-family: var(--font);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: 100vh;
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }

/* ══════════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-solid);
  box-shadow: var(--shadow-sidebar);
  display: flex;
  flex-direction: column;
  z-index: 100;
  padding: 0 12px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--topbar-h);
  padding: 0 8px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 12px;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(37,99,235,0.3);
}

.logo-icon svg { width: 20px; height: 20px; }

.logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}

.nav-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 8px 8px 6px;
  margin-top: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  transition: var(--transition);
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(59,130,246,0.06);
  color: var(--primary);
}

.nav-item.active {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,0.30), inset 0 1px 0 rgba(255,255,255,0.15);
}

.nav-item svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}

.nav-item.active svg { opacity: 1; }

.nav-badge {
  margin-left: auto;
  background: var(--warning-bg);
  color: var(--warning-text);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}

.nav-item.active .nav-badge {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 8px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
}

.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.user-info { flex: 1; overflow: hidden; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════
   TOPBAR
   ══════════════════════════════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: var(--topbar-h);
  background: rgba(248,250,252,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  z-index: 90;
}

.page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.topbar-date {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb-sep { opacity: 0.4; }

.search-bar {
  flex: 1;
  max-width: 360px;
  margin-left: auto;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 40px;
  background: rgba(255,255,255,0.8);
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
}

.search-bar input::placeholder { color: var(--text-muted); }

.search-bar input:focus {
  background: #ffffff;
  border-color: rgba(37,99,235,0.3);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

.search-bar svg {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.icon-btn:hover {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.icon-btn svg { width: 18px; height: 18px; color: var(--text-mid); }

.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 18px; height: 18px;
  background: #EF4444;
  border-radius: 50%;
  border: 2px solid white;
  font-size: 10px;
  font-weight: 700;
  color: white;
  display: flex; align-items: center; justify-content: center;
}

.topbar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

/* ══════════════════════════════════════════════════════════════
   MAIN CONTENT AREA
   ══════════════════════════════════════════════════════════════ */
.main {
  margin-left: var(--sidebar-w);
  padding-top: var(--topbar-h);
  min-height: 100vh;
}

.content {
  padding: 28px 28px 40px;
}

/* ══════════════════════════════════════════════════════════════
   PAGE HEADER
   ══════════════════════════════════════════════════════════════ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.page-header-left {}
.page-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.page-header p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.page-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.btn svg { width: 15px; height: 15px; }

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37,99,235,0.35);
}

.btn-secondary {
  background: white;
  color: var(--text-mid);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  background: var(--primary-light);
  border-color: var(--primary-mid);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1.5px solid rgba(225,29,72,0.15);
}

.btn-danger:hover {
  background: #ffe4e9;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
}

.btn-icon {
  padding: 8px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-muted);
}

.btn-icon:hover {
  background: var(--primary-light);
  border-color: var(--primary-mid);
  color: var(--primary);
}

.btn-icon svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════ */
.card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

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

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.2px;
}

.card-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body {
  padding: 20px;
}

/* ══════════════════════════════════════════════════════════════
   KPI CARDS
   ══════════════════════════════════════════════════════════════ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 1;
}

.kpi-card.blue::before { background: linear-gradient(90deg, #2563EB, #60A5FA); }
.kpi-card.green::before { background: linear-gradient(90deg, #16A34A, #4ADE80); }
.kpi-card.orange::before { background: linear-gradient(90deg, #D97706, #FCD34D); }
.kpi-card.red::before { background: linear-gradient(90deg, #DC2626, #F87171); }
.kpi-card.purple::before { background: linear-gradient(90deg, #7C3AED, #C4B5FD); }

.kpi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kpi-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}

.kpi-icon svg { width: 20px; height: 20px; }
.kpi-icon.blue { background: #EFF6FF; color: var(--primary); }
.kpi-icon.green { background: #F0FDF4; color: #16A34A; }
.kpi-icon.orange { background: #FFFBEB; color: #D97706; }
.kpi-icon.red { background: #FEF2F2; color: #DC2626; }
.kpi-icon.purple { background: #F5F3FF; color: #7C3AED; }

.kpi-trend {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
}

.kpi-trend.up { background: var(--success-bg); color: var(--success-text); }
.kpi-trend.down { background: var(--danger-bg); color: var(--danger-text); }
.kpi-trend.neutral { background: var(--border-light); color: var(--text-muted); }

.kpi-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -1px;
}

.kpi-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ══════════════════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-solid);
  white-space: nowrap;
}

thead th.sortable {
  cursor: pointer;
  user-select: none;
}

thead th.sortable:hover { color: var(--text-dark); }

tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.12s ease;
  cursor: pointer;
}

tbody tr:last-child { border-bottom: none; }

tbody tr:hover { background: rgba(37,99,235,0.04); }

tbody td {
  padding: 13px 16px;
  font-size: 13.5px;
  color: var(--text-mid);
  vertical-align: middle;
}

.item-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #EFF6FF;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.item-icon svg { width: 16px; height: 16px; color: var(--primary); }
.item-icon.red { background: #FEF2F2; }
.item-icon.red svg { color: #DC2626; }
.item-icon.orange { background: #FFFBEB; }
.item-icon.orange svg { color: #D97706; }
.item-icon.green { background: #F0FDF4; }
.item-icon.green svg { color: #16A34A; }
.item-icon.purple { background: #F5F3FF; }
.item-icon.purple svg { color: #7C3AED; }

.item-name { font-weight: 600; color: var(--text-dark); font-size: 13.5px; }
.item-sub { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* ══════════════════════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.badge-active { background: var(--success-bg); color: var(--success-text); }
.badge-expiring { background: var(--warning-bg); color: var(--warning-text); }
.badge-expired { background: var(--danger-bg); color: var(--danger-text); }
.badge-archived { background: var(--border-light); color: var(--text-muted); }

/* Days pills */
.days-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.days-ok { background: var(--success-bg); color: var(--success-text); }
.days-soon { background: var(--warning-bg); color: var(--warning-text); }
.days-late { background: var(--danger-bg); color: var(--danger-text); }

/* Expiry date text */
.expiry-date { font-size: 13px; color: var(--text-mid); }
.expiry-soon { color: var(--warning-text); font-weight: 600; }
.expiry-overdue { color: var(--danger-text); font-weight: 600; }

/* Category dot */
.cat-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   CHIPS / FILTER PILLS
   ══════════════════════════════════════════════════════════════ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(148,163,184,0.25);
  background: rgba(255,255,255,0.9);
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
}

.chip:hover,
.chip.active {
  border-color: var(--primary-mid);
  background: var(--primary-light);
  color: var(--primary);
}

.chip svg { width: 13px; height: 13px; }

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* ══════════════════════════════════════════════════════════════
   ACTION BUTTON (in table rows)
   ══════════════════════════════════════════════════════════════ */
.action-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.12s;
  border: none;
  background: transparent;
}

.action-btn:hover { background: var(--border-light); color: var(--text-dark); }
.action-btn svg { width: 15px; height: 15px; }

.dots-btn {
  width: 30px; height: 30px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.15s;
}

.dots-btn:hover { background: var(--border-light); }
.dots-btn svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════════════════════════════
   CALENDAR WIDGET
   ══════════════════════════════════════════════════════════════ */
.calendar-widget { padding: 16px 20px; }

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cal-month { font-size: 15px; font-weight: 700; color: var(--text-dark); }

.cal-nav { display: flex; gap: 4px; }

.cal-nav button {
  width: 26px; height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 15px;
  transition: var(--transition);
}

.cal-nav button:hover {
  background: var(--primary-light);
  border-color: var(--primary-mid);
  color: var(--primary);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-day-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  padding: 4px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
  padding: 4px 2px;
  gap: 2px;
  font-size: 12.5px;
  color: var(--text-mid);
  font-weight: 500;
}

.cal-day:hover { background: var(--primary-light); }
.cal-day.today { background: #2563eb; color: white; font-weight: 700; }
.cal-day.other-month { color: var(--text-light); }

.cal-dots {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: center;
}

.cal-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
}

/* ══════════════════════════════════════════════════════════════
   ACTIVITY / FEED
   ══════════════════════════════════════════════════════════════ */
.activity-list { padding: 8px 0; }

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 20px;
  transition: background 0.12s ease;
  cursor: pointer;
}

.activity-item:hover { background: #F8FAFF; }

.activity-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.activity-body { flex: 1; min-width: 0; }
.activity-text { font-size: 13px; color: var(--text-mid); line-height: 1.4; }
.activity-text strong { color: var(--text-dark); font-weight: 600; }
.activity-time { font-size: 11.5px; color: var(--text-light); margin-top: 2px; }

/* ══════════════════════════════════════════════════════════════
   PROGRESS BARS (Items by Category)
   ══════════════════════════════════════════════════════════════ */
.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-light);
}

.progress-row:last-child { border-bottom: none; }

.progress-label { font-size: 13px; color: var(--text-mid); flex: 1; font-weight: 500; }
.progress-count { font-size: 13px; font-weight: 700; color: var(--text-dark); min-width: 28px; text-align: right; }

.progress-bar-wrap {
  width: 100px;
  height: 6px;
  background: rgba(148,163,184,0.15);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 10px;
}

/* ══════════════════════════════════════════════════════════════
   DASHBOARD GRID LAYOUTS
   ══════════════════════════════════════════════════════════════ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  margin-bottom: 20px;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* ══════════════════════════════════════════════════════════════
   FORM ELEMENTS
   ══════════════════════════════════════════════════════════════ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.form-label .required { color: var(--danger-text); margin-left: 2px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-solid);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-dark);
  background: white;
  outline: none;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-light); }

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select { cursor: pointer; }

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* ══════════════════════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

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

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: background 0.12s;
}

.modal-close:hover { background: var(--border-light); }
.modal-close svg { width: 16px; height: 16px; }

.modal-body { padding: 20px 24px; }

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
}

/* Modal widths */
.modal-lg { max-width: 720px; }
.modal-sm { max-width: 420px; }

/* ══════════════════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  gap: 12px;
}

.empty-state-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}

.empty-state-icon svg { width: 28px; height: 28px; color: var(--primary); }

.empty-state h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.empty-state p {
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 320px;
}

/* ══════════════════════════════════════════════════════════════
   SKELETON LOADER
   ══════════════════════════════════════════════════════════════ */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(90deg, #f0f4f8 25%, #e6edf4 50%, #f0f4f8 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}

.skeleton-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
}

.skeleton-circle { border-radius: 50%; }

/* ══════════════════════════════════════════════════════════════
   TABS
   ══════════════════════════════════════════════════════════════ */
.tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  border-bottom: 1px solid var(--border-solid);
  margin-bottom: 24px;
}

.tab {
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab:hover { color: var(--text-dark); }

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.tab-count {
  background: var(--border-light);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
}

.tab.active .tab-count {
  background: var(--primary-light);
  color: var(--primary);
}

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

/* ══════════════════════════════════════════════════════════════
   DROPDOWN MENU
   ══════════════════════════════════════════════════════════════ */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  min-width: 180px;
  z-index: 200;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.dropdown-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 13.5px;
  color: var(--text-mid);
  cursor: pointer;
  transition: background 0.1s;
}

.dropdown-item:hover { background: var(--primary-light); color: var(--primary); }
.dropdown-item.danger:hover { background: var(--danger-bg); color: var(--danger-text); }
.dropdown-item svg { width: 15px; height: 15px; opacity: 0.7; }

.dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 4px 0;
}

/* ══════════════════════════════════════════════════════════════
   COMMAND PALETTE
   ══════════════════════════════════════════════════════════════ */
#cmd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

#cmd-overlay.active {
  opacity: 1;
  pointer-events: all;
}

#cmd-palette {
  background: white;
  border-radius: 14px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.06);
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  transform: scale(0.96) translateY(-8px);
  transition: transform 0.15s ease;
}

#cmd-overlay.active #cmd-palette {
  transform: scale(1) translateY(0);
}

#cmd-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-light);
}

#cmd-input-wrap svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }

#cmd-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-dark);
  background: transparent;
}

#cmd-input::placeholder { color: var(--text-muted); }

#cmd-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
}

.cmd-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 8px 8px 4px;
}

.cmd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.1s;
}

.cmd-item:hover,
.cmd-item.selected {
  background: var(--primary-light);
}

.cmd-item-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--border-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.cmd-item-icon svg { width: 14px; height: 14px; color: var(--text-mid); }
.cmd-item:hover .cmd-item-icon,
.cmd-item.selected .cmd-item-icon { background: var(--primary-mid); }
.cmd-item:hover .cmd-item-icon svg,
.cmd-item.selected .cmd-item-icon svg { color: var(--primary); }

.cmd-item-text { flex: 1; }
.cmd-item-name { font-size: 13.5px; font-weight: 500; color: var(--text-dark); }
.cmd-item-desc { font-size: 12px; color: var(--text-muted); }

.cmd-item-shortcut {
  font-size: 11px;
  color: var(--text-light);
  background: var(--border-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

#cmd-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--border-light);
  background: #fafbfc;
}

.cmd-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.cmd-key {
  background: white;
  border: 1px solid var(--border-solid);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
  font-family: monospace;
  color: var(--text-mid);
}

/* ══════════════════════════════════════════════════════════════
   NOTIFICATION DROPDOWN
   ══════════════════════════════════════════════════════════════ */
#notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.04);
  z-index: 200;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

#notif-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border-light);
}

.notif-dropdown-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.1s;
  position: relative;
}

.notif-item:hover { background: #f8faff; }

.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.notif-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.notif-icon svg { width: 16px; height: 16px; }
.notif-icon.warning { background: var(--warning-bg); color: var(--warning-text); }
.notif-icon.danger { background: var(--danger-bg); color: var(--danger-text); }
.notif-icon.info { background: var(--primary-light); color: var(--primary); }
.notif-icon.success { background: var(--success-bg); color: var(--success-text); }

.notif-body { flex: 1; min-width: 0; }
.notif-text { font-size: 13px; color: var(--text-mid); line-height: 1.4; }
.notif-text strong { color: var(--text-dark); font-weight: 600; }
.notif-time { font-size: 11.5px; color: var(--text-light); margin-top: 2px; }

.notif-dropdown-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.notif-dropdown-footer a {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════
   ALERTS / TOASTS
   ══════════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  min-width: 280px;
  max-width: 400px;
  animation: toast-in 0.2s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast-icon { width: 20px; height: 20px; flex-shrink: 0; }
.toast-text { font-size: 13.5px; color: var(--text-mid); flex: 1; }
.toast-text strong { color: var(--text-dark); }

.toast.success { border-left: 3px solid var(--success-text); }
.toast.warning { border-left: 3px solid var(--warning-text); }
.toast.error { border-left: 3px solid var(--danger-text); }
.toast.info { border-left: 3px solid var(--primary); }

/* ══════════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
}

.pagination-info {
  font-size: 13px;
  color: var(--text-muted);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--text-mid);
  font-family: var(--font);
  transition: var(--transition);
}

.page-btn:hover { background: var(--primary-light); border-color: var(--primary-mid); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-btn svg { width: 14px; height: 14px; }

/* ══════════════════════════════════════════════════════════════
   DETAIL SIDEBAR / INFO PANELS
   ══════════════════════════════════════════════════════════════ */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}

.info-panel {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
}

.info-row {
  display: flex;
  align-items: flex-start;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
}

.info-row:last-child { border-bottom: none; }

.info-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  min-width: 110px;
  padding-top: 1px;
}

.info-value {
  font-size: 13.5px;
  color: var(--text-mid);
  flex: 1;
}

/* ══════════════════════════════════════════════════════════════
   IMPORT / UPLOAD
   ══════════════════════════════════════════════════════════════ */
.upload-zone {
  border: 2px dashed var(--border-solid);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: #fafbfc;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-zone-icon {
  width: 56px; height: 56px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}

.upload-zone-icon svg { width: 24px; height: 24px; color: var(--primary); }

.upload-zone h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.upload-zone p {
  font-size: 13px;
  color: var(--text-muted);
}

.upload-zone .link { color: var(--primary); font-weight: 500; }

/* Steps indicator */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--border-light);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.step.active .step-num {
  background: var(--primary);
  color: white;
}

.step.done .step-num {
  background: var(--success-text);
  color: white;
}

.step-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.step.active .step-label { color: var(--text-dark); font-weight: 600; }
.step.done .step-label { color: var(--success-text); }

.step-line {
  flex: 1;
  height: 1px;
  background: var(--border-solid);
  margin: 0 8px;
}

/* ══════════════════════════════════════════════════════════════
   SETTINGS / ADMIN
   ══════════════════════════════════════════════════════════════ */
.settings-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}

.settings-nav {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
  position: sticky;
  top: calc(var(--topbar-h) + 28px);
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-light);
}

.settings-nav-item:last-child { border-bottom: none; }

.settings-nav-item:hover { background: var(--primary-light); color: var(--primary); }
.settings-nav-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.settings-nav-item svg { width: 16px; height: 16px; opacity: 0.7; }
.settings-nav-item.active svg { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   AVATAR DROPDOWN
   ══════════════════════════════════════════════════════════════ */
.avatar-dropdown-wrap { position: relative; }

.avatar-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 200px;
  z-index: 200;
  display: none;
  overflow: hidden;
}

.avatar-menu.open { display: block; }

.avatar-menu--up {
  bottom: calc(100% + 8px);
  top: auto;
  right: auto;
  left: 0;
  right: 0;
}

.avatar-menu-header {
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--border-light);
}

.avatar-menu-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
}

.avatar-menu-role {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.avatar-menu-divider {
  height: 1px;
  background: var(--border-light);
  margin: 4px 0;
}

.avatar-menu-item {
  display: block;
  padding: 9px 16px;
  font-size: 13.5px;
  color: var(--text-dark);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s;
  font-family: var(--font);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.avatar-menu-item:hover { background: var(--bg-surface); }

.avatar-menu-danger { color: var(--danger-text); }

/* ══════════════════════════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ══════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ══════════════════════════════════════════════════════════════ */
.text-muted { color: var(--text-muted); }
.text-dark { color: var(--text-dark); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success-text); }
.text-warning { color: var(--warning-text); }
.text-danger { color: var(--danger-text); }

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }

.mt-auto { margin-top: auto; }

/* ===== Language Dropdown ===== */
.lang-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary, #64748b);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.lang-dropdown__trigger:hover {
  background: var(--bg-hover, #f1f5f9);
  border-color: var(--border-hover, #cbd5e1);
  color: var(--text-primary, #1e293b);
}

.lang-dropdown__globe {
  flex-shrink: 0;
  opacity: 0.7;
}

.lang-dropdown__current {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.lang-dropdown__chevron {
  flex-shrink: 0;
  opacity: 0.5;
  transition: transform 0.2s;
}

.lang-dropdown__trigger[aria-expanded="true"] .lang-dropdown__chevron {
  transform: rotate(180deg);
}

.lang-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 150px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius, 8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  list-style: none;
  padding: 4px;
  margin: 0;
  z-index: 999;
}

.lang-dropdown__menu--open {
  display: block;
}

.lang-dropdown__item {
  border-radius: var(--radius-sm, 6px);
  overflow: hidden;
}

.lang-dropdown__item--active .lang-dropdown__code {
  color: var(--color-primary, #3b82f6);
}

.lang-dropdown__link {
  display: flex;
  color: inherit;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  text-decoration: none;
  transition: background 0.15s;
}

.lang-dropdown__link:hover {
  background: var(--bg-hover, #f1f5f9);
}

.lang-dropdown__item--active .lang-dropdown__link {
  background: var(--bg-subtle, #f8fafc);
}

.lang-dropdown__code {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary, #64748b);
  min-width: 22px;
}

.lang-dropdown__name {
  font-size: 13px;
  color: var(--text-secondary, #64748b);
}

.lang-dropdown__trigger:focus-visible,
.lang-dropdown__link:focus-visible {
  outline: 2px solid var(--color-primary, #3b82f6);
  outline-offset: 2px;
}
