/**
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

:host {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.item-list-container {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.tweet-info {
  display: block;
  margin-bottom: 16px;
  margin-top: 16px;
}

.scroll-viewport {
  height: 600px;
}

.filters-container {
  align-items: flex-start;
  display: flex;
  justify-content: center;
  padding: 12px 0 18px 0;
  position: relative;
}

.filters-container > * {
  z-index: inherit;
}

.filters-container .filters-title {
  color: rgba(0, 0, 0, 0.54);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 16px;
  text-align: left;
}

app-toxicity-range-filter {
  // Needed to aligned the threshold filter.
  margin-top: 6px;
}

app-filter-dropdown {
  margin-right: 16px;
}

.toxicity-range-dropdown {
  width: 280px;
}

/*
 * Make the buttons look like chips. We can't use mat-chip because it doesn't
 * allow click events to propagate up.
 */
.dropdown-button {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  font-weight: 400;
  line-height: 14px;
  margin-right: 14px;
  min-height: 32px;
  padding-right: 8px;
}

.dropdown-button.filter-active {
  background-color: #f3e8fd;
}

.dropdown-button .button-content-wrapper {
  align-items: center;
  display: flex;
}

.dropdown-button .dropdown-icon {
  margin-left: 8px;
}

.dropdown-button .filter-active-title {
  font-weight: 500;
}

.dropdown-button.filter-active .dropdown-icon {
  color: #a851f4;
}

.clear-filter-icon {
  color: #a851f4;
}

.selection-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.selection-list .mat-list-option.list-item-container {
  height: calc(100% - 16px);
  overflow-y: auto;
}

.comment-card {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  height: 180px;
  margin-bottom: 30px;
  margin-right: 30px;
  padding: 16px;
  text-align: left;
  width: 320px;
}

.vertical-divider {
  background-color: #e0e0e0;
  height: 1px;
  width: 100%;
}

mat-list-option .above-threshold {
  background-color: #f3e8fd;
}

mat-list-option.regex-filter {
  background-color: #f3e8fd;
}

mat-list-option.regex-filter:hover {
  background-color: #e1bee7;
}

mat-list-option .date-filter {
  background-color: #f3e8fd;
}

.view-comments-title {
  font-size: 30px;
  margin-bottom: 30px;
  margin-top: 50px;
  text-align: center;
}

.view-comments-title .greeting {
  margin-bottom: 16px;
}

.list-header {
  align-items: center;
  color: #4a4a4a;
  display: flex;
  flex-direction: row;
  font-size: 14px;
  justify-content: space-between;
  max-width: 1600px;
  padding-right: 16px;
  padding-top: 20px;
}

.list-header .view-controls {
  align-items: center;
  display: flex;
  position: relative;
}

.horizontal-divider {
  background-color: #dadce0;
  height: 100%;
  margin-left: 14px;
  margin-right: 14px;
  width: 1px;
}

.list-header .view-controls .horizontal-divider {
  height: 1em;
}

.options-dropdown {
  align-items: center;
  display: flex;
}

.options-dropdown mat-form-field {
  height: 3.5em;
  margin-left: 0.6em;
}

.options-dropdown mat-form-field.mat-focused {
  background-color: rgba(0, 0, 0, 0.04);
}

.sort-options-dropdown mat-form-field {
  width: 9em;
}

.preview-text {
  align-items: center;
  border-radius: 20px;
  display: flex;
  height: 30px;
  justify-content: space-between;
  margin-left: 10px;
  .mat-button-toggle-checked {
    color: #ad1457;
    background-color: rgba(209, 179, 195, 0.2);
  }
}

.select-all mat-checkbox {
  margin-right: 8px;
}

.blur-toggle {
  align-items: center;
  display: flex;
  justify-content: center;
  white-space: nowrap;
  width: 300px;
}

.select-all {
  align-items: center;
  display: flex;
  padding-left: 40px;
}

.comment-count {
  color: #ad1457;
}

.comment-count-info {
  align-items: center;
  display: flex;
  position: relative;
}

.score {
  margin-top: 4px;
}

.list-item-container {
  margin-bottom: 12px;
  margin-top: 12px;
  min-height: fit-content;
}

.list-item {
  margin-bottom: auto;
}

.loading-platform {
  display: flex;
  align-items: center;
}

.loading-spinner {
  margin-left: 12px;
  margin-right: 10px;
}

mat-list-option .item-metadata,
.item-metadata {
  color: rgba(0, 0, 0, 0.54);
  font-size: 14px;
  margin-bottom: 8px;
}

.item-metadata .author {
  padding-bottom: 1em;
}

.item-metadata .author img {
  padding-right: 0.75em;
  vertical-align: middle;
}

.item-metadata .author a {
  color: rgba(0, 0, 0, 0.54);
  font-weight: 500;
  text-decoration: none;
}

.item-text {
  font-size: 18px;
  max-width: 600px;
  overflow-wrap: break-word;
  text-align: left;
}

.no-items-message {
  padding: 20px;
}

.selected-comment-actions {
  background-color: #ffffff;
}

.selected-comment-actions .actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-left: 40px;
  padding: 10px 10%;
}

.selected-comment-actions .summary-text {
  color: #4a4a4a;
  font-size: 14px;
  font-weight: 500;
}

.selected-comment-actions button {
  background-color: #b23c66;
  color: white;
}

.items-wrapper {
  background-color: #f9f9f9;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0 150px 5% 150px;
}

// Once the text starts to wrap decrease the left/right padding.
@media screen and (max-width: 1200px) {
  .items-wrapper {
    padding: 0 5% 5% 5%;
  }
}

.list-header {
  button,
  mat-icon {
    background-repeat: no-repeat;
    display: inline-block;
    color: #ad1457;
    vertical-align: middle;
  }
  .refresh {
    color: #757575;
  }
}

mat-paginator {
  background: none;
  color: #4a4a4a;
  font-size: 14px;
}

.status-indicator {
  align-self: center;
  margin-top: 3em;
}

.hidden {
  display: none;
}

.error-message {
  padding-top: 24px;
  text-align: center;
}

.highlight-blur-toggle {
  background-color: #ffffff;
  border-radius: 30px;
  height: 60px;
  left: -16px;
  position: absolute;
  width: 200px;
  z-index: 1001; // Above the overlay backdrop
}

.highlight-filters {
  background-color: #ffffff;
  border-radius: 38px;
  height: 76px;
  position: absolute;
  top: 0.2em;
  width: 1200px;
}

.highlight-pagination {
  background-color: #ffffff;
  border-radius: 30px;
  height: 60px;
  left: -8px;
  position: absolute;
  top: -0.2em;
  width: 306px;
  z-index: 1001; // Above the overlay backdrop
}

.highlight-comment-card {
  background-color: #ffffff;
  border-radius: 118px;
  height: 140px;
  left: -42px;
  position: absolute;
  top: 0px;
  width: calc(100% + 84px);
  z-index: 1001; // Above the overlay backdrop
}

.elevate {
  position: relative;
  z-index: 1002; // Above the overlay backdrop and the highlight card.
}

.comments-list {
  position: relative;
}

.paginator-loading-label {
  align-items: center;
  display: flex;
  justify-content: center;
  position: absolute;
  width: calc(100% - 80px); // Subtract the width of the arrows.
}

.page-numbers {
  align-items: center;
  display: inline-flex;
  margin-left: auto;
  margin-right: auto;
}

.page-numbers-label {
  color: #4a4a4a;
  font-size: 14px;
  letter-spacing: 0.25px;
  line-height: 16px;
  margin-bottom: 16px;
  margin-top: 32px;
  text-align: center;
}

.page-number-button {
  color: #a54167;
  min-width: 20px;
  width: fit-content;
}

.page-number-button.selected {
  color: #121112;
  font-weight: bold;
}

.page-button {
  background-color: #a54167;
  border-radius: 52px;
  color: #fff;
}

.page-button:disabled {
  background-color: transparent;
  border: 2px solid #9da1a3;
  color: #9da1a3;
}
