/** CSS for megascale_stats component. */
@use 'frontend/app/styles/common';

.page-container {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.top-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.perfetto-container {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.megascale-stats {
  margin-right: 20px;
}

.export-button-container {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.controls-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.host-selector {
  margin-bottom: -1.25em;
}

.perfetto-button {
  padding: 8px 16px;
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-left: 10px;

  &:hover {
    background-color: #357ae8;
  }

  &:disabled {
    background-color: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
  }
}

.section-container {
  padding: 20px;
  margin-top: 20px;
}

.row {
  display: flex;
  align-items: center;
}

.flex-space {
  flex: 1;
}

chart {
  margin: 0 16px;
}
