/* Base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background-color: #f7f9fc;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

/* Form styles */
.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

button#calculateBtn {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

button#calculateBtn:hover {
    background-color: #0056b3;
}

/* Summary styles */
.summary {
    margin-top: 20px;
    text-align: center;
}

.summary h2 {
    font-size: 28px;
    color: #007BFF;
    margin-bottom: 0;
}

/* View toggle styles */
.view-toggle {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-toggle label {
    font-weight: 500;
}

.view-toggle select {
    padding: 6px 10px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Chart container */
.chart-container {
    margin-top: 30px;
    position: relative;
}

.hover-info {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
    min-height: 20px;
}

/* Table styles */
.table-container {
    margin-top: 30px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: #007BFF;
    color: white;
}

thead th {
    padding: 8px;
    text-align: left;
    font-weight: normal;
}

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

tbody td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.hidden {
    display: none;
}

/* Range summary text under the main summary */
.range-summary {
    font-size: 16px;
    color: #555;
    margin-top: 5px;
}

.range-summary span {
    font-weight: 600;
}