src/components/SettingsModal/SettingsModal.scss
@import '../../constants/styles';
@import '../../constants/modal';

.SettingsModal {
  @extend %modal;

  .container {
    display: flex;
    flex-direction: column;
    width: 888px;
    height: 445px;

    .settings-search-input {
      display: flex;
      border: 1px solid var(--border);
      align-items: center;
      height: 32px;
      padding: 6px;
      border-radius: 4px;
      background: var(--component-background);
      width: 100%;

      &:focus-within {
        outline: none;
        border: 1px solid var(--blue-5);
      }

      .Icon {
        width: 16px;
        height: 16px;
      }

      input {
        width: 100%;
        padding-inline-end: 26px;
        height: 20px;
        border: none;
        background: transparent;
        padding-inline-start: 8px;
      }
    }
    .header {
      display: flex;
      flex-direction: column;
      padding: 12px 16px;
      font-size: 16px;
      font-weight: bold;
      align-items: center;

      .title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 32px;
        margin-bottom: 8px;
      }
    }

    .body {
      height: 100%;
      display: flex;
      flex-direction: row;
      overflow-y: hidden;

      .settings-tabs-container {
        width: 168px;
        flex-shrink: 0;
        border-inline-end: 1px solid var(--gray-4);

        .settings-tabs {
          button {
            border: none;
            background: none;
            width: 100%;
          }
          .settings-tab {
            height: 32px;
            margin-top: 4px;
            display: flex;
            align-items: center;
            padding: 8px;
            color: var(--gray-9);
            cursor: pointer;

            &:hover {
              border-inline-end: 2px solid var(--blue-6);
              color: var(--blue-6);
            }

            &.selected {
              background-color: var(--gray-2) !important;
              border-inline-end: 2px var(--blue-5) solid;
              color: var(--blue-5);
              cursor: default;
            }

            &:focus-visible {
              outline-offset: -2px;
              outline: var(--focus-visible-outline);
              border-radius: 4px;
            }
          }
        }
      }

      .settings-content {
        padding: 16px;
        overflow-y: scroll;
        width: 100%;

        .setting-section {
          margin-bottom: 16px;

          .setting-label {
            font-weight: bold;
            margin-bottom: 8px;
          }
        }

        .Dropdown.language-dropdown {
          height: 32px;
        }
      }

      .Button.custom-ui.icon-only:not([disabled]):hover {
        box-shadow: none;
        border: 1px solid var(--blue-6);
      }
    }

    .divider {
      height: 1px;
      width: 100%;
      background: var(--divider);
    }
  }

  @include mobile {
    .container {
      width: 100%;
      height: 100%;

      .body {
        flex-direction: column;

        .settings-tabs-container {
          width: 100%;

          .settings-tabs {
            display: flex;

            .settings-tab {
              flex: 1;
              height: 48px;
              margin-top: 0px;
              justify-content: center;
              min-width: 0;

              &.selected {
                border-inline-end: 0px;
                border-bottom: 2px var(--blue-5) solid;
              }
            }
          }
        }

        .settings-content {
          margin-top: 16px;

          &.KeyboardShortcutTab {
            overflow-x: scroll;
            width: 640px;
          }
        }
      }
    }
  }
}
