/* Shared app/admin header. Only the header and its children are styled here.
   Bootstrap primitives are provided by Bootstrap in the app and admin-header.css in the admin. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../vendor/fonts/plus-jakarta-sans-latin-wght-normal.7660bd9909fb.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.site-header {
  --primary-navy: #0a1128; --secondary-navy: #1c2541;
  --accent-gold: #f59e0b; --accent-glow: rgba(245, 158, 11, 0.2);
  --border-light: #e2e8f0; --radius-lg: 12px; --touch-target: 44px;
  --text-dark: #0f172a; --text-muted: #64748b; --app-danger: #b02a37;
  font-family: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif;
  font-size: 1rem; line-height: 1.5; font-weight: 400; color: var(--text-dark);
  font-feature-settings: "tnum" 1;
}
html[lang="en"] .site-header .brand-product { font-family: "Plus Jakarta Sans", "Cairo", system-ui, sans-serif; }
.site-header .wide-container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 576px) { .site-header .wide-container { padding-inline: 1.5rem; } }
.site-header .dropdown-menu { overflow-wrap: anywhere; }

.site-header {
  position: sticky; top: 0; z-index: 1030; padding: 12px 0;
  background: rgba(10, 17, 40, 0.92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


.site-header .navbar > .wide-container { flex-wrap: wrap; row-gap: 0.625rem; }

.site-header .brand-logo { display: flex; align-items: center; gap: 12px; margin: 0; margin-inline-end: 2rem; padding: 0; min-width: 0; min-height: var(--touch-target);
  color: #fff; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.5px; line-height: 1.1; }

.site-header .brand-logo:hover,
.site-header .brand-logo:focus { color: #fff; }

.site-header .brand-logo:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 4px; border-radius: 10px; }

.site-header .brand-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 10px; color: #fff; font-size: 1.15rem;
  background: linear-gradient(135deg, var(--accent-gold), #d97706);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.site-header .brand-text { display: flex; flex-direction: column; min-width: 0; }

.site-header .brand-line { display: flex; align-items: baseline; gap: 10px; }

.site-header .brand-product { font-size: 0.95rem; font-weight: 700; letter-spacing: 0; color: #fcd34d; white-space: nowrap; unicode-bidi: plaintext; }

.site-header .brand-name + .brand-product { padding-inline-start: 10px; border-inline-start: 1px solid rgba(255, 255, 255, 0.2); }

.site-header .brand-org { display: none; font-size: 0.72rem; font-weight: 500; letter-spacing: 0; color: #94a3b8; margin-top: 3px; white-space: nowrap; }

@media (min-width: 1200px) {
.site-header .brand-org { display: block; }
}

@media (max-width: 575.98px) {
.site-header .brand-name { display: none; }

.site-header .brand-name + .brand-product { padding-inline-start: 0; border: 0; }

.site-header .brand-product { font-size: 1.05rem; }
}

.site-header .navbar-toggler { min-width: var(--touch-target); min-height: var(--touch-target); border-color: rgba(255, 255, 255, 0.2); border-radius: 10px; }

.site-header .navbar-toggler:focus { box-shadow: none; }

.site-header .navbar-toggler:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }

.site-header .btn-bell {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: var(--touch-target); height: var(--touch-target); padding: 0; margin-inline-start: auto;
  color: #cbd5e1; font-size: 1.1rem; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 50%;
}

.site-header .btn-bell,
.site-header .btn-lang {
  --bs-btn-active-color: #fff; --bs-btn-active-bg: rgba(255, 255, 255, 0.14); --bs-btn-active-border-color: rgba(255, 255, 255, 0.3);
}

.site-header .btn-bell:hover { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }

.site-header .btn-bell:focus-visible { color: #fff; outline: 2px solid var(--accent-gold); outline-offset: 2px; box-shadow: none; }

.site-header .btn-bell[aria-current="page"] { color: #fff; border-color: var(--accent-gold); }

.site-header .btn-bell .bell-badge { position: absolute; top: -8px; inset-inline-end: -8px; min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; line-height: 1; border: 2px solid var(--primary-navy); }

.site-header .btn-bell + .navbar-toggler { margin-inline-start: 14px; }

@media (max-width: 991.98px) {
.site-header .brand-logo { flex: 1 1 0; margin-inline-end: .5rem; gap: 8px; }

.site-header .brand-line { min-width: 0; }

.site-header .brand-product { overflow: hidden; text-overflow: ellipsis; padding-block: .3em; margin-block: -.3em; }

.site-header .navbar-toggler { padding: .25rem .5rem; }
}

@media (min-width: 992px) {
.site-header .navbar-collapse { display: contents !important; }

.site-header .brand-logo { order: 0; }

.site-header .header-actions { order: 1; margin-inline-start: auto; }

.site-header .btn-bell { order: 2; margin-inline-start: 10px; }

.site-header .nav-pills-custom { order: 3; flex: 1 0 100%; flex-wrap: wrap; margin: 0; }
}

.site-header .nav-pills-custom { gap: 4px; --bs-navbar-nav-link-padding-x: 18px; }

@media (min-width: 992px) and (max-width: 1199.98px) {
.site-header .nav-pills-custom { --bs-navbar-nav-link-padding-x: 12px; }
}

.site-header .nav-pills-custom .nav-link {
  display: flex; align-items: center; gap: 8px; min-height: var(--touch-target);
  color: #cbd5e1; font-weight: 600; font-size: 0.95rem; padding-block: 10px; padding-inline: var(--bs-navbar-nav-link-padding-x);
  border-radius: 50px; transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.site-header .nav-pills-custom .nav-link:hover,
.site-header .nav-pills-custom .nav-link:focus-visible {
  color: #fff; background: rgba(255, 255, 255, 0.08); transform: translateY(-1px);
}

.site-header .nav-pills-custom .nav-link.active { color: #fff; background: rgba(245, 158, 11, 0.16); }

.site-header .nav-pills-custom .nav-link.active i { color: var(--accent-gold); }

.site-header .nav-pills-custom .nav-link:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }

.site-header .header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.site-header .language-switch { display: inline-flex; margin: 0; }

.site-header .btn-lang {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  color: #cbd5e1; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 50px; padding: 6px 16px;
}

.site-header .btn-lang:hover,
.site-header .btn-lang:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }

.site-header .btn-profile {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; max-width: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.15); color: #fff; font-weight: 700; border-radius: 50px; padding: 8px 20px;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
  --bs-btn-active-color: #000; --bs-btn-active-bg: var(--accent-gold); --bs-btn-active-border-color: var(--accent-gold);
}

.site-header .btn-profile:hover,
.site-header .btn-profile:focus-visible,
.site-header .btn-profile.show,
.site-header .btn-profile:active {
  background: var(--accent-gold); border-color: var(--accent-gold); color: #000; box-shadow: 0 4px 16px var(--accent-glow);
}

.site-header .profile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14rem; padding-block: .25em; margin-block: -.25em; unicode-bidi: plaintext; }

.site-header .dropdown-menu-custom {
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14); padding: 12px; min-width: min(260px, calc(100vw - 2rem));
}

.site-header .dropdown-menu-custom .dropdown-item {
  display: flex; align-items: center; gap: 10px; min-height: var(--touch-target);
  font-weight: 600; font-size: 0.92rem; border-radius: 8px; color: var(--text-dark); white-space: normal;
}

.site-header .dropdown-menu-custom .dropdown-item i { color: var(--text-muted); }

.site-header .dropdown-menu-custom .dropdown-item:hover,
.site-header .dropdown-menu-custom .dropdown-item:focus { background: #fef3c7; color: #b45309; }

.site-header .dropdown-menu-custom .dropdown-item:hover i,
.site-header .dropdown-menu-custom .dropdown-item:focus i { color: #b45309; }

.site-header .dropdown-menu-custom .dropdown-item-signout { color: var(--app-danger); }

.site-header .dropdown-menu-custom .dropdown-item-signout i { color: var(--app-danger); }

.site-header .dropdown-menu-custom .dropdown-item-signout:hover,
.site-header .dropdown-menu-custom .dropdown-item-signout:focus { background: #fee2e2; color: #842029; }

.site-header .dropdown-menu-custom form { margin: 0; }

.site-header .dropdown-profile { display: flex; flex-direction: column; padding: 4px 12px 8px; }

.site-header .dropdown-profile-name { font-weight: 800; }

.site-header .dropdown-profile-email { font-size: 0.82rem; color: var(--text-muted); overflow-wrap: anywhere; align-self: flex-start; max-width: 100%; }

@media (max-width: 991.98px) {
.site-header .navbar-collapse {
    background: var(--secondary-navy); padding: 20px; margin-top: 12px;
    border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, 0.08);
    max-height: calc(100vh - 88px); max-height: calc(100dvh - 88px); overflow-y: auto;
  }

.site-header .nav-pills-custom { --bs-navbar-nav-link-padding-x: 14px; }

.site-header .nav-pills-custom .nav-link:hover { transform: none; }

.site-header .header-actions { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.1); flex-direction: column; align-items: stretch; }

.site-header .btn-lang,
.site-header .btn-profile { min-height: var(--touch-target); width: 100%; justify-content: center; }

.site-header .profile-name { max-width: none; }

.site-header .header-actions .dropdown-menu-custom { position: static; width: 100%; min-width: 0; margin-top: 8px; box-shadow: none; }

.site-header .navbar > .wide-container > .header-actions { margin-top: 0; padding-top: 0; border-top: 0; }
}

@media (max-width: 991.98px), (pointer: coarse) {
  .site-header .btn { min-height: var(--touch-target); display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
}
@media print { .site-header { display: none !important; } }
