.hero-search-box {
  background: white;
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.search-field {
  display: flex;
  align-items: center;
  background: #F8FAFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  gap: 8px;
  transition: border-color 0.2s;
}
.search-field:focus-within { border-color: var(--primary-light); }
.search-field i { color: var(--text-muted); font-size: 0.9rem; }
.search-field input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.9rem;
  color: var(--text-dark);
  width: 100%;
  font-family: 'Poppins', sans-serif;
}
.search-field input::placeholder { color: var(--text-muted); }

.btn-search {
  padding: 12px 28px !important;
  font-size: 0.95rem !important;
  white-space: nowrap;
}


/* ═══════════════════════════════════════
   NAVBAR — Bell / Notification Button
═══════════════════════════════════════ */

.notif-btn-nav {
  position: relative;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: .9rem;
  transition: background .2s ease, border-color .2s ease,
              color .2s ease, transform .2s ease;
  outline: none;
}
.notif-btn-nav:hover {
  background: #EFF6FF;
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.06);
}
.notif-btn-nav:active { transform: scale(.96); }

/* ── Dot badge (unread indicator) ── */
.notif-badge-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
  border: 2px solid white;          /* white gap from button edge */
  animation: notif-pulse 2s ease-in-out infinite;
}

/* ── Count badge (e.g. "5") ── */
.notif-badge-count {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 16px;
  height: 16px;
  background: #EF4444;
  border-radius: 999px;
  border: 2px solid white;
  font-size: .55rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  animation: notif-pulse 2s ease-in-out infinite;
}

@keyframes notif-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .4); }
  50%       { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}

/* ── On a dark navbar ── */
.navbar-dark .notif-btn-nav,
.bg-dark .notif-btn-nav {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .7);
}
.navbar-dark .notif-btn-nav:hover,
.bg-dark .notif-btn-nav:hover {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}
.navbar-dark .notif-badge-dot,
.navbar-dark .notif-badge-count { border-color: #071225; }


/* ═══════════════════════════════════════
   NAVBAR — User Chip
═══════════════════════════════════════ */

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px 5px 5px;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease,
              box-shadow .2s ease, transform .2s ease;
}
.user-chip:hover {
  border-color: var(--primary);
  box-shadow: 0 3px 12px rgba(21, 101, 192, .16);
  transform: translateY(-1px);
}
.user-chip:active { transform: translateY(0) scale(.98); }

.user-initials {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1565C0, #1E88E5);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: .7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(21, 101, 192, .3);
}

.user-chip-name {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}

/* ── On a dark navbar ── */
.navbar-dark .user-chip,
.bg-dark .user-chip {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .2);
}
.navbar-dark .user-chip:hover,
.bg-dark .user-chip:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .4);
  box-shadow: none;
}
.navbar-dark .user-chip-name { color: rgba(255, 255, 255, .9); }


/* ═══════════════════════════════════════
   Notification Dropdown Panel
═══════════════════════════════════════ */

.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(21, 101, 192, .18);
  z-index: 1050;
  overflow: hidden;
  transform-origin: top right;
  animation: notif-drop-in .2s cubic-bezier(.4, 0, .2, 1);
}

@keyframes notif-drop-in {
  from { opacity: 0; transform: scale(.94) translateY(-6px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

.notif-dropdown-header {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #F0F7FF, white);
}
.notif-dropdown-header h6 {
  margin: 0;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-dark);
}
.notif-mark-read {
  font-size: .7rem;
  color: var(--primary);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  transition: background .2s ease;
  cursor: pointer;
}
.notif-item:last-of-type { border-bottom: none; }
.notif-item:hover        { background: #FAFBFF; }
.notif-item.unread       { background: #F0F7FF; }

.notif-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
}
.notif-item-icon.blue   { background: #EFF6FF; color: var(--primary); }
.notif-item-icon.green  { background: #F0FDF4; color: #22C55E; }
.notif-item-icon.orange { background: #FFF7ED; color: var(--orange); }
.notif-item-icon.purple { background: #EDE9FE; color: #5B21B6; }

.notif-item-text strong {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.notif-item-text span {
  font-size: .7rem;
  color: var(--text-muted);
}

.notif-unread-dot {
  width: 7px;
  height: 7px;
  background: #3B82F6;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.notif-dropdown-footer {
  padding: 10px 16px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.notif-dropdown-footer a {
  font-size: .76rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.notif-dropdown-footer a:hover { text-decoration: underline; }