/* ==========================================================================
   NTA Universal Header - Dynamic Design System & Scoped CSS
   ========================================================================== */

:root {
  --nta-uh-bg: rgba(10, 15, 29, 0.88);
  --nta-uh-border: rgba(255, 255, 255, 0.08);
  --nta-uh-text: #f8fafc;
  --nta-uh-text-muted: #94a3b8;
  --nta-uh-primary: #6366f1;
  --nta-uh-primary-glow: rgba(99, 102, 241, 0.35);
  --nta-uh-accent: #38bdf8;
  --nta-uh-gold: #fbbf24;
  --nta-uh-danger: #ef4444;
  --nta-uh-success: #10b981;
  --nta-uh-chip-bg: rgba(255, 255, 255, 0.05);
  --nta-uh-chip-border: rgba(255, 255, 255, 0.1);
  --nta-uh-chip-hover: rgba(99, 102, 241, 0.15);
  --nta-uh-chip-active: linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(56, 189, 248, 0.2));
  --nta-uh-font: 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base Top-Bar Container */
.nta-uh {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 68px;
  background: var(--nta-uh-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nta-uh-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  z-index: 9990;
  font-family: var(--nta-uh-font);
  direction: rtl;
  box-sizing: border-box;
}

.nta-uh *, .nta-uh *::before, .nta-uh *::after {
  box-sizing: border-box;
}

.nta-uh__inner {
  max-width: 1920px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand Logo Box */
.nta-uh__brand-box {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nta-uh__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nta-uh__logo:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.nta-uh__logo-mark {
  height: 40px;
  width: auto;
  padding: 3px 8px;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(226, 232, 240, 0.9);
  flex-shrink: 0;
  overflow: hidden;
}

.nta-uh__logo-img {
  height: 32px;
  width: auto;
  max-width: 115px;
  object-fit: contain;
  display: block;
}

.nta-uh__logo-text-nta {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.nta-uh__logo-titles {
  display: flex;
  flex-direction: column;
}

.nta-uh__title-ar {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.nta-uh__title-en {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--nta-uh-accent);
}

/* Portal Switcher & Active Portal Badge */
.nta-uh__switcher-wrapper {
  position: relative;
}

.nta-uh__switcher-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  padding: 6px 14px;
  color: #e0e7ff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nta-uh__switcher-btn:hover {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 12px var(--nta-uh-primary-glow);
}

.nta-uh__portal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.nta-uh__switcher-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.nta-uh__switcher-btn.open .nta-uh__switcher-chevron {
  transform: rotate(180deg);
}

.nta-uh__switcher-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  padding: 8px;
  display: none;
  z-index: 9995;
  animation: ntaUhFadeDown 0.2s ease forwards;
}

.nta-uh__switcher-dropdown.show {
  display: block;
}

.nta-uh__dropdown-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--nta-uh-text-muted);
  padding: 8px 12px 6px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}

.nta-uh__dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  color: #f1f5f9;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.15s ease;
  cursor: pointer;
  border: none;
  background: transparent;
  text-align: right;
}

.nta-uh__dropdown-item:hover {
  background: rgba(99, 102, 241, 0.18);
  color: #ffffff;
}

.nta-uh__dropdown-item.active {
  background: rgba(99, 102, 241, 0.28);
  color: var(--nta-uh-accent);
  font-weight: 700;
}

/* Center Navigation Chips & Scroll Carousel */
.nta-uh__nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  position: relative;
  gap: 4px;
}

.nta-uh__arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  z-index: 2;
}

.nta-uh__arrow-btn.visible {
  opacity: 0.85;
  pointer-events: auto;
  visibility: visible;
}

.nta-uh__arrow-btn:hover {
  opacity: 1;
  background: rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.6);
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.nta-uh__arrow-btn:active {
  transform: scale(0.95);
}

.nta-uh__arrow-btn:disabled {
  opacity: 0.25 !important;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.nta-uh__arrow-btn svg {
  width: 14px;
  height: 14px;
}

.nta-uh__chips-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 6px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 100%;
}

.nta-uh__chips-scroll::-webkit-scrollbar {
  display: none;
}

.nta-uh__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 12px;
  background: var(--nta-uh-chip-bg);
  border: 1px solid var(--nta-uh-chip-border);
  color: var(--nta-uh-text-muted);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nta-uh__chip:hover {
  background: var(--nta-uh-chip-hover);
  border-color: rgba(99, 102, 241, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.nta-uh__chip.active {
  background: var(--nta-uh-chip-active);
  border-color: rgba(99, 102, 241, 0.55);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.2);
}

/* Right Actions Box */
.nta-uh__actions-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nta-uh__icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nta-uh-text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nta-uh__icon-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.nta-uh__icon {
  width: 18px;
  height: 18px;
}

/* User Pill */
.nta-uh__user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 6px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nta-uh__user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}

.nta-uh__user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nta-uh__user-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nta-uh__user-role {
  font-size: 10px;
  font-weight: 600;
  color: var(--nta-uh-accent);
}

/* Logout Button */
.nta-uh__logout-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nta-uh__logout-btn:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

/* Auto-Guard Access Denied Overlay */
.nta-uh__denied-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 20, 0.96);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  font-family: var(--nta-uh-font);
  direction: rtl;
}

.nta-uh__denied-card {
  max-width: 480px;
  width: 90%;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 20px;
  padding: 36px 30px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(239, 68, 68, 0.2);
  animation: ntaUhScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.nta-uh__denied-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.nta-uh__denied-title {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 10px;
}

.nta-uh__denied-text {
  font-size: 14px;
  color: #94a3b8;
  margin: 0 0 24px;
  line-height: 1.6;
}

.nta-uh__denied-link {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #ffffff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.nta-uh__denied-link:hover {
  transform: translateY(-2px);
}

/* Animations */
@keyframes ntaUhFadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ntaUhScaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .nta-uh__title-en { display: none; }
  .nta-uh__user-meta { display: none; }
}

@media (max-width: 768px) {
  .nta-uh {
    height: auto;
    min-height: 58px;
  }
  .nta-uh__inner {
    flex-wrap: wrap;
    padding: 6px 12px;
    gap: 6px 8px;
    height: auto;
  }
  .nta-uh__brand-box {
    order: 1;
    gap: 8px;
  }
  .nta-uh__logo-mark {
    height: 36px;
    padding: 2px 6px;
  }
  .nta-uh__logo-img {
    height: 28px;
    max-width: 92px;
  }
  .nta-uh__logo-titles {
    display: none;
  }
  .nta-uh__actions-box {
    order: 2;
    gap: 6px;
    margin-inline-start: auto;
  }
  .nta-uh__logout-text {
    display: none;
  }
  .nta-uh__nav {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 6px 0 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 6px;
    -webkit-overflow-scrolling: touch;
  }
  html.light-mode .nta-uh__nav,
  body.light-mode .nta-uh__nav {
    border-top-color: #e2e8f0;
  }
  .nta-uh__nav-item {
    padding: 6px 10px;
    font-size: 12px;
    flex-shrink: 0;
  }
  .nta-uh__notif-dropdown {
    position: fixed;
    top: 60px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 80px);
  }
}

/* ==========================================================================
   Decommission Legacy Floating Buttons (Theme FAB & Notifications FAB)
   ========================================================================== */
.nta-theme-fab, #ntaThemeFab, .notif-fab, #notifFab, #notificationsWidget > .notif-fab {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ==========================================================================
   Universal Header - Notifications Dropdown Suite
   ========================================================================== */

.nta-uh__notif-wrapper {
  position: relative;
}

.nta-uh__notif-btn,
.nta-uh__tickets-btn {
  position: relative;
}

.nta-uh__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nta-uh__chip-badge {
  display: none;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: #ffffff !important;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.55);
  flex-shrink: 0;
  pointer-events: none;
}

.nav-menu .nav-item .nta-uh__chip-badge,
aside a[href$="tickets.html"] .nta-uh__chip-badge {
  margin-inline-start: auto;
}

.tickets-sidebar-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nta-uh__notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0f172a;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
  pointer-events: none;
}

.nta-uh__notif-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 380px;
  max-width: 90vw;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9995;
  animation: ntaUhFadeDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.nta-uh__notif-dropdown.open {
  display: flex;
}

.nta-uh__notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.nta-uh__notif-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.nta-uh__notif-unread-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  font-weight: 700;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.nta-uh__notif-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--nta-uh-text-muted);
  border-radius: 8px;
  padding: 4px 9px;
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nta-uh__notif-action-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #ffffff;
  border-color: rgba(99, 102, 241, 0.4);
}

.nta-uh__notif-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
  overflow-x: auto;
}

.nta-uh__notif-tab {
  background: transparent;
  border: none;
  color: var(--nta-uh-text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nta-uh__notif-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nta-uh__notif-tab.active {
  background: rgba(99, 102, 241, 0.25);
  color: #ffffff;
  font-weight: 700;
}

.nta-uh__notif-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 6px 8px;
}

.nta-uh__notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.nta-uh__notif-item:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
}

.nta-uh__notif-item.unread {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

.nta-uh__notif-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6366f1;
  margin-top: 6px;
  flex-shrink: 0;
}

.nta-uh__notif-item.read .nta-uh__notif-item-dot {
  background: transparent;
}

.nta-uh__notif-item-content {
  flex: 1;
  min-width: 0;
}

.nta-uh__notif-item-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
  line-height: 1.3;
}

.nta-uh__notif-item-msg {
  font-size: 11.5px;
  color: var(--nta-uh-text-muted);
  line-height: 1.4;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.nta-uh__notif-item-time {
  font-size: 10.5px;
  color: #64748b;
}

.nta-uh__notif-loading,
.nta-uh__notif-empty {
  padding: 30px 16px;
  text-align: center;
  color: var(--nta-uh-text-muted);
  font-size: 12.5px;
}

.nta-uh__notif-footer {
  padding: 8px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
  font-size: 11px;
  color: #64748b;
}

/* ==========================================================================
   Universal Header - Theme Toggler Suite (Dark / Light)
   ========================================================================== */

.nta-uh__theme-btn {
  position: relative;
  overflow: hidden;
}

.nta-uh__lang-btn {
  min-width: 40px;
  width: auto !important;
  padding: 0 10px !important;
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.03em;
}

.nta-uh__lang-label {
  line-height: 1;
  white-space: nowrap;
}

.nta-uh__icon--sun,
.nta-uh__icon--moon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

/* Dark mode (default): show sun, hide moon */
.nta-uh__icon--sun {
  display: block;
}
.nta-uh__icon--moon {
  display: none;
}

/* Light mode overrides */
html.light-mode .nta-uh__icon--sun {
  display: none;
}
html.light-mode .nta-uh__icon--moon {
  display: block;
  color: #3b82f6;
}

html.light-mode .nta-uh {
  --nta-uh-bg: rgba(255, 255, 255, 0.94);
  --nta-uh-border: rgba(226, 232, 240, 0.85);
  --nta-uh-text: #0f172a;
  --nta-uh-text-muted: #64748b;
  --nta-uh-chip-bg: rgba(241, 245, 249, 0.85);
  --nta-uh-chip-border: rgba(203, 213, 225, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

html.light-mode .nta-uh__title-ar {
  color: #0f172a;
}
html.light-mode .nta-uh__logo-text-nta {
  color: #0f172a;
}
html.light-mode .nta-uh__switcher-btn {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.35);
  color: #3730a3;
}
html.light-mode .nta-uh__switcher-btn:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.55);
  color: #312e81;
}
html.light-mode .nta-uh__switcher-dropdown {
  background: rgba(255, 255, 255, 0.98);
  border-color: #cbd5e1;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}
html.light-mode .nta-uh__dropdown-header {
  color: #64748b;
  border-bottom-color: #e2e8f0;
}
html.light-mode .nta-uh__dropdown-item {
  color: #1e293b;
}
html.light-mode .nta-uh__dropdown-item:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #312e81;
}
html.light-mode .nta-uh__dropdown-item.active {
  background: rgba(99, 102, 241, 0.16);
  color: #4338ca;
}
html.light-mode .nta-uh__title-en,
html.light-mode .nta-uh__user-role {
  color: #0284c7;
}
html.light-mode .nta-uh__logout-btn {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(220, 38, 38, 0.3);
  color: #dc2626;
}
html.light-mode .nta-uh__logout-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}
html.light-mode .nta-uh__denied-overlay {
  background: rgba(241, 245, 249, 0.94);
}
html.light-mode .nta-uh__denied-card {
  background: #ffffff;
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
}
html.light-mode .nta-uh__denied-title {
  color: #0f172a;
}
html.light-mode .nta-uh__denied-text {
  color: #475569;
}
html.light-mode .nta-uh__chip {
  color: #334155;
}
html.light-mode .nta-uh__chip:hover {
  color: #4f46e5;
  background: rgba(99, 102, 241, 0.12);
}
html.light-mode .nta-uh__chip.active {
  color: #4f46e5;
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.35);
}
html.light-mode .nta-uh__user-name {
  color: #0f172a;
}
html.light-mode .nta-uh__user-pill {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(203, 213, 225, 0.8);
}
html.light-mode .nta-uh__icon-btn {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(203, 213, 225, 0.8);
  color: #475569;
}
html.light-mode .nta-uh__icon-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #4f46e5;
}
html.light-mode .nta-uh__arrow-btn {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(203, 213, 225, 0.8);
  color: #334155;
}

/* Light mode for notification dropdown */
html.light-mode .nta-uh__notif-badge {
  border-color: #ffffff;
}
html.light-mode .nta-uh__notif-dropdown {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(226, 232, 240, 0.9);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}
html.light-mode .nta-uh__notif-header {
  border-bottom-color: rgba(226, 232, 240, 0.8);
  background: rgba(248, 250, 252, 0.8);
}
html.light-mode .nta-uh__notif-header-title {
  color: #0f172a;
}
html.light-mode .nta-uh__notif-action-btn {
  border-color: rgba(203, 213, 225, 0.8);
  color: #475569;
}
html.light-mode .nta-uh__notif-action-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  color: #3730a3;
  border-color: rgba(99, 102, 241, 0.35);
}
html.light-mode .nta-uh__notif-tabs {
  border-bottom-color: rgba(226, 232, 240, 0.8);
  background: rgba(248, 250, 252, 0.9);
}
html.light-mode .nta-uh__notif-tab {
  color: #64748b;
}
html.light-mode .nta-uh__notif-tab:hover {
  color: #1e293b;
  background: rgba(15, 23, 42, 0.05);
}
html.light-mode .nta-uh__notif-tab.active {
  background: rgba(99, 102, 241, 0.15);
  color: #4f46e5;
}
html.light-mode .nta-uh__notif-item {
  background: #ffffff;
  border-color: #f1f5f9;
}
html.light-mode .nta-uh__notif-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
html.light-mode .nta-uh__notif-item-title {
  color: #0f172a;
}
html.light-mode .nta-uh__notif-item.unread {
  background: rgba(238, 242, 255, 0.9);
  border-color: rgba(199, 210, 254, 0.8);
}
html.light-mode .nta-uh__notif-footer {
  border-top-color: rgba(226, 232, 240, 0.8);
  background: rgba(248, 250, 252, 0.9);
}

/* ==========================================================================
   Floating AI Chatbot Non-Obstruction & Z-Index Guarantee
   ========================================================================== */
.chat-fab, #chatFab {
  z-index: 10005 !important;
}

.chat-dialog-backdrop, #chatDialog, .chat-dialog {
  z-index: 10010 !important;
}

/* ==========================================================================
   Legacy Header, Duplicate Headers & Floating Widget Suppression 360
   ========================================================================== */
.nta-theme-fab,
#ntaThemeFab,
.notif-fab,
#notifFab,
#notificationsWidget,
header.nta-header:not(.nta-uh),
.nta-header:not(.nta-uh),
button#themeToggle.nta-header__theme,
button#langToggle:not(#ntaLangToggleBtn),
.nta-theme-toggle-fab {
  display: none !important;
}


/* ==========================================================================
   Mobile Responsive Overrides (Placed After Desktop Dropdown Rules)
   ========================================================================== */
@media (max-width: 768px) {
  .nta-uh__arrow-btn {
    display: none !important;
  }
  .nta-uh__chip,
  .nta-uh__nav-item {
    padding: 6px 10px !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
  }
  .nta-uh__notif-dropdown {
    position: fixed !important;
    top: 64px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 80px) !important;
  }
}
