/* ===============================
   GLOBAL FIXES
================================ */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ===============================
   NOTIFICATION DROPDOWN
================================ */
.notification-dropdown {
  position: relative;
  display: block;
  z-index: 3000;
}

/* Bell button */
.notification-btn {
  background: #14b8a6;
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
}

.notification-btn:hover {
  background: #0d9488;
}

/* Badge */
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}



/* ===============================
   HEADER
================================ */
.notification-header {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
}

.notification-header h6 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.mark-all-read {
  font-size: 12px;
  color: #2563eb;
  text-decoration: none;
}

/* ===============================
   LIST
================================ */
.notification-list {
  max-height: 300px;
  overflow-y: auto;   /* visible → auto */
}


.notification-item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: #1f2937;
}

.notification-item:hover {
  background: #f9fafb;
}

.notification-item.unread {
  background: #eef6ff;
}

.notification-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
}

.notification-text {
  font-size: 13px;
  margin-bottom: 2px;
}

.notification-time {
  font-size: 11px;
  color: #6b7280;
}

/* ===============================
   FOOTER
================================ */
.notification-footer {
  padding: 10px;
  text-align: center;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.view-all {
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #14b8a6;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 5000;
  font-size: 14px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===============================
   MOBILE FIX (IMPORTANT)
================================ */

@media (max-width: 576px) {
  .notification-menu {
    position: fixed !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 70vh !important;
    border-radius: 0 !important;
    z-index: 9999 !important;
  }
}


  .notification-list {
    height: calc(70vh - 110px); /* header + footer */
    overflow-y: auto;
  }
}



header,
.topbar {
  overflow: visible !important;
  position: relative;
  z-index: 2000;
}
/* 🔴 DEBUG FORCE (temporary) */
.notification-menu {
  position: absolute;
  right: 0;
  top: 45px;
  width: 320px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0,0,0,.15);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 4000;
}

.notification-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}


.topbar {
  overflow: visible !important;
  position: relative;
  z-index: 2000;
}
