* {
  font-family: "Montserrat", sans-serif !important;
}

:root {
  line-height: 1.5;
  font-weight: 400;

  /* color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424; */
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

::-webkit-scrollbar {
  width: 5px;
  border-radius: 5px;
  border: 0px;
}

/* Track */
::-webkit-scrollbar-track {
  background: white;
  border-radius: 5px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #c7c7c7;
  border-radius: 5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: white;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}
#root {
  width: 100%;
  margin: 0 auto;
  height: 100vh;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  text-align: left;
}
.card {
  border-radius: 6px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 0px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
  width: 100%;
  padding: 1rem;
}

.card-no-padding {
  padding: 0px;
}

.main-container {
  margin: 0.5rem 0;
  padding: 0 1rem;
}

.loading-container {
  height: 400px;
}

.full-width {
  width: 100%;
}

.half-width {
  width: 50%;
}

.hidden {
  display: none;
  height: 0px;
}

.h-50 {
  height: 50px;
}

.h-200 {
  height: 200px;
}

.h-225 {
  height: 225px;
}

.h-300 {
  height: 300px;
}

.h-450 {
  height: 450px;
}

.h-500 {
  height: 500px;
}

.margin-v-8 {
  margin: 8px 0;
}

.relative-container {
  position: relative;
  height: calc(100% - 52px);
}

.chart-container {
  width: 100%;
  height: 100%;
}

.dropdown-w-125 {
  width: 125px;
  min-width: 125px;
  display: flex;
  align-items: center;
}

.dropdown-w-175 {
  width: 175px;
  min-width: 175px;
}

/* Title export dropdown styling */
.title-export-dropdown {
  margin-left: 10px;
  display: flex;
  align-items: center;
}

.title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  padding: 0 4px;
}

.title-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Title vertical alignment fixes */
.title-section h1,
.title-section h2,
.title-section h3,
.title-section button,
.title-section [role="tablist"],
.title-section > div {
  margin: 0;
  line-height: 1;
}

.title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.title-section {
  display: flex;
  align-items: center;
}

/* Keep existing chart container styles */
.insight-chart-container {
  position: relative;
  height: 100%;
  width: 100%;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 0.2rem;
  margin: 8px;
  cursor: pointer;
  overflow: visible;
  background: linear-gradient(
    to right,
    green 0%,
    green 30%,
    white 30%,
    white 33%,
    orange 33%,
    orange 63%,
    white 63%,
    white 66%,
    red 66%,
    red 100%
  );
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 0.2rem;
  background: linear-gradient(
    to right,
    green 0%,
    green 30%,
    white 30%,
    white 33%,
    orange 33%,
    orange 63%,
    white 63%,
    white 66%,
    red 66%,
    red 100%
  );
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 0.7rem;
  width: 0.7rem;
  background-color: white;
  border-radius: 50%;
  border: 0.5px solid;
  margin-top: -4px;
  box-shadow: linear-gradient(
    to right,
    green 0%,
    green 33%,
    orange 33%,
    orange 66%,
    red 66%,
    red 100%
  );
}

/* Add Firefox support for smaller thumb */
input[type="range"]::-moz-range-thumb {
  height: 0.7rem;
  width: 0.7rem;
  background-color: white;
  border-radius: 50%;
  border: 0.5px solid;
  box-shadow: linear-gradient(
    to right,
    red 0%,
    red 33%,
    orange 33%,
    orange 66%,
    green 66%,
    green 100%
  );
}

.query-box::after{
  border-bottom: none !important;
}

/* Simple, subtle animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Styling for markdown content */
.markdown-content {
  line-height: 1.4;
  background-color: transparent;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.markdown-content h1 {
  font-size: 1.5em;
  margin-top: 0.8em;
  margin-bottom: 0.4em;
  margin-top: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.markdown-content h2 {
  font-size: 1.3em;
  margin-top: 0.6em;
  margin-bottom: 0.3em;
  margin-top: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.markdown-content h3 {
  font-size: 1.1em;
  margin-top: 0.5em;
  margin-bottom: 0.2em;
  margin-top: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.markdown-content ul,
.markdown-content ol {
  padding-left: 1.5em;
  margin: 0.4em 0;
  margin: 12px 0;
  padding-left: 24px;
}

.markdown-content li {
  margin: 0.2em 0;
}

.markdown-content p {
  margin: 0.4em 0;
  margin-bottom: 16px;
}

.markdown-content code {
  background-color: #f0f0f0;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: "Courier New", Courier, monospace;
}

.markdown-content pre {
  background-color: #f5f5f5;
  padding: 1em;
  overflow-x: auto;
  border-radius: 4px;
}

/* Enhanced table styling for markdown content */
.markdown-content table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 16px;
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.markdown-content th {
  background-color: #f5f5f7;
  border: 1px solid #e1e1e6;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #440099;
}

.markdown-content td {
  border: 1px solid #e1e1e6;
  padding: 8px 12px;
  vertical-align: top;
}

.markdown-content tr:nth-child(even) {
  background-color: #fafafa;
}

.markdown-content tr:hover {
  background-color: #f0f0f5;
}

/* Style for table captions if present */
.markdown-content table caption {
  font-style: italic;
  padding: 8px;
  color: #666;
}

/* Responsive table handling */
@media (max-width: 768px) {
  .markdown-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
