/* General Body Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Container Styling */
.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Headings */
h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #4a90e2;
    font-size: 24px;
    font-weight: 700;
}

/* Form Elements */
label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #555;
}

input {
    width: 100%;
    /* Ensure inputs take up full width of container minus padding */
    max-width: 100%;
    /* Prevent inputs from exceeding the container width */
    box-sizing: border-box;
    /* Include padding and border in the element's total width */
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    /* Increase font-size to 16px to prevent mobile zooming */
}

input:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

/* Explanation Text Styling */
small {
    display: block;
    margin-top: -15px;
    margin-bottom: 20px;
    color: #888;
    font-size: 12px;
}

/* Buttons */
button {
    width: 100%;
    padding: 12px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

button:hover {
    background-color: #357ab8;
}

/* Results Styling */
.results {
    margin-top: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Results Table */
.results table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    word-wrap: break-word;
    /* Allows content to wrap within cells */
}

.results th,
.results td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.results th {
    background-color: #4a90e2;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    /* Center-align headers for better alignment */
    white-space: nowrap;
    /* Prevents headers from wrapping */
}

.results td.key {
    font-weight: bold;
    color: #333;
    text-align: left;
    /* Left-align for keys (descriptions) */
    white-space: normal;
    /* Allows long descriptions to wrap */
    word-wrap: break-word;
    /* Ensures long words break correctly */
}

.results td.value {
    text-align: right;
    /* Right-align for values */
    font-weight: bold;
    white-space: nowrap;
    /* Prevents wrapping for numerical values */
}

/* Charts and Gauge Container */
#charts-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

#charts-container>div {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

#gauge-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

#gauge-container>div {
    width: 48%;
    height: 365px;
}

@media (max-width: 900px) {
    #gauge-container {
        flex-direction: column;
        gap: 20px;
    }

    #gauge-container>div {
        width: 100%;
        height: 300px;
    }
}