/* notifications.css - shared UI for notification lists + filters */
.notif-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
}

.notif-filter-bar input[type="search"],
.notif-filter-bar select {
  background: rgba(10, 18, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
  padding: 8px 10px;
  border-radius: 10px;
  min-width: 160px;
}

.notif-filter-bar select {
  min-width: 140px;
}

.notif-filter-toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  color: inherit;
}

.notif-filter-clear {
  background: rgba(245, 197, 66, 0.12);
  border: 1px solid rgba(245, 197, 66, 0.45);
  color: inherit;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.notif-filter-clear:hover {
  border-color: rgba(245, 197, 66, 0.8);
}

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notif-group-title {
  margin: 8px 0 4px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(231, 245, 255, 0.55);
}

.notif-group-title[data-source="wallet"] {
  color: rgba(245, 197, 66, 0.85);
}

.notif-group-title[data-source="wallet"]::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 6px;
  background: linear-gradient(90deg, rgba(245, 197, 66, 0.55), transparent);
}

.notif-box {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 14, 18, 0.6);
  display: grid;
  gap: 8px;
}

.notif-box.unread {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.notif-box.level-success {
  border-color: rgba(96, 255, 213, 0.45);
}

.notif-box.level-warning {
  border-color: rgba(245, 197, 66, 0.55);
}

.notif-box.level-danger {
  border-color: rgba(255, 107, 107, 0.6);
}

.notif-title {
  font-weight: 600;
}

.notif-source {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(231, 245, 255, 0.5);
}

.notif-message {
  color: rgba(231, 245, 255, 0.78);
  line-height: 1.4;
}

.notif-timestamp {
  font-size: 0.85rem;
  color: rgba(231, 245, 255, 0.6);
}

.notif-actions {
  display: flex;
  gap: 8px;
}

.notif-actions button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: inherit;
  padding: 6px 10px;
  border-radius: 9px;
  cursor: pointer;
}

.notif-actions button[disabled] {
  opacity: 0.6;
  cursor: default;
}

.notif-actions button:hover:not([disabled]) {
  border-color: rgba(255, 255, 255, 0.35);
}

.notif-empty {
  padding: 24px;
  text-align: center;
  color: rgba(231, 245, 255, 0.6);
}

#notif-atmosphere {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.14;
  filter: blur(40px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#notif-atmosphere::before,
#notif-atmosphere::after {
  content: "";
  position: absolute;
  width: 55%;
  height: 55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 255, 213, 0.55), transparent 65%);
  animation: notifFloat 14s ease-in-out infinite;
}

#notif-atmosphere::after {
  right: 8%;
  bottom: 10%;
  width: 45%;
  height: 45%;
  background: radial-gradient(circle, rgba(245, 197, 66, 0.45), transparent 65%);
  animation-delay: 4s;
}

#notif-atmosphere[data-level="warning"]::before {
  background: radial-gradient(circle, rgba(245, 197, 66, 0.55), transparent 65%);
}

#notif-atmosphere[data-level="danger"]::before {
  background: radial-gradient(circle, rgba(255, 107, 107, 0.55), transparent 65%);
}

#notif-atmosphere[data-level="success"]::before {
  background: radial-gradient(circle, rgba(96, 255, 213, 0.55), transparent 65%);
}

#notif-atmosphere[data-level="info"]::before {
  background: radial-gradient(circle, rgba(79, 170, 255, 0.45), transparent 65%);
}

body.notif-pulse #notif-atmosphere {
  opacity: 0.28;
  transform: scale(1.02);
}

@keyframes notifFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -16px) scale(1.06);
  }
}

@media (max-width: 720px) {
  .notif-filter-bar input[type="search"],
  .notif-filter-bar select {
    min-width: 100%;
  }
}
