/* Notification Center — Moulya's Kitchen */

.mk-notif-dropdown {
  position: absolute;
  z-index: 1060;
  width: min(22rem, calc(100vw - 1.5rem));
  background: #fff;
  border: 1px solid rgba(61, 82, 41, 0.12);
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.mk-notif-dropdown__head,
.mk-notif-dropdown__foot {
  padding: 0.75rem 1rem;
  background: #fdf8f0;
  border-bottom: 1px solid rgba(61, 82, 41, 0.08);
}

.mk-notif-dropdown__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mk-notif-dropdown__head-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.mk-notif-dropdown__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6b7280;
  line-height: 1;
  flex-shrink: 0;
}

.mk-notif-dropdown__close:hover,
.mk-notif-dropdown__close:focus-visible {
  color: #1f2937;
  background: rgba(0, 0, 0, 0.06);
}

.mk-notif-dropdown__foot {
  border-bottom: 0;
  border-top: 1px solid rgba(61, 82, 41, 0.08);
}

.mk-notif-dropdown__list {
  max-height: 20rem;
  overflow-y: auto;
}

.mk-notif-item {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.mk-notif-item.is-unread {
  background: rgba(61, 82, 41, 0.05);
}

.mk-notif-item:hover {
  background: rgba(61, 82, 41, 0.08);
}

.mk-notif-item__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(61, 82, 41, 0.1);
  color: #3d5229;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mk-notif-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mk-notif-item__body strong {
  font-size: 0.85rem;
  color: #1f2937;
}

.mk-notif-item__body small {
  font-size: 0.75rem;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mk-notif-item__time {
  font-size: 0.68rem;
  color: #9ca3af;
}

.mk-notif-count-badge {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

.mk-notif-bell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
}

#mkNotificationCenter .mk-notif-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

#mkNotificationCenter .mk-notif-filters .btn {
  border-radius: 999px;
  font-size: 0.78rem;
}

.mk-notif-full-item {
  display: flex;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(61, 82, 41, 0.1);
  border-radius: 1rem;
  background: #fff;
  margin-bottom: 0.75rem;
}

.mk-notif-full-item.is-unread {
  border-color: rgba(61, 82, 41, 0.25);
  background: #fdf8f0;
}

.mk-notif-full-item__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(61, 82, 41, 0.1);
  color: #3d5229;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .mk-notif-dropdown {
    position: fixed;
    width: min(22rem, calc(100vw - 2rem));
    max-width: 22rem;
  }
}

@media (max-width: 991.98px) {
  .mk-notif-dropdown {
    position: fixed;
    left: 0.75rem !important;
    right: 0.75rem !important;
    top: calc(var(--mk-header-offset, 4rem) + 0.5rem) !important;
    width: auto;
  }
}
