.app-shell {
  --shell-nav-bg: #0d1721;
  --shell-nav-surface: #1f2937;
  --shell-nav-surface-hover: #374151;
  --shell-nav-text: #d1d5db;
  --shell-nav-text-strong: #ffffff;
  --shell-border: #e5e7eb;
  --shell-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
  --shell-mobile-side-gap: 0.75rem;
}

.app-shell .public-nav-container {
  width: min(1200px, calc(100% - 40px));
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.app-shell .user-nav {
  position: relative;
  z-index: 80;
  background: var(--shell-nav-bg);
}

.app-shell .shell-nav-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 1.75rem;
}

.app-shell .shell-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.95rem;
  border-radius: 0.6rem;
  color: var(--shell-nav-text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.app-shell .shell-nav-link:hover,
.app-shell .shell-nav-link.is-active {
  background: #182433;
  color: var(--shell-nav-text-strong);
}

.app-shell .shell-nav-link.is-highlight {
  background: var(--shell-nav-surface);
  color: var(--shell-nav-text-strong);
}

.app-shell .desktop-nav-actions .ml-4.flex.items-center.md\:ml-6,
.app-shell .desktop-nav-actions .shell-nav-action-group {
  gap: 0.75rem;
}

.app-shell .shell-nav-action-group {
  position: relative;
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-shell #notif-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 9999px;
  background: var(--shell-nav-surface);
  color: #9ca3af;
}

.app-shell #notif-toggle:hover {
  color: var(--shell-nav-text-strong);
}

.app-shell #notif-toggle svg {
  width: 24px;
  height: 24px;
}

.app-shell #profile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #e5e7eb;
}

.app-shell #profile-menu-toggle .material-symbols-outlined {
  font-size: 36px !important;
  line-height: 1;
}

.app-shell #notif-dropdown,
.app-shell #notif-dropdown *,
.app-shell #mobile-notif-dropdown,
.app-shell #mobile-notif-dropdown *,
.app-shell #password-modal,
.app-shell #password-modal *,
.app-shell #interviews-nav-modal,
.app-shell #interviews-nav-modal * {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.app-shell #notif-dropdown,
.app-shell #mobile-notif-dropdown,
.app-shell .profile-menu-dropdown,
.app-shell #password-modal .max-w-md,
.app-shell #interviews-nav-modal .interviews-nav-panel {
  background: #ffffff;
  box-shadow: var(--shell-shadow);
}

.app-shell #notif-dropdown,
.app-shell #mobile-notif-dropdown {
  overflow: hidden;
  border: 1px solid var(--shell-border);
  border-radius: 0.75rem;
}

.app-shell #notif-list .notif-item:last-child,
.app-shell #mobile-notif-list .notif-item:last-child {
  border-bottom: none;
}

.app-shell #notif-dropdown .notif-item,
.app-shell #mobile-notif-dropdown .notif-item {
  align-items: flex-start;
  border-color: #d1d5db;
  color: #374151;
}

.app-shell #notif-dropdown .notif-close,
.app-shell #mobile-notif-dropdown .notif-close {
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 1.25rem;
  line-height: 1;
}

.app-shell #notif-dropdown .notif-close:hover,
.app-shell #mobile-notif-dropdown .notif-close:hover {
  color: #4b5563;
}

.app-shell .profile-menu-dropdown {
  width: 14rem;
  overflow: hidden;
  border-radius: 0.3rem;
  border: 1px solid #e4e6eb;
}

.app-shell .profile-menu-item {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  color: #1f2937;
}

.app-shell .profile-menu-item:hover {
  background-color: #e5e7eb;
}

.app-shell .profile-menu-logout-form {
  border-top: 1px solid #e4e6eb;
}

.app-shell .profile-menu-logout-btn {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  color: #ef4444;
}

.app-shell .profile-menu-logout-btn,
.app-shell .profile-menu-logout-btn span {
  color: #ef4444 !important;
}

.app-shell .profile-menu-logout-btn:hover {
  background-color: #e5e7eb;
}

.app-shell .profile-menu-logout-btn .material-symbols-outlined {
  font-size: 18px;
}

.app-shell .password-rules {
  border: 1px solid #ef4444;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.app-shell .password-rules-title {
  margin: 0 0 8px;
  font-size: 12px;
  color: #dc2626;
  font-weight: 600;
}

.app-shell .password-rules-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.app-shell .password-rule {
  font-size: 12px;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.app-shell .password-rule-icon {
  width: 16px;
  text-align: center;
  font-weight: 700;
  color: #dc2626;
  line-height: 1;
  font-size: 13px;
}

.app-shell .password-rule.ok {
  color: #15803d;
}

.app-shell .password-rule.ok .password-rule-icon {
  color: #16a34a;
}

.app-shell .password-rules.ok {
  border-color: #22c55e;
}

.app-shell .password-rules-summary {
  display: none;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #15803d;
}

.app-shell .password-rules.complete .password-rules-title,
.app-shell .password-rules.complete .password-rules-list {
  display: none;
}

.app-shell .password-rules.complete .password-rules-summary {
  display: block;
}

.app-shell .password-rules.complete {
  border: 0;
  background: transparent;
  padding: 0;
}

.app-shell #password-modal .max-w-md {
  width: min(28rem, calc(100vw - 32px)) !important;
  max-width: none !important;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.app-shell #password-modal .material-symbols-outlined,
.app-shell #interviews-nav-modal .material-symbols-outlined {
  font-family: "Material Symbols Outlined" !important;
}

.app-shell #password-modal h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
}

.app-shell #password-modal form {
  display: grid;
  gap: 0.75rem;
}

.app-shell #password-modal input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #111827;
  background: #ffffff;
}

.app-shell #password-modal input::placeholder {
  color: #9ca3af;
}

.app-shell #password-modal .password-toggle {
  color: #6b7280;
}

.app-shell #password-modal .password-toggle:hover {
  color: #374151;
}

.app-shell #password-modal-close {
  font-size: 1.5rem;
  line-height: 1;
}

.app-shell #modal-update-password-btn {
  border: 0;
  border-radius: 0.375rem;
  background: #1d4ed8;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #ffffff;
}

.app-shell #modal-update-password-btn:disabled {
  cursor: not-allowed;
  background: #9ca3af;
}

.app-shell .password-match-message {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 500;
}

.app-shell #modal-current-password-message {
  margin-top: -5px;
  margin-bottom: 10px;
}

.app-shell .password-match-message.ok {
  color: #15803d;
}

.app-shell .password-match-message.error {
  color: #dc2626;
}

.app-shell .password-match-message.ok::before,
.app-shell .password-match-message.error::before {
  display: inline-block;
  width: 14px;
  margin-right: 6px;
  font-weight: 700;
  text-align: center;
}

.app-shell .password-match-message.ok::before {
  content: '\2713';
}

.app-shell .password-match-message.error::before {
  content: '\00D7';
}

.app-shell #interviews-nav-modal .interviews-nav-panel {
  width: min(38rem, calc(100vw - 32px));
  border-radius: 1rem;
  padding: 1.5rem;
}

.app-shell #interviews-nav-modal .interviews-nav-list {
  display: grid;
  gap: 0.875rem;
}

.app-shell #interviews-nav-modal .interviews-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.app-shell #interviews-nav-modal .interviews-nav-item:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.app-shell #interviews-nav-modal .interviews-nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
}

.app-shell #interviews-nav-modal .interviews-nav-deadline {
  font-size: 0.95rem;
  color: #6b7280;
  white-space: nowrap;
}

.app-shell .user-nav-link {
  display: block;
  border-radius: 0.5rem;
  padding: 0.75rem 0.875rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--shell-nav-text);
}

.app-shell .user-nav-link:hover,
.app-shell .user-nav-link.active {
  background: #182433;
  color: var(--shell-nav-text-strong);
}

.app-shell .user-nav-link.user-nav-link-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ef4444;
}

.app-shell .user-nav-link.user-nav-link-danger,
.app-shell .user-nav-link.user-nav-link-danger span {
  color: #ef4444 !important;
}

.app-shell #mobile-menu .user-nav-link.user-nav-link-danger {
  margin-top: -0.35rem;
  width: auto;
}

.app-shell .user-nav-link.user-nav-link-danger:hover {
  background: #2a1720;
  color: #f87171;
}

.app-shell button.user-nav-link {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}

.app-shell .user-mobile-section-title {
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.app-shell .mobile-top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-width: 42px;
  padding: 0 0.9rem;
  border-radius: 0.5rem;
  background: var(--shell-nav-surface);
  color: var(--shell-nav-text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.app-shell .mobile-top-link:hover,
.app-shell .mobile-top-link.active {
  background: var(--shell-nav-surface-hover);
  color: var(--shell-nav-text-strong);
}

.app-shell .mobile-menu-body {
  padding-top: 0.2rem;
}

.app-shell .mobile-menu-section {
  padding-top: 1rem;
}

.app-shell .mobile-menu-section + .mobile-menu-section {
  margin-top: 0.5rem;
}

.app-shell .mobile-menu-section-logout {
  margin-top: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #2f3a4d;
}

.app-shell #mobile-notif-toggle,
.app-shell #mobile-menu-toggle {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  max-width: 42px;
  max-height: 42px;
  flex: 0 0 42px;
  box-sizing: border-box;
}

.app-shell .mobile-notif-dropdown {
  position: fixed;
  top: calc(64px + 0.75rem);
  right: var(--shell-mobile-side-gap);
  z-index: 95;
  width: min(22rem, calc(100vw - (var(--shell-mobile-side-gap) * 2)));
}

.app-shell #mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 90;
  display: block;
  padding: 0;
  opacity: 0;
  transform: translateY(-18px);
  pointer-events: none;
  visibility: hidden;
  background: transparent;
  box-shadow: none;
  transition: opacity 0.32s ease, transform 0.42s ease, visibility 0.32s ease;
}

.app-shell .mobile-menu-card {
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  border-radius: 0 0 14px 14px;
  background: var(--shell-nav-bg);
  padding: 1rem 1.1rem 1.25rem;
  box-shadow: 0 22px 48px rgba(2, 6, 23, 0.38);
}

.app-shell #mobile-menu.mobile-menu-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.app-shell.landing-home .user-nav {
  position: sticky;
  top: 0;
  z-index: 120;
}

.app-shell.landing-home {
  scroll-padding-top: 80px;
}

@media (max-width: 1024px) {
  .app-shell {
    --shell-mobile-side-gap: 1rem;
  }

  .app-shell .desktop-nav-links,
  .app-shell .desktop-nav-actions {
    display: none !important;
  }

  .app-shell .mobile-jobs-link {
    display: none !important;
  }

  .app-shell .mobile-top-controls {
    display: flex !important;
  }

  .app-shell .mobile-menu-panel {
    display: block !important;
  }
}

@media (min-width: 1025px) {
  .app-shell .desktop-nav-links,
  .app-shell .desktop-nav-actions {
    display: block !important;
  }

  .app-shell .mobile-jobs-link,
  .app-shell .mobile-top-controls,
  .app-shell .mobile-menu-panel {
    display: none !important;
  }

  .app-shell.landing-home .header,
  .app-shell.landing-home .about,
  .app-shell.landing-home .offer,
  .app-shell.landing-home .offerb,
  .app-shell.landing-home .frimann,
  .app-shell.landing-home .contact {
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
  }

  .app-shell.landing-home .header,
  .app-shell.landing-home .frimann,
  .app-shell.landing-home .contact {
    background-color: #1d4aa8;
  }

  .app-shell.landing-home .about,
  .app-shell.landing-home .offerb {
    background-color: #eaf5fc;
  }

  .app-shell.landing-home .offer {
    background-color: #ffffff;
  }

  .app-shell.landing-home .header { z-index: 1; }
  .app-shell.landing-home .about { z-index: 2; }
  .app-shell.landing-home .offer { z-index: 3; }
  .app-shell.landing-home .offerb { z-index: 4; }
  .app-shell.landing-home .frimann { z-index: 5; }
  .app-shell.landing-home .contact { z-index: 6; }
}

@media (max-width: 768px) {
  .app-shell {
    --shell-mobile-side-gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .app-shell #interviews-nav-modal .interviews-nav-panel {
    width: min(28rem, calc(100vw - 32px));
    padding: 1.35rem;
  }

  .app-shell #interviews-nav-modal .interviews-nav-item {
    padding: 0.9rem 1rem;
  }

  .app-shell #interviews-nav-modal .interviews-nav-title,
  .app-shell #interviews-nav-modal .interviews-nav-deadline {
    font-size: 0.9rem;
  }
}

@media (max-width: 560px) {
  .app-shell {
    --shell-mobile-side-gap: 0.625rem;
  }

  .app-shell .mobile-menu-card {
    max-height: calc(100vh - 64px);
    padding: 0.9rem 0.95rem 1.1rem;
  }
}
