@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --background: #080c17;
  --card-bg: #111726;
  --card-border: #252d40;
  --text-primary: #f8fafc;
  --text-secondary: #9ca3b5;
  --accent-blue: #4361ee;
}

html,
body,
button,
input,
select,
textarea,
body *:not(i):not([class*="fa-"]) {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
}

html body,
html body[style] {
  background: #080c17 !important;
  color: #f8fafc !important;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 { color: #f8fafc !important; }

body input:not([type="checkbox"]):not([type="radio"]),
body select,
body textarea {
  border-color: #252d40;
  background-color: #111726;
  color: #f8fafc;
}

body input::placeholder,
body textarea::placeholder { color: #9ca3b5; }

body input:focus,
body select:focus,
body textarea:focus {
  border-color: #4361ee;
  outline-color: #4361ee;
}

.header:has(.menu-toggle-img),
.header:has(.smart-logo),
.header:has(img[src*="logo"]),
.header:has(img[src*="everlast-page"]),
.activity-header,
.nav-toggle,
.salary-menu-toggle {
  display: none !important;
}

.nx-app-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  width: 100%;
  box-sizing: border-box;
  flex: 0 0 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px max(18px, calc((100% - 1120px) / 2));
  border-bottom: 1px solid rgba(125, 170, 230, .28);
  background:
    radial-gradient(circle at 88% 4%, rgba(65, 133, 220, .2), transparent 42%),
    linear-gradient(135deg, #07152b 0%, #0b2a52 52%, #123d70 100%);
  box-shadow: 0 8px 24px rgba(3, 20, 44, .38);
}

.nx-app-header button,
.nx-app-header a { -webkit-tap-highlight-color: transparent; }

.nx-header-menu {
  position: relative !important;
  flex: 0 0 auto;
  width: 42px !important;
  height: 42px !important;
  display: grid !important;
  place-items: center;
  padding: 4px !important;
  transform: none !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  cursor: pointer;
  box-shadow: none !important;
}

.nx-header-menu img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.nx-header-brand {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  margin-left: 0;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.nx-header-brand img { display: block; flex: 0 0 auto; width: 46px; height: 46px; max-width: 45vw; object-fit: contain; }
.nx-header-brand .nx-header-brand-name {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1;
  text-overflow: clip;
  text-shadow: 0 0 12px rgba(96, 165, 250, .26);
}
.nx-header-brand .nx-header-brand-plus {
  background: linear-gradient(110deg, #93c5fd 0%, #38bdf8 48%, #2563eb 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.nx-header-actions {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 0;
}

.nx-header-notifications {
  position: relative !important;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(125, 211, 252, .38);
  border-radius: 14px;
  background: linear-gradient(145deg, #173f75 0%, #0d2b56 56%, #081a35 100%);
  color: #dbeafe;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(3, 20, 44, .34), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.nx-header-notifications:hover,
.nx-header-notifications:focus-visible {
  border-color: rgba(125, 211, 252, .78);
  background: linear-gradient(145deg, #20558f 0%, #123b70 56%, #0b2346 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(3, 20, 44, .42), 0 0 0 4px rgba(56, 189, 248, .1);
}
.nx-header-notifications > svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.nx-header-notifications .notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f43f5e 0%, #2563eb 55%, #2563eb 100%);
  color: #fff;
  border: 2px solid #0b2346;
  box-shadow: 0 5px 14px rgba(192, 38, 211, .48), 0 0 0 2px rgba(244, 63, 94, .08);
  font: 800 11px/1 Inter, Arial, sans-serif;
  letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}
.nx-header-notifications .notification-badge[hidden] { display: none !important; }

.nx-header-profile {
  width: 40px;
  height: 40px;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(191, 219, 254, .45);
  border-radius: 50%;
  background: #111827;
}
.nx-header-profile img { width: 100%; height: 100%; display: block; object-fit: cover; }
.nx-header-logout {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, .38);
  border-radius: 14px;
  background: linear-gradient(145deg, #173f75 0%, #0d2b56 56%, #081a35 100%);
  color: #dbeafe;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(3, 20, 44, .34), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}
.nx-header-logout:hover,
.nx-header-logout:focus-visible {
  border-color: rgba(125, 211, 252, .78);
  background: linear-gradient(145deg, #20558f 0%, #123b70 56%, #0b2346 100%);
  color: #fff;
  transform: translateY(-1px);
}
.nx-header-logout svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.nx-header-login {
  padding: 9px 14px;
  border: 1px solid rgba(191, 219, 254, .38);
  border-radius: 10px;
  color: #fff;
  font: 600 .9rem/1.2 Arial, sans-serif;
  text-decoration: none;
}

.registration-header,
.login-header {
  border-color: rgba(125, 170, 230, .28) !important;
  background:
    radial-gradient(circle at 88% 4%, rgba(65, 133, 220, .18), transparent 44%),
    linear-gradient(135deg, #07152b 0%, #0b2a52 52%, #123d70 100%) !important;
  box-shadow: 0 12px 30px rgba(3, 20, 44, .3) !important;
}

.login-shell::before,
.login-welcome {
  background:
    radial-gradient(circle at 88% 4%, rgba(65, 133, 220, .2), transparent 42%),
    linear-gradient(135deg, #07152b 0%, #0b2a52 52%, #123d70 100%) !important;
}

.login-content .container {
  border-color: #252d40 !important;
  background: linear-gradient(145deg, #111726, #0b1424) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .3) !important;
}

.login-content .form-group,
.registration-form .form-group {
  border-color: rgba(125, 170, 230, .18) !important;
  background: rgba(17, 23, 38, .76) !important;
}

.login-content .form-group input,
#registration-form input,
#registration-form select,
.language-picker select {
  border-color: rgba(125, 170, 230, .28) !important;
  background: #111726 !important;
  color: #f8fafc !important;
}

.login-content .btn,
#registration-form button,
#registration-form .btn {
  border-color: rgba(125, 170, 230, .3) !important;
  background: linear-gradient(135deg, #123d70, #1d4ed8) !important;
  color: #fff !important;
}

.nx-notification-panel {
  position: fixed;
  top: 78px;
  right: max(16px, calc((100% - 1120px) / 2));
  z-index: 1500;
  width: min(360px, calc(100vw - 24px));
  max-height: min(70vh, 520px);
  overflow: auto;
  border: 1px solid rgba(147, 197, 253, .22);
  border-radius: 16px;
  background: #111827;
  color: #f8fafc;
  box-shadow: 0 20px 48px rgba(2, 8, 23, .38);
}
.nx-notification-panel[hidden] { display: none !important; }
.nx-notification-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, .2);
}
.nx-notification-panel-heading h2 { margin: 0; font-size: 1rem; }
.nx-notification-panel-heading button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s, transform .2s;
}
.nx-notification-panel-heading button:hover { color: #BFDBFE; transform: rotate(90deg); }
.nx-notification-list { padding: 8px 16px; }
.nx-notification-empty { padding: 12px 0; color: #aab4c5; font-size: .9rem; }
.nx-notification-item { padding: 12px 0; border-bottom: 1px solid rgba(148, 163, 184, .16); }
.nx-notification-item:last-child { border-bottom: 0; }
.nx-notification-item strong { font-size: .9rem; }
.nx-notification-item p { margin: 5px 0 0; color: #cbd5e1; font-size: .85rem; line-height: 1.45; }

.dashboard-page .nx-app-header {
  border-bottom-color: #202737;
  background: #080d18;
  box-shadow: none;
}
.dashboard-page .nx-header-notifications .notification-badge {
  background: #ffbc2d;
  color: #111827;
}
.dashboard-page .nx-notification-panel {
  border-color: #242d41;
  background: #111726;
}
.dashboard-page .nx-notification-panel-heading {
  border-bottom-color: #242d41;
}
.dashboard-page .nx-notification-panel-heading h2 {
  color: #ffbc2d !important;
}

@media (max-width: 600px) {
  .nx-app-header { min-height: 64px; padding: 8px 10px; gap: 0; }
  .nx-header-menu { width: 36px !important; height: 36px !important; }
  .nx-header-menu img { width: 30px; height: 30px; }
  .nx-header-brand { gap: 6px; }
  .nx-header-brand img { width: 38px; height: 38px; }
  .nx-header-brand .nx-header-brand-name { font-size: clamp(12px, 3.8vw, 16px); letter-spacing: .015em; }
  .nx-header-actions { gap: 5px; }
  .nx-header-notifications, .nx-header-profile, .nx-header-logout { width: 34px; height: 34px; }
  .nx-header-notifications > svg { width: 21px; height: 21px; }
  .nx-notification-panel { top: 70px; right: 12px; }
}

@media (max-width: 360px) {
  .nx-app-header { padding-right: 7px; padding-left: 7px; }
  .nx-header-menu { width: 31px !important; height: 34px !important; }
  .nx-header-menu img { width: 27px; height: 27px; }
  .nx-header-brand { gap: 4px; }
  .nx-header-brand img { width: 32px; height: 32px; }
  .nx-header-brand .nx-header-brand-name { font-size: 11px; letter-spacing: 0; }
  .nx-header-actions { gap: 3px; }
  .nx-header-notifications, .nx-header-profile, .nx-header-logout { width: 31px; height: 32px; }
  .nx-header-notifications > svg, .nx-header-logout svg { width: 19px; height: 19px; }
}
