@use "../../../../../styles/abstracts/variables";
@use "../../../../../styles/abstracts/mixins";

.add__acc {
  background: rgba(0, 0, 0, 0.9);
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 3rem 1rem;

  &__content {
    width: 100%;
    max-width: 500px;
    background: #1e1e1e;
    border-radius: 0.5rem;
    padding: 2rem;
    position: relative;
    margin: 4rem auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);

    &--close {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: variables.$col-danger-bg;
      color: variables.$col-danger-color;
      padding: 0.4rem 0.6rem;
      border-radius: 5px;
      cursor: pointer;
      font-weight: 600;
      font-size: 0.8rem;
      transition: all 0.3s ease;

      &:hover {
        background: darken(variables.$col-danger-bg, 10%);
      }
    }

    &--details {
      &--header {
        &--helper {
          background: variables.$col-orange;
          margin-bottom: 1rem;
          width: fit-content;
          padding: 0.4rem 0.8rem;
          border-radius: 20px;
          color: variables.$col-dark;
          font-size: 0.7rem;
          font-weight: 600;
          text-align: center;
          text-transform: capitalize;
        }

        h2 {
          font-weight: 600;
          font-size: 1rem;
          border-bottom: 1px solid variables.$col-border-lining;
          padding-bottom: 0.4rem;
          color: variables.$col-white;
          margin-bottom: 0.5rem;
        }

        p {
          font-size: 0.82rem;
          opacity: 0.85;
          line-height: 1.6;
          padding-bottom: 1.2rem;
          color: variables.$col-white;
        }
      }

      form {
        display: flex;
        flex-direction: column;
        gap: 1.1rem;

        label {
          font-size: 0.8rem;
          color: #ccc;
          display: inline-block;
          font-weight: 400;
          margin-bottom: 0.25rem;
        }

        input,
        select,
        textarea {
          width: 100%;
          background: #1e1e1e;
          border: 1px solid #333;
          border-radius: 0.5rem;
          padding: 0.55rem 0.9rem;
          font-size: 0.85rem;
          color: #eee;
          transition: border 0.25s ease;

          &:focus {
            outline: none;
            border: 1px solid variables.$col-orange;
          }

          &::placeholder {
            color: #777;
            font-size: 0.8rem;
            opacity: 0.85;
          }
        }

        textarea {
          height: 6rem;
          resize: vertical;
          line-height: 1.5;
        }

        button {
          background: variables.$col-orange;
          padding: 0.8rem;
          border-radius: 10px;
          color: variables.$col-dark;
          font-size: 0.9rem;
          font-weight: 500;
          width: 100%;
          margin-top: 1rem;
          cursor: pointer;
          transition: background 0.25s ease-in-out;

          &:hover {
            background: darken(variables.$col-orange, 5%);
          }

          &:disabled {
            opacity: 0.6;
            cursor: not-allowed;
          }
        }
      }
    }
  }
}

.features {
  margin-top: 1rem;

  label {
    font-size: 0.8rem;
    color: #ccc;
    font-weight: 400;
    margin-bottom: 0.4rem;
    display: inline-block;
  }

  &__row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;

    input {
      flex: 1;
      padding: 0.55rem 0.9rem;
      font-size: 0.85rem;
      background: #2a2a2a;
      border: 1px solid #444;
      border-radius: 6px;
      color: #eee;

      &::placeholder {
        color: #aaa;
        font-size: 0.75rem;
      }
    }

    .features__remove-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      background: variables.$col-danger-bg;
      color: variables.$col-danger-color;
      border: none;
      width: 2.3rem;
      height: 2.3rem;
      font-size: 1rem;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.25s ease-in-out;

      // &:hover {
      //   background: darken(variables.$col-danger-bg, 10%);
      // }
    }
  }

  &__addBtn {
    background: variables.$col-orange;
    color: variables.$col-dark;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    margin-top: 0.7rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;

    // &:hover {
    //   background: darken(variables.$col-orange, 5%);
    // }
  }
}

::-webkit-scrollbar {
  display: none !important;
}
