* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border: 1px solid #ddd;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 28px;
    font-weight: normal;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 15px;
}

.input-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

input {
    padding: 10px 12px;
    border: 1px solid #bbb;
    font-size: 15px;
    font-family: Arial, sans-serif;
}

input:focus {
    outline: none;
    border-color: #2c3e50;
}

button {
    grid-column: 1 / -1;
    padding: 14px;
    background: #2c3e50;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background: #34495e;
}

.results {
    display: none;
    margin-top: 40px;
    border-top: 2px solid #eee;
    padding-top: 30px;
}

.results.show {
    display: block;
}

.savings-card {
    background: #2c3e50;
    color: white;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    border: 3px solid #2c3e50;
}

.savings-card h2 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.savings-amount {
    font-size: 42px;
    font-weight: bold;
}

.breakdown {
    margin-bottom: 40px;
}

.breakdown h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

table tr {
    border-bottom: 1px solid #ddd;
}

table tr:last-child {
    border-bottom: none;
}

table td {
    padding: 15px;
    color: #333;
    font-family: Arial, sans-serif;
}

table td:first-child {
    font-weight: normal;
    background: #f9f9f9;
}

table td:last-child {
    text-align: right;
    font-weight: bold;
    color: #2c3e50;
}

.chart-container {
    max-width: 450px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    background: #fafafa;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
}

.tab {
    padding: 12px 24px;
    background: transparent;
    color: #666;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin: 0;
}

.tab.active {
    color: #2c3e50;
    border-bottom-color: #2c3e50;
    background: transparent;
}

.tab:hover {
    background: #f5f5f5;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 8px 16px;
    background: white;
    color: #2c3e50;
    border: 1px solid #2c3e50;
    font-size: 13px;
    cursor: pointer;
    margin: 0;
}

.btn-secondary:hover {
    background: #2c3e50;
    color: white;
}

.savings-percent {
    font-size: 14px;
    margin-top: 5px;
    opacity: 0.9;
}

.goal-status {
    display: none;
    padding: 15px;
    background: #ecf0f1;
    border-left: 4px solid #2c3e50;
    margin-bottom: 20px;
    font-size: 14px;
}

.projection {
    display: none;
    padding: 20px;
    background: #e8f5e9;
    border: 1px solid #4caf50;
    margin-bottom: 20px;
}

.projection h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.projection p {
    margin: 5px 0;
    color: #333;
}

.comparison {
    display: none;
    margin-top: 30px;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
}

.comparison h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.comparison table {
    margin-bottom: 15px;
}

.comparison p {
    font-size: 15px;
    color: #333;
}
