/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import url("/assets/query_editor-381a72c8.css");
@import url("/assets/minimal_theme-f01152db.css");
@import url("/assets/chart-45fd55b4.css");

/* Navbar breadcrumb fixes */
/* Fix breadcrumb link colors in dark navbar (light mode) */
.navbar.is-dark .breadcrumb a {
  color: #fff;
  opacity: 0.9;
}

.navbar.is-dark .breadcrumb a:hover {
  color: #fff;
  opacity: 1;
}

.navbar.is-dark .breadcrumb .is-active a {
  color: #fff;
  opacity: 1;
}

/* Fix breadcrumb separator visibility in dark mode */
@media (prefers-color-scheme: dark) {
  .navbar .breadcrumb li + li::before {
    color: #e8e8e8 !important;
  }
}

/* Navbar tabs styling */
.navbar.is-dark .navbar-item.is-tab {
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid transparent;
}

.navbar.is-dark .navbar-item.is-tab:hover {
  color: #fff;
  background-color: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.navbar.is-dark .navbar-item.is-tab.is-active {
  color: #fff;
  border-bottom-color: #fff;
  background-color: transparent;
}

/* Properties column styles for query results */
.properties-cell {
  width: 100%;
  max-width: 0;
  vertical-align: top;
  padding: 0.5rem 0.75rem !important;
}

.properties-json {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-height: 1.4em;
}

/* Tighten table cell padding for query results */
#query_results .table td {
  vertical-align: top;
  padding: 0.5rem 0.75rem;
  line-height: 1.4;
}

#query_results .table th {
  padding: 0.5rem 0.75rem;
}

#query_results .table td code,
#query_results .table td span {
  line-height: 1.4;
}

/* Compact JSON disclosure controls */
.properties-cell [data-controller="json-disclosure"] > div {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  min-height: 0;
}

.properties-cell .button.is-small {
  padding: 0.125rem 0.25rem;
  height: auto;
  min-height: 0;
  margin-top: 0;
}

.properties-cell .button.is-small .icon {
  height: 1em;
  width: 1em;
}

/* JSON disclosure preview */
.json-preview {
  margin-top: 0.5rem;
  padding: 1rem;
  background-color: #f5f5f5;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  max-height: 400px;
  overflow: auto;
  white-space: pre;
}

@media (prefers-color-scheme: dark) {
  .json-preview {
    background-color: #1a1a1a;
    border-color: #363636;
  }
}

/* JSON syntax highlighting */
.json-key {
  color: #0451a5;
  font-weight: 600;
}

.json-string {
  color: #a31515;
}

.json-number {
  color: #098658;
}

.json-boolean {
  color: #0000ff;
  font-weight: 600;
}

.json-null {
  color: #808080;
  font-style: italic;
}

@media (prefers-color-scheme: dark) {
  .json-key {
    color: #9cdcfe;
  }

  .json-string {
    color: #ce9178;
  }

  .json-number {
    color: #b5cea8;
  }

  .json-boolean {
    color: #569cd6;
  }

  .json-null {
    color: #808080;
  }
}
