/* =============================================================================
   components/_notification-hub.scss — Slide-down notification list
   =============================================================================
 */

.notification-hub {
  position: absolute;
  top: 56px; // below top-header
  right: 16px;
  width: 300px;
  max-height: 50vh;
  overflow-y: auto;
  background: var(--color-white);
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 99;

  &.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  ul {
    list-style: none;
    margin: 0;
    padding: 0;

    li {
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding: 8px;
      border-bottom: 1px solid #eee;
      font-size: 0.875rem;

      &.priority-critical { background: #fddede; }
      &.priority-warning { background: #fff4ce; }
      &.priority-info { background: #f0f0f0; }
    }

    .title {
      font-weight: bold;
    }
    .msg {
      flex-grow: 1;
    }
  }
}
