@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f3f4f6;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.calculator-container {
    padding: 20px;
}

.calculator-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 380px;
}

h1 {
    font-size: 22px;
    color: #1f2937;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
}

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

.input-group label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    color: #1f2937;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: #3b82f6;
    outline: none;
}

button {
    width: 100%;
    padding: 14px;
    background-color: #3b82f6;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #2563eb;
}

.error-msg {
    color: #dc2626;
    font-size: 14px;
    text-align: center;
    margin-top: 15px;
    min-height: 20px;
}

.results-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.result-row span:first-child {
    font-size: 14px;
    color: #4b5563;
}

.result-row span:last-child {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}
