/** CSS for a trace viewer component. */

:host {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--md-sys-color--surface-container-low);
}

mat-divider {
  // TODO: create color pallete for consolidated styles in the app
  border-color: silver;
  height: 28px;
  margin: 0 10px;
}

.filter-bar {
  display: flex;
  justify-content: left;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  margin: 8px 16px 8px 8px;
  background: var(--md-sys-color--surface-container);
  border-radius: 24px;
}

.filter-input {
  outline: none;
  border: none;
  text-align: left;
  padding: 0;
  margin: 0;
  background: transparent;
  width: 100%;
  height: 28px;
  font-size: 14px;
  color: #5f6368;
}

.filter-nav {
  display: flex;
  justify-content: left;
  align-items: center;
  padding-left: 16px;
  padding-right: 8px;
}

.filter-content {
  display: flex;
  flex-flow: row wrap;
  padding: 4px;
  align-items: center;
  flex-grow: 1;
}

.filter-content .filler-inputs-wrapper {
  flex-grow: 1;
}

.right-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.details-button {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 4px;
}

:host ::ng-deep {
  filter-chips,
  filter-input {
    background: transparent;
  }
}

.filter-chip {
  background-color: #e8f0fe;
  margin: 4px 5px 4px 0;
}

.filter-form {
  display: flex;
}

.filter-panel-title {
  flex-grow: unset;
}

.filter-panel-description {
  font-weight: normal;
  font-style: italic;
  color: #7885cb;
}

.filter-form-field {
  margin-right: 10px;
}

.filter-form-button {
  margin-right: 10px;
}

.trace-viewer-menu-bar {
  height: 50px;
  margin: 5px 5px 5px 0;
}

.trace-filter-config-tooltip {
  margin-left: 10px;
  font-size: large;
  display: flex;
  align-items: center;
}

.select-all-checkbox {
  margin-left: -10px;
  padding-left: 16px;
}

.upload-overlay {
  position: absolute;
  top: 100px;
  left: 0;
  width: 100%;
  height: calc(100% - 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 100;
  pointer-events: none;
}

.upload-overlay mat-icon {
  font-size: 48px;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  color: #4285f4;
}

.upload-message {
  font-size: 18px;
  color: #5f6368;
}

.settings-button-wrapper {
  position: relative;
  display: inline-block;
}

.coach-mark-bubble {
  position: absolute;
  top: 40px;
  right: 0;
  width: 280px;
  background: white;
  border: 1px solid #dadce0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  padding: 16px;
  z-index: 1000;
  font-family: Roboto, sans-serif;
}

.coach-mark-title {
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 8px;
}

.coach-mark-content {
  font-size: 12px;
  color: #5f6368;
  line-height: 1.5;
  margin-bottom: 12px;
}

.coach-mark-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.coach-mark-button {
  font-size: 12px;
}

.coach-mark-arrow {
  position: absolute;
  top: -6px;
  right: 12px;
  width: 10px;
  height: 10px;
  background: white;
  border-left: 1px solid #dadce0;
  border-top: 1px solid #dadce0;
  transform: rotate(45deg);
}

.radio-group {
  display: flex;
  flex-direction: column;
}

.radio-group label {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.radio-group input[type='radio'] {
  margin-right: 8px;
}

.palette-dialog-title {
  margin: 16px 24px;
}

.palette-dialog-content {
  padding: 0 24px;
}

.palette-dialog-actions {
  padding: 16px 24px;
}

.custom-colors-container {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
}

.custom-colors-header {
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 8px;
  color: #444;
}

.custom-colors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
}

.custom-color-item {
  position: relative;
  width: 32px;
  height: 32px;
}

.custom-color-input {
  width: 32px;
  height: 32px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0;
  cursor: pointer;
  display: block;
  box-sizing: border-box;
}

.custom-color-remove-button {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  border-radius: 50%;
  background-color: #5f6368;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.custom-color-remove-icon {
  font-size: 12px;
  width: 12px;
  height: 12px;
  line-height: 12px;
}

.custom-color-add-button {
  width: 32px;
  height: 32px;
  border: 1px dashed #aaa;
  border-radius: 4px;
}

.custom-color-add-icon {
  font-size: 18px;
}

.custom-colors-hint {
  font-size: 11px;
  color: #888;
  margin-top: 6px;
}

.feature-flags-dialog-content {
  width: 400px;
}

.feature-flag-item {
  margin-bottom: 16px;
}

.feature-flag-description {
  color: gray;
  font-size: 12px;
  margin-left: 28px;
}

.feature-flag-warning {
  color: #ff9800;
  font-size: 12px;
  margin-top: 8px;
  display: flex;
  align-items: center;
}

.feature-flag-warning-icon {
  font-size: 16px;
  height: 16px;
  width: 16px;
  margin-right: 4px;
}
