/* Apply JetBrains Mono font to the entire document with tweaks for readability */
body {
    font-family: 'JetBrains Mono', monospace;
    margin: 0;
    padding: 0;
    background-color: #F5F7FA;
    color: #2C3E50;
    line-height: 1.6;
    letter-spacing: -0.2px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Improve font size and spacing for monospace font */
p,
li,
td,
th,
.metric-value,
.value,
.label {
    letter-spacing: -0.3px;
    line-height: 1.7;
}

/* Make headings look better with monospace font */
h1,
h2,
h3 {
    letter-spacing: -0.5px;
    line-height: 1.3;
}

/* Reduce the font weight slightly for better readability of monospace */
body,
p,
li,
td,
th,
.metric-value,
.value,
.label {
    font-weight: 400;
}

.value,
.current-value,
.price-value,
.fib-price {
    letter-spacing: -0.3px;
}

/* Reset all existing font-family declarations to maintain consistency */
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div,
table,
td,
th,
ul,
ol,
li,
button,
input {
    font-family: 'JetBrains Mono', monospace;
}

/* Enhanced Energy Market Report Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.report-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 20px auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex-grow: 1;
}

/* Report Header */
.report-header {
    background: linear-gradient(135deg, #3498DB, #2C3E50);
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    position: absolute;
    top: 20px;
    left: 20px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    width: 50px;
    height: 50px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #2C3E50;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.report-title {
    margin: 0;
    font-size: 2.8em;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.report-date {
    margin-top: 10px;
    font-size: 1.2em;
    opacity: 0.9;
}

/* Table of Contents */
.toc-container {
    background: #F8F9FA;
    padding: 30px;
    border-bottom: 1px solid #E0E0E0;
}

.toc-container h2 {
    color: #2C3E50;
    margin-top: 0;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E0E0E0;
}

.toc {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.toc li {
    margin-bottom: 5px;
}

.toc a {
    display: block;
    padding: 12px 15px;
    color: #2C3E50;
    text-decoration: none;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 4px solid #3498DB;
}

.toc a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #F1F9FF;
}

/* Report Content */
.report-content {
    flex: 1;
    padding: 30px;
}

/* NEW Styles for Column Layout - REMOVED */
/* .report-columns { ... } */
/* .report-columns > .report-content { ... } */

.report-section {
    margin-bottom: 40px;
    border-bottom: 1px solid #E0E0E0;
}

/* --- End Column Layout Styles --- */

.section-header {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.section-header h2 {
    margin: 0;
    color: #2C3E50;
    font-size: 2em;
    padding-bottom: 10px;
    border-bottom: 3px solid #3498DB;
}

.section-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Error Message */
.error-message {
    background-color: #FEECF0;
    color: #E74C3C;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #E74C3C;
    font-weight: 500;
}

/* Technical Analysis Section */
.technical-analysis {
    padding: 0;
}

.price-overview {
    display: flex;
    justify-content: flex-start;
    gap: 40px;
    background: linear-gradient(to right, #F8F9FA, #EBF5FB);
    padding: 25px;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #E0E0E0;
}

.current-price-container,
.signal-container {
    display: flex;
    flex-direction: column;
}

.label {
    font-size: 0.9em;
    color: #7F8C8D;
    margin-bottom: 8px;
}

.value {
    font-size: 1.8em;
    font-weight: 700;
    color: #2C3E50;
}

.signal-bullish {
    color: #2ECC71;
}

.signal-bearish {
    color: #E74C3C;
}

.signal-neutral {
    color: #F39C12;
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 25px;
}

.indicator-card {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    border: 1px solid #E0E0E0;
}

.indicator-card:hover {
    transform: translateY(-5px);
}

.indicator-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2C3E50;
    font-size: 1.2em;
    border-bottom: 2px solid #E0E0E0;
    padding-bottom: 10px;
}

.indicator-value {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 15px;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.indicator-value.BULLISH {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ECC71;
}

.indicator-value.BEARISH {
    background-color: rgba(231, 76, 60, 0.1);
    color: #E74C3C;
}

.indicator-value.NEUTRAL {
    background-color: rgba(243, 156, 18, 0.1);
    color: #F39C12;
}

.indicator-details {
    margin-top: 15px;
}

.indicator-details p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #E0E0E0;
}

/* ML Prediction Section */
.ml-prediction {
    padding: 0;
}

.prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #F8F9FA, #EBF5FB);
    padding: 25px;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #E0E0E0;
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.forecast-direction {
    text-align: right;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.direction-label {
    font-size: 0.9em;
    color: #7F8C8D;
    margin-bottom: 8px;
}

.direction-value {
    font-size: 1.4em;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.direction-value.direction-bullish {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ECC71;
}

.direction-value.direction-bearish {
    background-color: rgba(231, 76, 60, 0.1);
    color: #E74C3C;
}

.direction-value.direction-neutral {
    background-color: rgba(243, 156, 18, 0.1);
    color: #F39C12;
}

.forecast-table {
    padding: 25px;
}

.forecast-table table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.forecast-table th {
    background: #EBF5FB;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #2C3E50;
    border: 1px solid #D1DCE3;
}

.forecast-table td {
    padding: 15px;
    border: 1px solid #E0E0E0;
}

.forecast-table tr:nth-child(even) {
    background-color: #F8F9FA;
}

.ml-insights {
    background: linear-gradient(to right, #F8F9FA, #EBF5FB);
    padding: 25px;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #E0E0E0;
}

.ml-insights h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2C3E50;
    font-size: 1.2em;
    border-bottom: 2px solid #E0E0E0;
    padding-bottom: 10px;
}

.ml-insights ul {
    padding-left: 20px;
    margin: 0;
}

.ml-insights li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 10px;
}

.ml-insights li:before {
    content: "";
    position: absolute;
    left: -15px;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3498DB;
}

/* General Section Content */
.section-text {
    white-space: pre-wrap;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    line-height: 1.8;
}

.section-html {
    padding: 25px;
    border-radius: 8px;
    background: white;
}

.section-data pre {
    white-space: pre-wrap;
    background-color: #F8F9FA;
    padding: 25px;
    border-radius: 8px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9em;
    overflow-x: auto;
    line-height: 1.6;
    border: 1px solid #E0E0E0;
}

/* Report Footer */
.report-footer {
    background: linear-gradient(135deg, #2C3E50 0%, #3498DB 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.report-footer p {
    margin: 10px 0;
    opacity: 0.9;
}

/* Signal styling */
.signal-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.signal-summary-item {
    flex: 1;
    min-width: 200px;
    background: #F8F9FA;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.signal-summary-item h4 {
    margin-top: 0;
    color: #2C3E50;
    border-bottom: 2px solid #E0E0E0;
    padding-bottom: 10px;
}

/* Market positioning (COT) */
.market-positioning-container {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.positioning-header {
    color: #2C3E50;
    margin-top: 0;
    border-bottom: 2px solid #E0E0E0;
    padding-bottom: 10px;
}

/* Weather cards */
.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.weather-card {
    background: #F8F9FA;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.weather-card:hover {
    transform: translateY(-5px);
}

.weather-card h4 {
    color: #2C3E50;
    margin: 0 0 15px 0;
    border-bottom: 2px solid #E0E0E0;
    padding-bottom: 10px;
}

.weather-metric {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px dashed #E0E0E0;
}

.weather-metric:last-child {
    border-bottom: none;
}

/* Economic indicators */
.economic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.economic-card {
    background: #F8F9FA;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.economic-card:hover {
    transform: translateY(-5px);
}

.economic-card h4 {
    margin-top: 0;
    color: #2C3E50;
}

.economic-value {
    font-size: 1.4em;
    font-weight: 700;
    margin: 10px 0;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

/* Print styles */
@media print {
    body {
        background: white;
    }

    .report-container {
        box-shadow: none;
        max-width: 100%;
    }

    .toc-container {
        break-after: page;
    }

    .report-section {
        break-inside: avoid;
    }

    .indicator-card:hover,
    .weather-card:hover,
    .economic-card:hover {
        transform: none;
    }
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .report-header {
        padding: 30px 20px;
    }

    .report-title {
        font-size: 2em;
    }

    .logo {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .toc {
        grid-template-columns: 1fr;
    }

    .indicators-grid,
    .weather-grid,
    .economic-grid {
        grid-template-columns: 1fr;
    }

    .prediction-header {
        flex-direction: column;
        gap: 20px;
    }

    .forecast-direction {
        text-align: left;
        width: 100%;
    }
}

/* Fundamental Analysis Section */
.fundamental-analysis {
    padding: 0;
}

.balance-overview {
    padding: 25px;
    background: linear-gradient(to right, #F8F9FA, #EBF5FB);
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #E0E0E0;
}

.balance-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.balance-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2C3E50;
    font-size: 1.2em;
    border-bottom: 2px solid #E0E0E0;
    padding-bottom: 10px;
}

.balance-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #2C3E50;
    margin: 10px 0;
}

.balance-change {
    font-size: 1.1em;
    font-weight: 500;
    margin: 10px 0;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.balance-change.positive {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ECC71;
}

.balance-change.negative {
    background-color: rgba(231, 76, 60, 0.1);
    color: #E74C3C;
}

.balance-ratio {
    margin-top: 10px;
    color: #7F8C8D;
}

.supply-demand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    padding: 25px;
}

.supply-section h3,
.demand-section h3 {
    color: #2C3E50;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 2px solid #E0E0E0;
    padding-bottom: 10px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.data-table th {
    background: #EBF5FB;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #2C3E50;
    border: 1px solid #D1DCE3;
}

.data-table td {
    padding: 10px 15px;
    border: 1px solid #E0E0E0;
}

.data-table tr:nth-child(even) {
    background-color: #F8F9FA;
}

.data-table .total-row {
    background-color: #EBF5FB;
}

.positive {
    color: #2ECC71;
}

.negative {
    color: #E74C3C;
}

@media screen and (max-width: 768px) {
    .supply-demand-grid {
        grid-template-columns: 1fr;
    }
}

/* Weather Analysis Section */
.weather-analysis {
    padding: 0;
}

.weather-summary {
    padding: 25px;
    background: linear-gradient(to right, #F8F9FA, #EBF5FB);
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #E0E0E0;
}

.summary-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.summary-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2C3E50;
    font-size: 1.2em;
    border-bottom: 2px solid #E0E0E0;
    padding-bottom: 10px;
    text-align: center;
}

.impact-overview {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.impact-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #E0E0E0;
}

.impact-item:last-child {
    border-bottom: none;
}

.impact-label {
    font-weight: 500;
    color: #2C3E50;
}

.impact-value {
    color: #3498DB;
    font-weight: 500;
}

.regional-patterns {
    padding: 25px;
    border-bottom: 1px solid #E0E0E0;
}

.regional-patterns h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2C3E50;
    font-size: 1.2em;
    text-align: center;
}

.patterns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.pattern-card {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    text-align: center;
}

.pattern-card:hover {
    transform: translateY(-5px);
}

.pattern-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2C3E50;
    font-size: 1.1em;
    border-bottom: 2px solid #E0E0E0;
    padding-bottom: 8px;
}

.pattern-value {
    color: #3498DB;
    font-weight: 500;
}

.degree-days {
    padding: 25px;
}

.degree-days h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2C3E50;
    font-size: 1.2em;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .patterns-grid {
        grid-template-columns: 1fr;
    }
}

/* Fibonacci Analysis Section */
.fibonacci-analysis {
    padding: 0;
}

.price-context {
    padding: 25px;
    background: linear-gradient(to right, #F8F9FA, #EBF5FB);
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #E0E0E0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.current-price-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.support-resistance {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.support,
.resistance {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.support .label,
.resistance .label {
    font-size: 0.9em;
    color: #7F8C8D;
    margin-bottom: 8px;
}

.support .value {
    color: #2ECC71;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 5px;
}

.resistance .value {
    color: #E74C3C;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 5px;
}

.pct {
    font-size: 0.9em;
    color: #7F8C8D;
}

.fibonacci-visualization,
.fibonacci-extension {
    padding: 25px;
    border-bottom: 1px solid #E0E0E0;
}

.fibonacci-visualization h3,
.fibonacci-extension h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2C3E50;
    font-size: 1.2em;
    text-align: center;
}

.fibonacci-levels,
.extension-levels {
    display: grid;
    grid-template-columns: 1fr;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.fibonacci-level,
.extension-level {
    display: grid;
    grid-template-columns: 120px 1fr 150px;
    padding: 16px 20px;
    border-bottom: 1px solid #E0E0E0;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    align-items: center;
}

.fibonacci-level:hover,
.extension-level:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.fibonacci-level:last-child,
.extension-level:last-child {
    border-bottom: none;
}

.fibonacci-level.current-level {
    background-color: rgba(52, 152, 219, 0.15);
    font-weight: 700;
}

.fibonacci-level.support-level {
    background-color: rgba(46, 204, 113, 0.15);
}

.fibonacci-level.resistance-level {
    background-color: rgba(231, 76, 60, 0.15);
}

.fib-pct {
    font-weight: 700;
    font-size: 1.2em;
    color: #34495E;
    padding: 4px 10px;
    border-radius: 4px;
    background: #F5F7FA;
    text-align: center;
}

.fib-price {
    font-weight: 600;
    font-size: 1.1em;
    color: #2C3E50;
    padding-left: 20px;
}

.fib-label {
    font-size: 0.95em;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    text-align: center;
    margin-left: auto;
}

.fibonacci-level.support-level .fib-label {
    background-color: rgba(46, 204, 113, 0.2);
    color: #27AE60;
}

.fibonacci-level.resistance-level .fib-label {
    background-color: rgba(231, 76, 60, 0.2);
    color: #C0392B;
}

.fibonacci-level.current-level .fib-label {
    background-color: rgba(52, 152, 219, 0.2);
    color: #2980B9;
}

@media screen and (max-width: 768px) {
    .support-resistance {
        grid-template-columns: 1fr;
    }

    .fibonacci-level,
    .extension-level {
        grid-template-columns: 80px 1fr 100px;
        padding: 12px 15px;
    }

    .fib-price {
        padding-left: 10px;
    }
}

/* Economic Analysis Section */
.economic-analysis {
    padding: 0;
}

.sentiment-summary {
    padding: 25px;
    background: linear-gradient(to right, #F8F9FA, #EBF5FB);
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #E0E0E0;
}

.summary-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sentiment-value {
    font-size: 1.6em;
    font-weight: 700;
    color: #3498DB;
    margin: 10px 0 20px;
    text-align: center;
}

.sentiment-factors {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.factor-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #E0E0E0;
}

.factor-item:last-child {
    border-bottom: none;
}

.factor-label {
    font-weight: 500;
    color: #2C3E50;
}

.factor-value {
    color: #3498DB;
}

.indicators-section {
    padding: 25px;
}

.indicators-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2C3E50;
    font-size: 1.3em;
    text-align: center;
}

.economic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.economic-card {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.2s;
}

.economic-card:hover {
    transform: translateY(-5px);
}

.economic-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2C3E50;
    font-size: 1.1em;
    border-bottom: 2px solid #E0E0E0;
    padding-bottom: 8px;
}

.current-value {
    font-size: 1.6em;
    font-weight: 700;
    color: #2C3E50;
    margin: 15px 0;
}

.change-values {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.daily-change,
.weekly-change {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.change-label {
    font-weight: 500;
    color: #7F8C8D;
}

/* CFTC COT Analysis Section */
.cot-analysis {
    padding: 0;
}

.cot-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 25px;
}

.cot-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.cot-section h3 {
    margin: 0;
    padding: 15px 20px;
    background: #F8F9FA;
    color: #2C3E50;
    font-size: 1.2em;
    border-bottom: 1px solid #E0E0E0;
}

.cot-card {
    padding: 20px;
}

.cot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cot-sentiment {
    font-size: 1.2em;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
}

.cot-sentiment.bullish-and-strengthening,
.cot-sentiment.bullish {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ECC71;
}

.cot-sentiment.bullish-but-weakening {
    background-color: rgba(241, 196, 15, 0.1);
    color: #F1C40F;
}

.cot-sentiment.bearish,
.cot-sentiment.bearish-and-strengthening {
    background-color: rgba(231, 76, 60, 0.1);
    color: #E74C3C;
}

.cot-sentiment.bearish-but-weakening {
    background-color: rgba(243, 156, 18, 0.1);
    color: #F39C12;
}

.cot-report-date {
    color: #7F8C8D;
    font-size: 0.9em;
}

.cot-metrics {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cot-metric {
    display: flex;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px dashed #E0E0E0;
}

.cot-metric:last-child {
    border-bottom: none;
}

.metric-label {
    flex: 1;
    font-weight: 500;
    color: #2C3E50;
}

.metric-value {
    font-weight: 500;
    color: #2C3E50;
    margin-right: 10px;
}

.metric-change {
    font-size: 0.9em;
    padding: 2px 6px;
    border-radius: 3px;
}

.metric-change.positive {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ECC71;
}

.metric-change.negative {
    background-color: rgba(231, 76, 60, 0.1);
    color: #E74C3C;
}

.cot-rationale {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    border-left: 4px solid #2c3e50;
}

.cot-rationale h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 600;
}

.cot-rationale ul {
    margin: 0;
    padding-left: 1.2rem;
}

.cot-rationale li {
    color: #495057;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.cot-rationale li:last-child {
    margin-bottom: 0;
}

/* News Analysis Section */
.news-analysis {
    padding: 0;
}

.sentiment-overview {
    padding: 25px;
    background: linear-gradient(to right, #F8F9FA, #EBF5FB);
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #E0E0E0;
}

.overview-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.overview-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2C3E50;
    font-size: 1.2em;
    border-bottom: 2px solid #E0E0E0;
    padding-bottom: 10px;
}

.sentiment-value.neutral {
    background-color: rgba(243, 156, 18, 0.1);
    color: #F39C12;
}

.sentiment-value.bullish,
.sentiment-value.positive {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ECC71;
}

.sentiment-value.bearish,
.sentiment-value.negative {
    background-color: rgba(231, 76, 60, 0.1);
    color: #E74C3C;
}

.sentiment-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.sentiment-metric {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: #F8F9FA;
    border-radius: 6px;
}

.sentiment-metric .metric-label {
    font-size: 0.9em;
    color: #7F8C8D;
    margin-bottom: 5px;
}

.sentiment-metric .metric-value {
    font-weight: 500;
    color: #2C3E50;
}

.symbol-sentiments {
    padding: 25px;
    border-bottom: 1px solid #E0E0E0;
}

.symbol-sentiments h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2C3E50;
    font-size: 1.2em;
    text-align: center;
}

.sentiments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.symbol-card {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.symbol-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2C3E50;
    font-size: 1em;
}

.symbol-sentiment {
    font-size: 1.3em;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.symbol-sentiment.positive {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ECC71;
}

.symbol-sentiment.negative {
    background-color: rgba(231, 76, 60, 0.1);
    color: #E74C3C;
}

.symbol-sentiment.neutral {
    background-color: rgba(243, 156, 18, 0.1);
    color: #F39C12;
}

.news-topics {
    padding: 25px;
}

.news-topics h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2C3E50;
    font-size: 1.2em;
    text-align: center;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.topic-card {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.topic-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2C3E50;
    font-size: 1.1em;
    border-bottom: 2px solid #E0E0E0;
    padding-bottom: 8px;
}

.topic-count {
    font-size: 0.9em;
    color: #7F8C8D;
    margin-bottom: 15px;
}

.topic-headlines {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-headlines li {
    padding: 8px 0;
    border-bottom: 1px dashed #E0E0E0;
}

.topic-headlines li:last-child {
    border-bottom: none;
}

.topic-headlines .headline {
    display: block;
    font-weight: 500;
    color: #2C3E50;
    margin-bottom: 5px;
}

.topic-headlines .source {
    font-size: 0.85em;
    color: #7F8C8D;
}

/* AI Analysis Section */
.ai-analysis {
    padding: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.ai-content {
    line-height: 1.8;
    color: #2C3E50;
    font-size: 1.05em;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.3px;
}

.ai-section {
    position: relative;
    padding: 30px;
    margin: 25px 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(52, 152, 219, 0.08);
}

.ai-section-icon {
    position: absolute;
    top: -15px;
    left: 25px;
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 1.2em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.ai-content h3 {
    color: #2980B9;
    font-size: 1.3em;
    margin: 10px 0 25px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.1);
    font-weight: 600;
}

.highlight {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
    margin: 0 2px;
    font-family: 'JetBrains Mono', monospace;
}

.highlight.neutral {
    background-color: rgba(189, 195, 199, 0.2);
    color: #7F8C8D;
}

.highlight.bearish {
    background-color: rgba(231, 76, 60, 0.1);
    color: #C0392B;
}

.highlight.bullish {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27AE60;
}

.highlight.support {
    background-color: rgba(52, 152, 219, 0.1);
    color: #2980B9;
}

.highlight.resistance {
    background-color: rgba(155, 89, 182, 0.1);
    color: #8E44AD;
}

.highlight.balance {
    background-color: rgba(241, 196, 15, 0.1);
    color: #D68910;
}

.highlight.weather {
    background-color: rgba(52, 152, 219, 0.1);
    color: #2980B9;
}

.highlight.strategy {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27AE60;
}

.highlight.ml {
    background-color: rgba(155, 89, 182, 0.1);
    color: #8E44AD;
}

.highlight.risk {
    background-color: rgba(231, 76, 60, 0.1);
    color: #C0392B;
}

.price {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: #2C3E50;
    background: rgba(52, 152, 219, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    margin: 0 2px;
}

.warning-box {
    background-color: rgba(243, 156, 18, 0.05);
    border-left: 4px solid #F39C12;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

/* Section-specific styles */
.ai-section.traders {
    border-left: 3px solid #3498DB;
}

.ai-section.producers {
    border-left: 3px solid #E67E22;
}

.ai-section.consumers {
    border-left: 3px solid #2ECC71;
}

.ai-section.analysts {
    border-left: 3px solid #9B59B6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ai-analysis {
        padding: 20px;
        margin: 20px 0;
    }

    .ai-section {
        padding: 25px;
        margin: 20px 0;
    }

    .ai-section-icon {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 15px;
        display: inline-block;
    }

    .ai-content {
        font-size: 1em;
    }

    .highlight {
        display: inline;
        padding: 1px 4px;
    }
}

/* LNG Market Analysis Section */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-6 {
    flex: 0 0 calc(50% - 30px);
    max-width: calc(50% - 30px);
    padding: 0 15px;
}

.col-md-12 {
    flex: 0 0 calc(100% - 30px);
    max-width: calc(100% - 30px);
    padding: 0 15px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 15px 20px;
}

.card-header h5 {
    margin: 0;
    color: #2C3E50;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.mb-0 {
    margin-bottom: 0;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    color: #fff;
}

.bg-success {
    background-color: #28a745;
}

.bg-danger {
    background-color: #dc3545;
}

.bg-secondary {
    background-color: #6c757d;
}

.text-muted {
    color: #6c757d;
}

.small {
    font-size: 85%;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}

.table-sm {
    font-size: 0.875rem;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.table th,
.table td {
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Make LNG tables scrollable on small screens */
@media (max-width: 768px) {
    .card-body {
        overflow-x: auto;
    }

    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .row {
        margin-right: 0;
        margin-left: 0;
    }
}

/* Fix for empty lines and elements after footer */
body::after {
    content: none !important;
}

hr:empty, div:empty {
    display: none !important;
}

/* Ensure the last section doesn't have a bottom border */
.report-section:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

/* === OPEC Narrative Analysis Section === */
.opec-narrative-analysis {
    padding: 25px;
    background-color: #ffffff; /* Slightly off-white for a subtle contrast or use existing card bg */
    border: 1px solid #e0e4e8; /* Softer border */
    border-radius: 8px; /* Consistent with other cards */
    box-shadow: 0 3px 10px rgba(0,0,0,0.04); /* Consistent shadow */
    margin-top: 10px; /* Space from section header if any */
}

/* Overriding JetBrains Mono for OPEC content for better readability of narrative text */
.opec-narrative-analysis,
.opec-narrative-analysis p,
.opec-narrative-analysis li,
.opec-narrative-analysis blockquote {
    font-weight: 400;
    letter-spacing: normal; /* Reset letter-spacing for non-mono font */
}

.opec-narrative-analysis h2, /* Main title if AI generates one */
.opec-narrative-analysis h3, /* Subsection titles if AI uses h3 */
.opec-narrative-analysis h4  /* Subsection titles (Key Themes, OPEC Stance etc.) */
{
    color: #2C3E50; /* Existing heading color */
    margin-top: 20px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498DB; /* Primary accent color for heading underline */
    font-weight: 600; /* Bolder headings */
    letter-spacing: normal;
}

.opec-narrative-analysis h2 { font-size: 1.8em; }
.opec-narrative-analysis h3 { font-size: 1.5em; }
.opec-narrative-analysis h4 { font-size: 1.3em; }

.opec-narrative-analysis p {
    line-height: 1.7;
    margin-bottom: 18px;
    color: #4a5568; /* Softer text color */
    font-size: 1em; /* Base font size */
}

.opec-narrative-analysis ul,
.opec-narrative-analysis ol {
    margin-left: 25px;
    margin-bottom: 18px;
    padding-left: 0; /* Remove default browser padding if using custom markers or spacing */
}

.opec-narrative-analysis li {
    margin-bottom: 10px;
    color: #4a5568;
    font-size: 1em;
    padding-left: 10px; /* Space for custom bullet */
    position: relative;
}

.opec-narrative-analysis ul li::before {
    content: "\2022"; /* Bullet character */
    color: #3498DB; /* Primary accent color for bullets */
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1.2em; /* Adjust to align with text*/
    position: absolute;
    left: 0;
}

.opec-narrative-analysis strong {
    font-weight: 600; /* Slightly less heavy than default bold for better balance */
    color: #2C3E50;
}

.opec-narrative-analysis blockquote {
    border-left: 4px solid #3498DB; /* Primary accent color */
    margin: 20px 0;
    padding: 15px 20px;
    background-color: #f8f9fa; /* Light background for quote */
    color: #4a5568;
    font-style: italic;
    border-radius: 0 4px 4px 0;
}

.opec-narrative-analysis blockquote p {
    margin-bottom: 0; /* No extra margin for paragraphs inside blockquote */
}

/* Styles for the table within OPEC analysis - ensuring they are here */
.opec-narrative-analysis table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06); /* Enhanced shadow */
    font-size: 0.9em; /* Slightly smaller font for table data */
    border-radius: 6px; /* Rounded corners for the table */
    overflow: hidden; /* To make border-radius work on table */
}

.opec-narrative-analysis th,
.opec-narrative-analysis td {
    border: 1px solid #e0e4e8; /* Softer cell borders */
    padding: 14px 18px; /* More padding */
    text-align: left;
    vertical-align: top; 
}

.opec-narrative-analysis th {
    background-color: #f0f4f8; /* Lighter, cooler header */
    color: #2C3E50; /* Darker header text for contrast */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85em;
}

.opec-narrative-analysis tr:nth-child(even) td {
    background-color: #f9fafb; /* Subtle zebra striping */
}

.opec-narrative-analysis tr:hover td {
    background-color: #eef2f7; /* Slightly more noticeable hover */
}

.opec-narrative-analysis caption {
    caption-side: top;
    font-size: 1.2em; /* Larger caption */
    font-weight: 600;
    margin-bottom: 15px;
    color: #2C3E50;
    text-align: left;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Error and No Data messages within OPEC section (if needed, though general .error-message might cover it) */
.opec-narrative-analysis .error-message,
.opec-narrative-analysis .no-data {
    color: #c53030; /* Red for errors */
    background-color: #fed7d7; /* Light red background */
    border: 1px solid #f56565;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Google Sheets Summary Section Styling */
.google-sheets-summary {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-family: 'JetBrains Mono', monospace;
}

.google-sheets-summary .summary-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f3f4;
}

.google-sheets-summary .summary-meta {
    display: flex;
    gap: 30px;
    align-items: center;
}

.google-sheets-summary .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.google-sheets-summary .meta-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'JetBrains Mono', monospace;
}

.google-sheets-summary .meta-value {
    font-size: 14px;
    color: #495057;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.google-sheets-summary .summary-main {
    position: relative;
}

.google-sheets-summary .summary-content {
    font-size: 15px;
    line-height: 1.7;
    color: #2c3e50;
    font-weight: 400;
    text-align: justify;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007bff;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.3px;
    position: relative;
}

.google-sheets-summary.error {
    background: #fff5f5;
    border-color: #fed7d7;
}

.google-sheets-summary .error-message {
    background: #ffffff;
    border: 1px solid #feb2b2;
    border-radius: 6px;
    padding: 20px;
    color: #c53030;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
}

.google-sheets-summary .error-message p {
    margin-bottom: 8px;
    font-size: 15px;
    font-family: 'JetBrains Mono', monospace;
}

.google-sheets-summary .error-message p:last-child {
    margin-bottom: 0;
}