/* MISWIMS — Topbar notification bell (Phase 5) */

.notif-bell-wrap {
  position: relative;
}

.notif-bell-btn {
  color: rgba(255, 255, 255, 0.92) !important;
  padding: 0.5rem 0.65rem !important;
  position: relative;
}

.notif-bell-btn:hover {
  color: #fff !important;
}

.notif-bell-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border-radius: 999px;
  background: #e74a3b;
  color: #fff;
  border: 2px solid #4e73df;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.notif-dropdown {
  width: 360px;
  max-width: calc(100vw - 24px);
  border: none;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  margin-top: 0.65rem;
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
  color: #fff;
}

.notif-dropdown-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

.notif-mark-all {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
}

.notif-mark-all:hover {
  color: #fff;
  text-decoration: underline;
}

.notif-dropdown-body {
  max-height: 380px;
  overflow-y: auto;
  background: #fff;
}

.notif-dropdown-body::-webkit-scrollbar {
  width: 6px;
}

.notif-dropdown-body::-webkit-scrollbar-thumb {
  background: #d1d3e2;
  border-radius: 3px;
}

.notif-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #eaecf4;
  text-decoration: none !important;
  color: inherit;
  transition: background 0.15s ease;
  cursor: pointer;
}

.notif-item:hover {
  background: #f8f9fc;
}

.notif-item.unread {
  background: #f0f4ff;
}

.notif-item.unread:hover {
  background: #e8eeff;
}

.notif-item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #4e73df;
  background: #eaecf4;
}

.notif-item-icon.type-attendance_approved {
  color: #1cc88a;
  background: #e8f8f2;
}

.notif-item-icon.type-attendance_flagged {
  color: #e74a3b;
  background: #fdecea;
}

.notif-item-icon.type-evaluation_submitted {
  color: #36b9cc;
  background: #e8f6f8;
}

.notif-item-icon.type-announcement {
  color: #4e73df;
  background: #e8eeff;
}

.notif-item-content {
  flex: 1;
  min-width: 0;
}

.notif-item-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #3a3b45;
  margin: 0 0 0.15rem;
  line-height: 1.35;
}

.notif-item-body {
  font-size: 0.76rem;
  color: #858796;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-item-time {
  font-size: 0.68rem;
  color: #b7b9cc;
  margin-top: 0.25rem;
}

.notif-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #858796;
}

.notif-empty i {
  font-size: 2rem;
  opacity: 0.25;
  margin-bottom: 0.5rem;
}

.notif-dropdown-footer {
  padding: 0.65rem 1rem;
  background: #f8f9fc;
  border-top: 1px solid #eaecf4;
  text-align: center;
}

.notif-dropdown-footer a {
  font-size: 0.78rem;
  font-weight: 600;
}

.notice-read-stats {
  font-size: 0.72rem;
  color: #858796;
  margin-top: 0.35rem;
}

.notice-read-stats i {
  color: #4e73df;
}

body.dark-mode .notif-dropdown-body {
  background: #2d3748;
}

body.dark-mode .notif-item {
  border-color: #4a5568;
  color: #e2e8f0;
}

body.dark-mode .notif-item.unread {
  background: #1a365d;
}

body.dark-mode .notif-item:hover {
  background: #4a5568;
}

body.dark-mode .notif-item-title {
  color: #f7fafc;
}

body.dark-mode .notif-item-body {
  color: #a0aec0;
}

body.dark-mode .notif-dropdown-footer {
  background: #1a202c;
  border-color: #4a5568;
}

body.dark-mode .notif-item-icon {
  background: #4a5568;
}

@media (max-width: 576px) {
  .notif-dropdown {
    width: calc(100vw - 16px);
    right: 8px;
    left: auto;
  }
}
