body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items to the top */
    min-height: 100vh;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

header h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

.calculator-container {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.input-panel,
.results-panel {
    flex: 1;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.input-panel h2,
.results-panel h2 {
    margin-top: 0;
    color: #34495e;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #555;
}

.input-group input[type="number"] {
    width: calc(100% - 22px); /* Adjust for padding and border */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.input-group input[type="number"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.benchmark-group p {
    margin: 8px 0;
    color: #444;
    font-size: 0.95em;
}

.benchmark-group span {
    font-weight: bold;
    color: #2980b9;
}

#resultsTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#resultsTable th,
#resultsTable td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    font-size: 0.95em;
}

#resultsTable th {
    background-color: #3498db;
    color: white;
    font-weight: bold;
}

#resultsTable tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

#resultsTable td:nth-child(2),
#resultsTable td:nth-child(3) {
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-container {
        flex-direction: column;
    }

    .input-panel,
    .results-panel {
        width: 100%;
        box-sizing: border-box; /* Ensure padding doesn't break layout */
        margin-bottom: 20px;
    }

    .input-panel:last-child,
    .results-panel:last-child {
        margin-bottom: 0;
    }

    header h1 {
        font-size: 1.5em;
    }
}

