body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f9f9f9;
    color: #333;
}

.calculator-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.description {
    text-align: center;
    margin-bottom: 25px;
    color: #555;
    font-size: 0.95em;
}

.input-section h2, .results-section h2 {
    color: #34495e;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

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

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

.input-group input[type="number"],
.input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
}

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

button#calculateButton {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    margin-top: 25px;
}

button#calculateButton:hover {
    background-color: #2980b9;
}

.results-section {
    margin-top: 30px;
}

#summaryResults {
    background-color: #eaf5ff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 5px solid #3498db;
}

#summaryResults p {
    margin: 8px 0;
    font-size: 1.05em;
}

#summaryResults strong {
    color: #2c3e50;
}

.table-container {
    overflow-x: auto; /* 가로 스크롤을 위해 추가 */
    margin-bottom: 20px;
}

table#yearlyDetailsTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table#yearlyDetailsTable th,
table#yearlyDetailsTable td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: right;
    font-size: 0.9em;
}

table#yearlyDetailsTable th {
    background-color: #3498db;
    color: white;
    text-align: center;
}

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

table#yearlyDetailsTable tbody tr:hover {
    background-color: #e2eff8;
}

.chart-container {
    width: 100%;
    margin-top: 30px;
    padding: 15px;
    background-color: #fdfdfd;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 반응형 디자인 */
@media (max-width: 600px) {
    .calculator-container {
        padding: 15px;
    }
    h1 {
        font-size: 1.5em;
    }
    .input-group input[type="number"],
    .input-group select,
    button#calculateButton {
        font-size: 1em;
    }
    table#yearlyDetailsTable th,
    table#yearlyDetailsTable td {
        padding: 8px;
        font-size: 0.85em;
    }
}

