/* =========================
   Market Clusters - Scoped UI
   ========================= */

/* Page base spacing */
.market-container {
    padding-top: 40px;
    padding-bottom: 60px;
}

.logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Title */
.market-title {
    font-size: 28px;
    font-weight: 600;
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 30px;
}

/* =========================
   INPUT PANEL
   ========================= */

.market-panel {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.market-control-group {
    margin-bottom: 15px;
}

.market-label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    display: block;
}

/* Select styling refinement (build on Bootstrap) */
.market-select {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 8px;
    font-size: 15px;
}

/* =========================
   DATE INPUT (Calendar Picker)
   ========================= */

.market-date {
    width: 100%;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 8px 10px;
    font-size: 15px;
    font-family: inherit;
    color: #334155;
    background: #fff;
    transition: 0.2s ease;
}

/* Focus state */
.market-date:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

/* Make calendar icon consistent (Chrome/Edge/Webkit) */
.market-date::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
}

.market-date::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.market-context {
  font-size: 0.9rem;
  color: #6c757d; /* muted */
  font-style: italic;
  background: #f8f9fa;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Run button */
.market-btn {
    width: 100%;
    background: #1d4ed8;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.2s ease;
}

.market-btn:hover {
    background: #1e40af;
}

.market-footnote {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #6c757d;
  font-style: italic;
  line-height: 1.3;
}

/* =========================
    LABELS GUIDE
   ========================= */

.market-label-guide {
  margin-top: 15px;
  font-size: 13px;
  line-height: 1.4;
  color: #444;
}

.market-label-guide h6 {
  margin-bottom: 6px;
  font-weight: 600;
}

.market-label-guide ul {
  padding-left: 18px;
  margin: 0;
}

.market-label-guide li {
  margin-bottom: 4px;
}

/* =========================
   DASHBOARD CARDS
   ========================= */

.market-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    margin-bottom: 10px;
}

.market-card h5 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
}

/* Chart containers */
.market-chart {
  width: 100%;
  height: 500px; /* or 60vh if you want flexible scaling */
}

.chart-note {
  font-size: 16px;
  line-height: 1.3;
  color: #666;
  margin-top: 8px;
  text-align: left;
  opacity: 0.8;
}

/* =========================
   INSIGHTS PANEL
   ========================= */

.market-insights {
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
}

.market-insights p {
  margin-bottom: 12px;
  line-height: 1.6;
  text-align: justify;
}

/* highlight key insight phrases if you later wrap them in spans */
.market-highlight {
    font-weight: 600;
    color: #1e3a8a;
}

/* =========================
   RESPONSIVE TWEAKS
   ========================= */

@media (max-width: 768px) {
    .market-title {
        font-size: 22px;
    }

    .market-card {
        padding: 14px;
    }
}