/* AI Report Generator */

.ai-report-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-report-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 10px;
}

.ai-report-subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.ai-report-section-title {
  font-size: 12px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.ai-report-controls,
.ai-report-results {
  background: rgba(27, 29, 60, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 14px;
}

.ai-report-generate-btn {
  width: 100%;
  font-weight: 500;
}

.ai-report-textarea {
  background-color: #1F223C;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 10px;
}

.ai-report-textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.ai-report-output-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-report-markdown {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 2px 2px 6px 2px;
  line-height: 1.55;
}

.ai-report-markdown h1,
.ai-report-markdown h2,
.ai-report-markdown h3,
.ai-report-markdown h4 {
  color: #ffffff;
  margin-top: 8px;
  margin-bottom: 8px;
}

.ai-report-markdown h1 {
  font-size: 22px;
  line-height: 1.25;
}

.ai-report-markdown h2 {
  font-size: 17px;
  line-height: 1.3;
}

.ai-report-markdown h3 {
  font-size: 15px;
  line-height: 1.3;
}

.ai-report-markdown h4 {
  font-size: 14px;
  line-height: 1.3;
}

.ai-report-markdown ul,
.ai-report-markdown ol {
  padding-left: 20px;
}

.ai-report-markdown p,
.ai-report-markdown li {
  color: rgba(255, 255, 255, 0.94);
}

.ai-report-meta .badge {
  font-weight: 500;
}

.ai-report-graphs {
  margin-top: 4px;
}

.ai-report-figure-block {
  margin-top: 10px;
  margin-bottom: 18px;
}

.ai-report-figure-plot {
  width: 100%;
}

.ai-report-figure-graph {
  width: 100%;
}

.ai-report-figure-caption {
  margin-top: 10px;
  margin-bottom: 0;
  padding: 0;
  width: 100%;
  display: block;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
  text-align: left;
  font-style: italic;
}

.ai-report-figure-empty {
  padding: 10px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 10px;
}

@media (max-width: 992px) {
  .ai-report-controls,
  .ai-report-results {
    padding: 12px;
  }
}
