.container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.calculate button {
    margin-bottom: 20px;
    margin-top: 10px;
}
.input-section, .results-section {
    flex: 1;
    min-width: 350px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

h1, h2 {
    color: #2c786c;
    margin-bottom: 20px;
}

button {
    background-color: #2c786c;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 6px;
    cursor: pointer;
    margin: 8px 0;
    font-weight: 600;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #1e524a;
}

.heir-item, .debt-item {
    border: 1px solid #e0e0e0;
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: white;
}

input, select {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.chart-container {
    height: 350px;
    margin-top: 25px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.hidden {
    display: none;
}

.warning {
    color: #d35400;
    padding: 12px;
    background-color: #fef5e7;
    border-radius: 6px;
    margin-bottom: 18px;
    border: 1px solid #f39c12;
}

.amount {
    font-size: 0.85em;
    color: #7f8c8d;
    margin-top: 3px;
}

.base-number {
    background: #eaf7f3;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #2c786c;
}

.remove-btn {
    background-color: #e74c3c;
    margin-top: 10px;
}

.remove-btn:hover {
    background-color: #c0392b;
}

p {
    color: #555;
    margin-bottom: 25px;
}