body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

h1 {
    text-align: center;
}

.calculator-container {
    background-color: #fff;
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    background: linear-gradient(to right, #f8f9fa, #e0eafc);
}

.calculator-title {
    font-size: 22px;
    color: #ffffff;
    text-align: center;
    font-weight: 600;
    padding: 15px;
    margin-top: 0;
    margin-bottom: 25px;
    background: linear-gradient(to right, #053b7d, #066ba5);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.input-row {
    margin-bottom: 15px;
}

.input-half {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-half label {
    font-size: 14px;
    font-weight: 600;
    color: #334d50;
}

.input-with-unit {
    display: flex;
    gap: 10px;
}

.input-with-unit input {
    flex: 1;
}

.input-with-unit select {
    width: 80px;
}

.input-half input,
.input-half select {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 2px solid #89a19c;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    outline: 0;
    transition: all 0.3s ease;
    background-color: #e8f0f2;
    box-sizing: border-box;
}

.input-half input:focus,
.input-half select:focus {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

#button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

#button-container button {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

#button-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

#result {
    background-color: #e8f0f2;
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
}

#result h3, #result h4 {
    margin-top: 0;
    color: #053b7d;
    text-align: center;
}

.result-main {
    font-size: 36px;
    font-weight: bold;
    color: #053b7d;
    text-align: center;
    padding: 20px;
    background: linear-gradient(to right, #e0eafc, #cfdef3);
    border-radius: 8px;
    margin-bottom: 20px;
}

.result-breakdown {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

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

.result-item:last-child {
    border-bottom: none;
}

.result-item .label {
    color: #555;
}

.result-item .value {
    font-weight: bold;
    color: #053b7d;
}

.equivalents-box {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.equivalents-box h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.equivalents-box ul {
    margin: 0;
    padding-left: 20px;
}

.equivalents-box li {
    margin: 5px 0;
    font-size: 14px;
}

.goal-box {
    background: white;
    border-radius: 8px;
    padding: 15px;
}

.goal-box h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.progress-bar {
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.goal-reached {
    color: #28a745;
    font-weight: bold;
}

.small-note {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.info-table th, .info-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.info-table th {
    background: #053b7d;
    color: white;
}

.disclaimer-text {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-top: 20px;
    padding: 10px;
}

.copywidget-text {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin: 10px 0 5px;
}

.smaller-button {
    display: inline-block;
    padding: 8px 15px;
    font-size: 11px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
    transition: background 0.3s;
}

.smaller-button:hover {
    background: #5a6268;
}

@media screen and (max-width: 480px) {
    .calculator-container {
        padding: 15px;
        margin: 10px;
        max-width: 100%;
    }

    .calculator-title {
        font-size: 18px;
        padding: 12px;
    }

    #button-container {
        flex-direction: column;
    }

    #button-container button {
        width: 100%;
    }

    .result-main {
        font-size: 28px;
    }
}
