﻿body {
    
    line-height: 1.6;
    
}

.calculator-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    padding: 25px;
    margin: 70px auto;
    max-width: 480px;
}

h1 {
    color: #2a5c91;
    text-align: center;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2a5c91;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

/* Error styling */
.error-input {
    border-color: #ff7b00 !important;
}

.error-message {
    color: #ff7b00;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.unit-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.unit-select-container {
    flex: 1;
    min-width: 0;
}

.choices {
    width: 100% !important;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.choices__inner {
    background: transparent !important;
    border: none !important;
    min-height: 44px;
}

.unit-swap-btn {
    background: #2a5c91;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    
    flex-shrink: 0;
}
    .unit-swap-btn:hover{
        opacity: 0.9;
    }

.btn-calc {
    background-color: #2a5c91;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: block;
    width: 100%;
    margin: 25px 0;
}
    .btn-calc:hover{
        opacity: 0.9;
    }

    .result-section {
        padding: 20px;
        border-radius: 4px;
        margin-top: 30px;
        background-color: #f8f9fa;
        border: 1px solid #eee;
    }

.result-value {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

@media (max-width: 600px) {


    .calculator-container {
        padding: 15px;
        width: 90%;
        margin-top: 100px;
    }

    h1 {
        font-size: 24px;
    }
}