* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Calibri', Arial, sans-serif;
    font-size: 11px;
    background-color: #000000; /* Black background */
    padding: 20px;
    color: #ffffff; /* White text */
}

.container {
    max-width: 100%;
    background: #000000; /* Black background */
    padding: 20px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

h1 {
    color: #ffd700; /* Yellow color for main header */
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

h2 {
    color: #ffd700; /* Yellow color for subtitles */
    margin-bottom: 15px;
    font-size: 18px;
}

h3 {
    color: #ffd700; /* Yellow color for subtitles */
    margin-bottom: 10px;
    font-size: 16px;
}

h4 {
    color: #ffd700; /* Yellow color for subtitles */
    margin-bottom: 8px;
    font-size: 14px;
}

p {
    color: #ffffff; /* White text */
}

.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ffd700;
}

.tab {
    padding: 10px 20px;
    background-color: #333333;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px 5px 0 0;
    transition: background-color 0.3s;
    color: #ffffff;
}

.tab.active {
    background-color: #ffd700;
    color: #000000;
}

.tab:hover {
    background-color: #ffed4e;
    color: #000000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 11px;
    background-color: #1a1a1a;
}

th, td {
    border: 1px solid #444;
    padding: 4px 6px;
    text-align: right;
    color: #ffffff; /* White text for values */
}

th {
    background-color: #d9d9d9;
    font-weight: bold;
    text-align: center;
    color: #000000;
}

.yellow-input {
    background-color: #ffff00; /* Keep yellow input boxes */
    border: 1px solid #999;
    text-align: right;
    padding: 2px 4px;
    width: 100%;
    font-size: 11px;
    color: #000000;
}

.orange-header {
    background-color: #ffc000; /* Keep orange header */
    font-weight: bold;
    color: #000000;
}

.green-cell {
    background-color: #92d050; /* Keep green cells */
}

.green-input {
    background-color: #92d050; /* Keep green input boxes */
    border: 1px solid #999;
    text-align: right;
    padding: 2px 4px;
    font-size: 11px;
    font-weight: bold;
    color: #000000;
}

.blue-cell {
    background-color: #00b0f0; /* Keep blue cells */
}

.calculated {
    background-color: #2a2a2a;
}

.total-row {
    background-color: #ffc000; /* Keep orange for total row */
    font-weight: bold;
    color: #000000;
}

.result-cell {
    background-color: #00b0f0; /* Keep blue for result cells */
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.btn {
    background-color: #ffd700;
    color: #000000;
    border: none;
    padding: 10px 20px;
    margin: 10px 5px 10px 0;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
    font-weight: bold;
}

.btn:hover {
    background-color: #ffed4e;
}

.charts-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.chart-box {
    flex: 1;
    min-width: 450px;
    background: #1a1a1a;
    padding: 20px;
    border: 1px solid #ffd700;
    border-radius: 5px;
}

/* FLNG IRR Chart specific sizing - only for stochastic charts */
#stochastic .chart-box,
#charts .chart-box {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 500px;
    max-height: none;
    overflow: visible;
    padding-bottom: 75px; /* 20mm extension downward for key highlights */
}

#stochastic .chart-box h3,
#charts .chart-box h3 {
    flex-shrink: 0;
    margin-bottom: 10px;
}

/* Canvas wrapper to ensure proper sizing */
#stochastic .chart-box canvas,
#charts .chart-box canvas {
    width: 100% !important;
    height: 350px !important;
    max-height: 350px !important;
    min-height: 350px !important;
    background-color: #1a1a1a;
    display: block;
}

.chart-highlights {
    margin-top: 15px;
    padding: 15px;
    background: #2a2a2a;
    border-left: 4px solid #ffd700;
    flex-shrink: 0;
    min-height: auto;
    overflow: visible;
    height: auto;
    max-height: none;
}

.chart-highlights h4 {
    margin: 0 0 10px 0;
    color: #ffd700;
    font-size: 14px;
}

.chart-highlights p {
    margin: 8px 0;
    font-size: 12px;
    color: #ffffff;
    line-height: 1.5;
    word-wrap: break-word;
    overflow: visible;
}

canvas {
    max-width: 100%;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 30px;
    border: 2px solid #ffd700;
    width: 90%;
    max-width: 1200px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 10px;
    color: #ffffff;
}

.close {
    color: #ffd700;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #ffed4e;
}

.input-group {
    margin: 10px 0;
}

.label {
    display: inline-block;
    width: 200px;
    font-weight: bold;
    color: #ffd700;
}

.scrollable {
    overflow-x: auto;
}

.summary-report {
    margin-bottom: 20px;
    padding: 15px;
    background: #1a1a1a;
    border: 2px solid #ffd700;
    border-radius: 5px;
}

.summary-report h3 {
    color: #ffd700;
    margin-top: 0;
}

/* Scrollbar styling for better visibility on black background */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffed4e;
}

/* Input styling in modal */
.modal-content input[type="number"] {
    background-color: #2a2a2a;
    color: #ffffff;
    border: 1px solid #ffd700;
    padding: 5px;
    border-radius: 3px;
}

.modal-content input[type="number"]:focus {
    outline: none;
    border-color: #ffed4e;
}
