/**
 * Header Component Styles - Modern Design (PATCHED)
 * - Fix: unique keyframes for Toast (avoid duplicate names)
 * - Fix: lock search width on 1024–1199 to avoid layout shift
 * - Keep structure & theming
 */

/* CSS Variables - Sync with main page */
:root {
  --header-bg: rgba(15, 23, 42, 0.95);
  --header-border: rgba(255, 255, 255, 0.1);
  --header-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --secondary-color: #64748b;
  --accent-color: #f59e0b;
  --text-primary: #ffffff;
  --text-secondary: #f1f5f9;
  --text-light: #ffffff;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;
  --transition: all 0.2s ease-out;
  --transition-fast: all 0.1s ease-out;
}

/* ---------- Toast (PATCH: unique keyframes name) ---------- */
#toast-list {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
}

.toast {
  min-width: 300px !important;
  max-width: 400px !important;
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .3) !important;
  color: #fff !important;
  margin-bottom: 12px !important;
  animation: toastSlideInRight 0.3s ease-out !important;
  /* <— renamed */
}

.toast-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
  padding: 12px 16px 8px !important;
  border-radius: 12px 12px 0 0 !important;
  display: flex !important;
  align-items: center !important;
  font-weight: 600 !important;
}

.toast-body {
  background: transparent !important;
  padding: 8px 16px 12px !important;
  border-radius: 0 0 12px 12px !important;
  color: rgba(255, 255, 255, .9) !important;
  line-height: 1.5 !important;
}

.toast-success {
  border-left: 4px solid #10b981 !important;
}

.toast-success .toast-header {
  color: #10b981 !important;
}

.toast-danger {
  border-left: 4px solid #ef4444 !important;
}

.toast-danger .toast-header {
  color: #ef4444 !important;
}

.toast-warning {
  border-left: 4px solid #f59e0b !important;
}

.toast-warning .toast-header {
  color: #f59e0b !important;
}

.toast-info {
  border-left: 4px solid #3b82f6 !important;
}

.toast-info .toast-header {
  color: #3b82f6 !important;
}

.toast-header .btn-close {
  background: none !important;
  border: none !important;
  color: rgba(255, 255, 255, .7) !important;
  font-size: 1.2rem !important;
  margin-left: auto !important;
  cursor: pointer !important;
  transition: color .2s ease !important;
}

.toast-header .btn-close:hover {
  color: #fff !important;
}

.toast-header .btn-close::before {
  content: "×" !important;
  font-size: 1.5rem !important;
  line-height: 1 !important;
}

@keyframes toastSlideInRight {
  from {
    transform: translateX(100%) !important;
    opacity: 0;
  }

  to {
    transform: translateX(0) !important;
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .toast {
    min-width: 280px !important;
    max-width: 320px !important;
    margin-right: 1rem !important;
  }
}

.admin-page .toast {
  background: rgba(255, 255, 255, .95) !important;
  color: #1f2937 !important;
  border: 1px solid rgba(0, 0, 0, .1) !important;
}

.admin-page .toast-header {
  border-bottom: 1px solid rgba(0, 0, 0, .1) !important;
}

.admin-page .toast-body {
  color: #374151 !important;
}

.admin-page .toast-header .btn-close {
  color: rgba(0, 0, 0, .7) !important;
}

.admin-page .toast-header .btn-close:hover {
  color: #000 !important;
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--header-border);
  box-shadow: var(--header-shadow);
  transition: none;
  will-change: auto;
  transform: none;
}

/* Fix content being hidden behind fixed header */
body {
  padding-top: 80px !important;
}

.header-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, .1) 0%, rgba(147, 51, 234, .05) 100%);
  opacity: 0;
  transition: none;
}

.header:hover .header-background {
  opacity: 1;
}

.header.scrolled {
  background: var(--header-bg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
  transition: none;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  padding-left: 3rem;
  padding-right: 3rem;
  position: relative;
  z-index: 2;
  width: 100%;
  flex-wrap: nowrap;
  flex-direction: row;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  transition: none;
}

/* LOGO */
.logo-section {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  object-fit: cover;
  border: 2px solid rgba(59, 130, 246, .2);
  transition: none;
}

.logo:hover {
  border-color: var(--primary-color);
}

.brand-info {
  display: flex;
  flex-direction: column;
  gap: .125rem;
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* NAV */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  margin: 0 1rem;
  min-width: 0;
  overflow: visible;
  flex-direction: row;
  align-items: center;
}

.header .main-nav,
.header .nav-menu,
.header .nav-item,
.header .nav-link {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

.header .nav-item {
  display: inline-block;
  visibility: visible;
  opacity: 1;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: .25rem;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
}

.nav-item {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .5rem .75rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: .8125rem;
  border-radius: var(--border-radius-sm);
  transition: color 0.2s ease-out, background-color 0.2s ease-out;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

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

.nav-link.active {
  color: var(--primary-color);
  background: rgba(59, 130, 246, .1);
}

.nav-link.active::before {
  opacity: .15;
}

.nav-link i {
  font-size: 1rem;
  transition: transform 0.2s ease-out;
}

.nav-link:hover i {
  transform: scale(1.05);
}

.nav-link span {
  white-space: nowrap;
  overflow: visible;
  text-overflow: unset;
}

/* ACTIONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  min-width: 0;
  max-width: 50%;
  overflow: visible;
}

.search-container {
  position: relative;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 280px;
  padding: .75rem 1rem .75rem 2.5rem;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(226, 232, 240, .8);
  border-radius: var(--border-radius-lg);
  color: var(--text-primary);
  font-size: .875rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .1);
  width: 320px;
}

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

.search-icon {
  position: absolute;
  left: .875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1rem;
  transition: var(--transition);
}

.search-input:focus+.search-icon {
  color: var(--primary-color);
}

.search-clear {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: .25rem;
  border-radius: 50%;
  transition: var(--transition);
}

.search-clear:hover {
  color: var(--text-secondary);
  background: rgba(0, 0, 0, .05);
}

.user-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  flex-shrink: 1;
}

.user-info {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  background: rgba(59, 130, 246, .1);
  border-radius: var(--border-radius);
  border: 1px solid rgba(59, 130, 246, .2);
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .875rem;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: .125rem;
}

.user-name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.user-role {
  font-size: .75rem;
  color: var(--text-secondary);
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-radius: var(--border-radius-sm);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  transition: left .5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-login {
  background: var(--primary-color);
  color: #fff;
}

.btn-login:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, .3);
}

.btn-profile {
  background: rgba(59, 130, 246, .1);
  color: var(--primary-color);
  border: 1px solid rgba(59, 130, 246, .2);
}

.btn-profile:hover {
  background: rgba(59, 130, 246, .2);
  transform: translateY(-1px);
}

.btn-logout {
  background: rgba(239, 68, 68, .1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, .2);
}

.btn-logout:hover {
  background: rgba(239, 68, 68, .2);
  transform: translateY(-1px);
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  z-index: 10000;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: var(--transition);
  margin: 2px 0;
}

.mobile-menu-toggle:hover .hamburger-line {
  background: var(--primary-color);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--header-border);
  border-top: none;
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  box-shadow: var(--header-shadow);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 80vh;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu-header {
  padding: 1rem;
  border-bottom: 1px solid var(--header-border);
}

.mobile-search .search-box {
  width: 100%;
}

.mobile-search .search-input {
  width: 100%;
  padding: .75rem 1rem .75rem 2.5rem;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(226, 232, 240, .8);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: .875rem;
}

.mobile-nav {
  padding: .5rem 0;
  overflow-x: hidden;
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-nav-link:hover {
  color: var(--primary-color);
  background: rgba(59, 130, 246, .05);
  border-left-color: var(--primary-color);
}

.mobile-nav-link i {
  font-size: 1.125rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.mobile-nav-link span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-user-actions {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--header-border);
  display: flex;
  gap: .75rem;
  width: 100%;
  box-sizing: border-box;
}

.btn-mobile-login,
.btn-mobile-profile {
  flex: 1;
  justify-content: center;
  padding: .875rem 1rem;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.btn-mobile-login {
  background: var(--primary-color);
  color: #fff;
}

.btn-mobile-login:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-mobile-profile {
  background: rgba(59, 130, 246, .1);
  color: var(--primary-color);
  border: 1px solid rgba(59, 130, 246, .2);
}

.btn-mobile-profile:hover {
  background: rgba(59, 130, 246, .2);
}

/* RESPONSIVE */
@media (min-width: 768px) {
  .nav-item {
    display: inline-block !important;
  }

  .nav-menu {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }
}

@media (min-width: 1200px) {
  .search-input {
    width: 320px;
  }

  .search-input:focus {
    width: 360px;
  }

  .nav-menu {
    gap: 1rem;
  }

  .nav-link {
    padding: .75rem 1.25rem;
  }
}

/* Desktop 1024–1199: lock width on focus to avoid layout shift (PATCH) */
@media (min-width: 1024px) and (max-width: 1199px) {
  .search-input {
    width: 220px;
  }

  .search-input:focus {
    width: 220px;
  }

  /* lock */
  .nav-menu {
    gap: .25rem !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  .nav-link {
    padding: .5rem .5rem !important;
    font-size: .75rem !important;
  }

  .nav-link span {
    display: inline !important;
  }
}

@media (min-width:768px) and (max-width:1023px) {
  .main-nav {
    margin: 0 .5rem;
  }

  .nav-menu {
    gap: .125rem !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  .nav-link {
    padding: .5rem .375rem !important;
    font-size: .75rem !important;
  }

  .nav-link span {
    display: inline !important;
  }

  .nav-link i {
    font-size: .875rem !important;
  }

  .search-input {
    width: 180px;
  }

  .search-input:focus {
    width: 220px;
  }

  .brand-text {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: .625rem;
  }
}

@media (max-width:767px) {
  .header-content {
    padding: .75rem 0;
  }

  .main-nav {
    display: none;
    visibility: hidden;
    opacity: 0;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  .search-container {
    display: none;
  }

  .header-actions {
    gap: .25rem;
    flex-shrink: 1;
    min-width: 0;
  }

  /* Ensure header content doesn't break on mobile */
  .header-content {
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
  }

  .logo-section {
    flex-shrink: 0;
    min-width: auto;
  }

  .user-actions {
    gap: .25rem;
    flex-shrink: 1;
  }

  .btn-login {
    padding: .375rem .5rem;
    font-size: .75rem;
    white-space: nowrap;
  }

  .btn-login span {
    display: none;
  }

  .btn-login i {
    margin: 0;
  }

  .user-dropdown-toggle {
    padding: .25rem .375rem !important;
    gap: .25rem !important;
  }

  .user-dropdown-toggle span {
    display: none;
  }

  .mobile-menu-toggle {
    padding: .375rem;
    margin-left: .25rem;
  }

  .user-info {
    display: none;
  }

  .action-buttons {
    gap: .25rem;
  }

  .btn {
    padding: .625rem .75rem;
    font-size: .8125rem;
  }

  .btn span {
    display: none;
  }

  .logo {
    width: 40px;
    height: 40px;
  }

  .brand-text {
    font-size: 1.125rem;
  }

  .brand-subtitle {
    font-size: .625rem;
  }

  /* Force hide navigation on mobile */
  .nav-menu {
    display: none;
    visibility: hidden;
    opacity: 0;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nav-item {
    display: none;
    visibility: hidden;
    opacity: 0;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nav-link {
    display: none;
    visibility: hidden;
    opacity: 0;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Ensure mobile menu is properly positioned and visible */
  .mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 9999;
    width: 100vw;
    max-width: 100vw;
  }

  .mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (max-width:479px) {
  .header-content {
    padding: .5rem 0;
  }

  .logo-container {
    gap: .5rem;
  }

  .logo {
    width: 36px;
    height: 36px;
  }

  .brand-text {
    font-size: 1rem;
  }

  .brand-subtitle {
    display: none;
  }

  .header-actions {
    gap: .125rem;
  }

  .user-actions {
    gap: .125rem;
  }

  .btn-login {
    padding: .25rem .375rem;
    font-size: .625rem;
  }

  .user-dropdown-toggle {
    padding: .25rem !important;
  }

  .mobile-menu-toggle {
    padding: .25rem;
    margin-left: .125rem;
  }

  .btn {
    padding: .5rem .625rem;
    font-size: .75rem;
  }

  .mobile-menu-header {
    padding: .75rem;
  }

  .mobile-nav-link {
    padding: .875rem 1rem;
  }

  .mobile-user-actions {
    padding: .75rem 1rem;
    flex-direction: column;
  }

  /* Ensure mobile menu fits on very small screens */
  .mobile-menu {
    max-height: 70vh;
    left: 0;
    right: 0;
    width: 100vw;
  }

  .mobile-nav-link {
    font-size: .875rem;
    padding: .75rem 1rem;
  }

  .mobile-nav-link span {
    font-size: .875rem;
  }
}

/* Generic animations (keep distinct from toast) */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll effects */
.header.scrolled {
  background: var(--header-bg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
}

.header.scrolled .header-background {
  opacity: .5;
}

/* USER DROPDOWN */
.user-dropdown {
  position: relative !important;
  /* display: inline-block !important; - Removed to allow JS control */
}

.user-dropdown-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.375rem 0.625rem !important;
  background: rgba(59, 130, 246, 0.1) !important;
  color: #ffffff !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
}

.user-avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  flex-shrink: 0 !important;
  position: relative !important;
  overflow: visible !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.user-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

.user-avatar span {
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.user-dropdown-toggle:hover {
  background: rgba(59, 130, 246, 0.2) !important;
}

.user-dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  margin-top: 0.5rem !important;
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(51, 65, 85, 0.3) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
  min-width: 180px !important;
  display: none;
  z-index: 9999 !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease !important;
}

.user-dropdown-menu.show {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Force show when class is present */
.user-dropdown-menu.show[style*="display: none"] {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 0.75rem 1rem !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease !important;
  border: none !important;
  background: none !important;
  width: 100% !important;
  text-align: left !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
}

.user-dropdown-item:hover {
  background: rgba(59, 130, 246, 0.1) !important;
  color: #60a5fa !important;
}

.user-dropdown-item.logout {
  color: #ef4444 !important;
  border-top: 1px solid rgba(51, 65, 85, 0.3) !important;
}

.user-dropdown-item.logout:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #f87171 !important;
}

/* A11y */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.nav-link:focus,
.btn:focus,
.search-input:focus,
.mobile-menu-toggle:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

@media (prefers-contrast: high) {
  .header {
    background: var(--header-bg);
    border-bottom: 2px solid var(--header-border);
  }

  .nav-link {
    color: var(--text-primary);
  }

  .nav-link:hover {
    background: var(--primary-color);
    color: #fff;
  }
}

/* Ensure dropdown is visible */
.user-dropdown {}

.user-actions {}

.header-actions {}

/* Ensure dropdown is visible */
.user-dropdown {
  overflow: visible !important;
}

.user-actions {
  overflow: visible !important;
}

.header-actions {
  overflow: visible !important;
}

/* Force dropdown to be visible when show class is present */
.user-dropdown-menu.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  position: absolute !important;
  z-index: 9999 !important;
}