
@import url("/app/visual-polish.css");

/*
 * MOVE&TRY — Notification History
 * File: /app/notifications.css
 *
 * Styles are scoped to #app-notification-history
 * to preserve the existing application design.
 */

#app-notification-history {
  margin: 22px 0 0;
  padding: 0;
  color: var(--ink, #171916);
  font-family: 'Manrope', Arial, sans-serif;
}

#app-notification-history[hidden] {
  display: none !important;
}

#app-notification-history *,
#app-notification-history *::before,
#app-notification-history *::after {
  box-sizing: border-box;
}

#app-notification-history .notification-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0 12px;
  border-top: 1px solid var(--line, #dcded6);
}

#app-notification-history .notification-history-title {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

#app-notification-history .notification-history-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

#app-notification-history button {
  font: inherit;
  cursor: pointer;
}

#app-notification-history .notification-history-action {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--green, #1f2a18);
  font-size: 10px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#app-notification-history .notification-history-action:disabled {
  opacity: .45;
  cursor: default;
}

#app-notification-history .notification-history-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

#app-notification-history .notification-history-item {
  position: relative;
  padding: 17px 0;
  border-bottom: 1px solid var(--line, #dcded6);
}

#app-notification-history .notification-history-item.is-unread {
  padding-left: 15px;
}

#app-notification-history .notification-history-item.is-unread::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ad5d38;
}

#app-notification-history .notification-history-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

#app-notification-history .notification-history-link:hover
.notification-history-item-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#app-notification-history .notification-history-item-title {
  display: block;
  margin: 0 0 6px;
  color: var(--ink, #171916);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#app-notification-history .notification-history-item-body {
  display: block;
  margin: 0;
  color: var(--muted, #697067);
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

#app-notification-history .notification-history-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted, #697067);
  font-size: 10px;
  font-weight: 700;
}

#app-notification-history .notification-history-category {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#app-notification-history .notification-history-delete {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--muted, #697067);
  font-size: 10px;
  font-weight: 700;
}

#app-notification-history .notification-history-delete:hover {
  color: #a13f36;
}

#app-notification-history .notification-history-empty {
  padding: 28px 12px;
  color: var(--muted, #697067);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

#app-notification-history .notification-history-error {
  padding: 15px 0;
  color: #a13f36;
  font-size: 12px;
  line-height: 1.6;
}

#app-notification-history .notification-history-action:focus-visible,
#app-notification-history .notification-history-link:focus-visible,
#app-notification-history .notification-history-delete:focus-visible {
  outline: 2px solid #758b6b;
  outline-offset: 3px;
}

@media (max-width: 360px) {
  #app-notification-history .notification-history-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  #app-notification-history * {
    scroll-behavior: auto;
  }
}
