/* ═══════════════════════════════════════════════════════════════════
   PB-25: Push Messages UI Inbox Drawer — "My Alerts"
   ═══════════════════════════════════════════════════════════════════ */

/* Slide-in Overlay Backdrop */
.push-inbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.push-inbox-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Slide-in Drawer Container */
.push-inbox-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-card, #13131f);
  border-left: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  box-shadow: var(--shadow-xl, 0 16px 48px rgba(0, 0, 0, 0.7));
  z-index: 260;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  font-family: var(--font, 'Inter', sans-serif);
}

.push-inbox-drawer.open {
  transform: translateX(0);
}

/* Drawer Header */
.push-inbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: var(--bg, #0c0c14);
}

.push-inbox-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.push-inbox-bell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm, 8px);
  background: var(--accent-soft, rgba(124, 58, 237, 0.15));
  color: var(--accent-2, #a855f7);
  font-size: 18px;
}

.push-inbox-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #f0f0fa);
  line-height: 1.2;
}

.push-inbox-subtitle {
  font-size: 11px;
  color: var(--text-2, #8b8ba8);
  margin-top: 2px;
}

.push-inbox-unread-count {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  background: var(--accent, #7c3aed);
  color: #fff;
  letter-spacing: 0.3px;
}

.push-inbox-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.push-inbox-btn {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2, #8b8ba8);
  background: var(--bg-input, #1a1a28);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-sm, 8px);
  padding: 5px 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.push-inbox-btn:hover {
  color: var(--text, #f0f0fa);
  background: var(--bg-hover, #1f1f30);
  border-color: var(--border-hi, rgba(255, 255, 255, 0.15));
}

.push-inbox-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm, 8px);
  background: transparent;
  border: none;
  color: var(--text-2, #8b8ba8);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.push-inbox-close:hover {
  background: var(--bg-hover, #1f1f30);
  color: var(--text, #f0f0fa);
}

/* Category Filter Bar */
.push-inbox-filter-bar {
  display: flex;
  gap: 6px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: var(--bg-card, #13131f);
}

.push-filter-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 14px;
  background: var(--bg-input, #1a1a28);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  color: var(--text-2, #8b8ba8);
  cursor: pointer;
  transition: all 0.15s ease;
}

.push-filter-pill:hover {
  color: var(--text, #f0f0fa);
  background: var(--bg-hover, #1f1f30);
}

.push-filter-pill.active {
  background: var(--accent, #7c3aed);
  border-color: var(--accent-2, #a855f7);
  color: #fff;
  font-weight: 600;
}

/* Content List Area */
.push-inbox-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Message Card */
.push-msg-card {
  background: var(--bg-input, #1a1a28);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius, 12px);
  padding: 12px 14px;
  transition: all 0.15s ease;
  position: relative;
}

.push-msg-card:hover {
  border-color: var(--border-hi, rgba(255, 255, 255, 0.16));
  background: var(--bg-hover, #1f1f30);
}

.push-msg-card.unread {
  border-left: 3px solid var(--accent-2, #a855f7);
  background: var(--accent-glow, rgba(124, 58, 237, 0.08));
}

.push-msg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.push-msg-tag {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2, #8b8ba8);
}

.push-msg-tag.tag-admin,
.push-msg-tag.tag-admin_push {
  background: rgba(124, 58, 237, 0.2);
  color: var(--accent-2, #a855f7);
}

.push-msg-tag.tag-system,
.push-msg-tag.tag-info {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
}

.push-msg-tag.tag-alert,
.push-msg-tag.tag-warning {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

.push-msg-tag.tag-security {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
}

.push-msg-time {
  font-size: 10px;
  color: var(--text-3, #55556a);
  font-family: var(--mono, monospace);
}

.push-msg-body {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text, #f0f0fa);
  word-break: break-word;
  white-space: pre-wrap;
}

.push-msg-card.unread .push-msg-body {
  font-weight: 500;
}

.push-msg-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 8px;
}

.push-msg-dismiss-btn {
  font-size: 10.5px;
  color: var(--text-3, #55556a);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.15s ease;
}

.push-msg-dismiss-btn:hover {
  color: var(--text, #f0f0fa);
  text-decoration: underline;
}

/* Empty State */
.push-inbox-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3, #55556a);
}

.push-inbox-empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.push-inbox-empty-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2, #8b8ba8);
  margin-bottom: 4px;
}

.push-inbox-empty-sub {
  font-size: 11.5px;
  color: var(--text-3, #55556a);
}

/* Drawer Footer */
.push-inbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: var(--bg, #0c0c14);
  font-size: 11px;
  color: var(--text-3, #55556a);
}

/* Notification Bell Pulse Animation when Unread */
.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent, #7c3aed);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--bg, #0c0c14);
}

/* Mobile responsive drawer */
@media (max-width: 480px) {
  .push-inbox-drawer {
    width: 100vw;
  }
}
