@use '../../abstracts/variables' as *;

// -----------------------------------------------------------------------------
// Lesson Item: accordion panel for choosing activity type (admin/editing UI)
// Template: templates/lessonitem.mustache
// -----------------------------------------------------------------------------

.lessonitem-container {
  display: flex;

  .lessonitem-list {
    width: 40%;
    border-right: 1px solid $primary-bg-muted;
    background: $primary-bg-ghost;
    padding: 20px;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;

    .lessonitem-list-block {
      overflow: auto;
      max-height: 450px;

      &::-webkit-scrollbar {
        width: 6px;
      }

      &::-webkit-scrollbar-track {
        background: $white;
      }

      &::-webkit-scrollbar-thumb {
        background-color: $text-slate;
        border-radius: 4px;
      }
    }

    .lessonitem-link {
      display: flex;
      align-items: center;
      padding: 10px;
      text-decoration: none;
      color: $black;
      margin: 5px;

      &[aria-expanded="true"] {
        background-color: $white;
        border-radius: 5px;
      }

      &:focus {
        box-shadow: none;
      }

      .itemicon {
        width: 30px;
        height: 30px;
        object-fit: contain;
      }

      .itemname {
        text-align: left;
        color: $heading-navy;
      }
    }
  }

  .lessonitem-description {
    padding: 2rem 2.5rem 2.5rem 2.5rem;
  }

  .lessonditem-description-block {
    width: 60%;

    .collapsing {
      display: none;
    }
  }
}

// Modal variant
.lessonitem-modal {

  .modal-body {
    max-height: 550px;
    padding: 0;
  }

  .modal-content {
    border-radius: 16px;
    box-shadow: $main-shadow;
  }

  .modal-dialog:focus {
    box-shadow: none !important;
  }

  .lessonitem-container {

    .itemheading {
      color: $text-slate-dark;
      font-size: 17px;
      font-weight: 700;
      line-height: 100%;
    }

    .lessonditem-description-block {

      .lessonditem-description-heading {
        color: $text-navy-dark;
        font-weight: 700;
        font-size: 17px;
        line-height: 100%;
        letter-spacing: 0;
      }

      .lessonditem-description-desc {
        font-weight: 400;
        font-size: 14px;
        line-height: 20px;
        letter-spacing: 0;
        color: $text-navy-darkest;
        margin-top: 25px;
      }

      .addbtn {
        background-color: $primary;
        color: $white;
        width: 72px;
        height: 38px;
        border-radius: 5px;

        &:hover {
          background-color: $primary-hover;
        }
      }
    }
  }
}
