/* Shared notification panel styles — imported by Admin + Locations */

.app-noti-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.app-noti-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Locations (light page) */
.app-noti-btn--light {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: #334155;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.app-noti-btn--light:hover {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.2);
  color: #0f172a;
}

.app-noti-btn--light .app-noti-badge {
  box-shadow: 0 0 0 2px #f8fafc;
}

.app-noti-btn svg,
.app-noti-btn .app-noti-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.app-noti-badge {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.1rem;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.35);
}

.app-noti-panel {
  position: fixed;
  inset: 0;
  z-index: 12000;
}

.app-noti-panel[hidden] {
  display: none !important;
}

.app-noti-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
}

.app-noti-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(24rem, 100vw);
  height: 100%;
  background: #fff;
  color: #0f172a;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  animation: app-noti-slide 0.2s ease-out;
}

@keyframes app-noti-slide {
  from { transform: translateX(12px); opacity: 0.6; }
  to { transform: translateX(0); opacity: 1; }
}

.app-noti-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem 0.85rem;
  border-bottom: 1px solid #e2e8f0;
}

.app-noti-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.app-noti-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.app-noti-close {
  border: none;
  background: #f1f5f9;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: #475569;
}

.app-noti-close:hover {
  background: #e2e8f0;
}

.app-noti-list {
  flex: 1;
  overflow: auto;
  padding: 0.75rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.app-noti-empty,
.app-noti-loading {
  margin: 1.25rem 1rem;
  color: #64748b;
  font-size: 0.9rem;
}

.app-noti-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: #fff;
}

.app-noti-item.is-unread {
  border-color: #93c5fd;
  background: #f8fbff;
}

.app-noti-item.is-import {
  border-left: 3px solid #059669;
}

.app-noti-item.is-update {
  border-left: 3px solid #2563eb;
}

.app-noti-item.is-delete {
  border-left: 3px solid #dc2626;
}

.app-noti-item-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.app-noti-item-top strong {
  font-size: 0.9rem;
}

.app-noti-item-top time {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: #64748b;
}

.app-noti-item p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #334155;
}

.app-noti-btn.has-unread {
  animation: app-noti-pulse 1.6s ease-in-out infinite;
}

@keyframes app-noti-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.app-noti-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 13000;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.4;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-noti-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .app-noti-btn {
  border-color: rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.hero .app-noti-btn:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.2);
}

.hero .app-noti-badge {
  box-shadow: 0 0 0 2px #fff;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
