// Copyright 2016-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only

.debug-log {
  &.modal {
    padding: 50px;

    .content {
      margin: 0;
      max-width: 100%;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;

      textarea {
        flex-grow: 1;
        width: 100%;
        resize: none;
        min-height: 100px;

        font-family: Monaco, Consolas, 'Courier New', Courier, monospace;
        font-size: 12px;

        @include dark-theme {
          background-color: $color-gray-90;
          border: 1px solid $color-gray-45;
          color: $color-gray-02;
        }
      }
    }
  }

  .result {
    $open-height: 36px;
    text-align: center;

    .input-group {
      display: inline-flex;
    }

    .copy {
      height: $open-height;
      text-align: center;
      line-height: $open-height;
      padding: 0 30px;
      color: unset;
      text-decoration: none;
      cursor: pointer;

      border-radius: 0 5px 5px 0;

      @include light-theme {
        border: solid 1px $color-gray-25;
        background: $color-gray-02;
        &:active {
          background: $color-gray-25;
        }
      }
      @include dark-theme {
        border: solid 1px $color-gray-45;
        background-color: $color-gray-90;
        color: $color-gray-02;
        &:active {
          background: $color-gray-25;
        }
      }
    }

    .link {
      border-radius: 5px 0 0 5px;
      flex-grow: 1;
      min-width: 400px;
      height: $open-height;
      padding: 0 10px;
      outline-offset: -4px;

      @include light-theme {
        border: solid 1px $color-gray-25;
        border-right: none;
      }
      @include dark-theme {
        color: $color-gray-02;
        border: solid 1px $color-gray-45;
        border-right: none;
        background-color: $color-gray-90;
      }
    }
  }
}
