@import "~styles/mixins";

.ChatInput {
  margin: 10px;
  background-color: rgba($color: $color-grey, $alpha: 0.2);
  padding: 10px;
  border-radius: 4px;
  border: 1px solid transparent;

  &.active {
    border: 1px dashed $color_dark_grey;
    background-color: rgb(220, 220, 220);
  }

  .file {
    border-top: 1px solid rgba($color: $color-grey, $alpha: 0.4);
    font-size: 12px;
    padding-top: 5px;
    display: flex;

    .icon {
      margin-left: 10px;
      cursor: pointer;
    }
  }

  .text-area-container {
    font-size: 14px;
    position: relative;

    textarea {
      width: 100%;
      overflow-wrap: inherit;
    }

    .actions {
      position: absolute;
      bottom: 0px;
      right: 5px;

      .item {
        padding: 2px;
        width: 20px;
        text-align: center;
        border-radius: 2px;

        &:hover {
          background-color: rgba($color: $color-grey, $alpha: 0.4);
        }

        cursor: pointer;
      }
    }
  }
}
