.adt-pfp-admin-notice {
  display: flex;
  align-items: center;
  gap: 16px;
  align-items: flex-start;
  padding-top: 18px;
  padding-bottom: 18px;
  padding-left: 18px;
  position: relative;

  .notice-image {
    width: 100%;
    max-width: 60px;

    img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }

  .notice-content {
    flex: 1;
  }

  h3 {
    margin-bottom: 4px;
    margin-top: 0;
    font-size: 16px;
    font-weight: 600;
  }

  p {
    margin-bottom: 0;
    margin-top: 0;
  }

  .notice-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
  }
}

// Navigation arrows for multiple notices
.adt-notice-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  top: -32px;
  right: -1px;
  background-color: #fff;
  padding: 4px 8px;
  border: 1px solid #c3c4c7;
  z-index: 1;

  button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #646970;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;

    &:hover {
      color: #2271b1;
    }

    .dashicons {
      width: 14px;
      height: 14px;
      font-size: 14px;
    }
  }
}

.adt-notice-nav-indicator {
  font-size: 12px;
  color: #646970;
  margin: 0 4px;
  white-space: nowrap;
}

.adt-notice-nav-drawer {
  margin-left: 4px;
  padding-left: 8px !important;
  border-left: 1px solid #dcdcde;
}

// Notification Drawer Styles
.adt-notification-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  pointer-events: none;

  &__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: all;
  }

  &__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    pointer-events: all;
    display: flex;
    flex-direction: column;

    &--open {
      transform: translateX(0);
    }

    @media screen and (max-width: 768px) {
      max-width: 100%;
    }
  }

  &__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    flex-shrink: 0;

    h2 {
      margin: 0;
      font-size: 18px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
    }
  }

  &__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background-color: #d63638;
    color: #fff;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
  }

  &__close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #646970;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;

    &:hover {
      color: #000;
    }

    .dashicons {
      width: 24px;
      height: 24px;
      font-size: 24px;
    }
  }

  &__content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
  }

  &__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    color: #646970;

    .dashicons {
      width: 64px;
      height: 64px;
      font-size: 64px;
      margin-bottom: 16px;
      color: #00a32a;
    }

    p {
      margin: 0;
      font-size: 16px;
    }
  }

  &__list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  &__item {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f1;
    transition: background-color 0.2s ease;
    position: relative;

    &--unread {
      background-color: #f6f7f7;
      cursor: pointer;

      &:hover {
        background-color: #eef0f1;
      }
    }

    &--read {
      background-color: #fff;
    }
  }

  &__item-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
  }

  &__unread-indicator {
    width: 8px;
    height: 8px;
    background-color: #2271b1;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
  }

  &__item-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;

    img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }

  &__item-content {
    flex: 1;

    h3 {
      margin: 0 0 8px;
      font-size: 16px;
      font-weight: 600;
      line-height: 1.4;
    }

    p {
      margin: 0 0 8px;
      font-size: 14px;
      line-height: 1.6;
      color: #646970;

      &:last-child {
        margin-bottom: 0;
      }
    }
  }

  &__item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
  }

  &__action {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;

    &--primary {
      background-color: #2271b1;
      color: #fff;

      &:hover {
        background-color: #135e96;
        color: #fff;
      }
    }

    &--secondary {
      background-color: transparent;
      color: #2271b1;
      border-color: #2271b1;

      &:hover {
        background-color: #f6f7f7;
        color: #135e96;
        border-color: #135e96;
      }
    }
  }

  &__dismiss {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid #dcdcde;
    border-radius: 3px;
    background-color: transparent;
    color: #646970;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;

    &:hover {
      background-color: #f6f7f7;
      border-color: #c3c4c7;
      color: #000;
    }
  }
}

// Body class when drawer is open
body.adt-notification-drawer-open {
  overflow: hidden;
}
