@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir.woff2') format('woff2'),
         url('../fonts/Vazir.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Vazir', Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 1rem;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.container {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    text-align: center;
    box-sizing: border-box;
}

h1 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

h2 {
    color: #07b418;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 0.8rem;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    color: #555;
    text-align: right;
    direction: rtl;
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    text-align: left;
    direction: ltr;
    box-sizing: border-box;
}

button {
    background-color: #28a745;
    color: white;
    padding: 0.6rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    font-family: 'Vazir';
    width: 100%;
    max-width: 200px;
}

button:hover {
    background-color: #218838;
}

#equivalent-area,
#result,
#cost {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: #ffffff;
    padding: 0.8rem;
    border-radius: 0.3rem;
    text-align: right;
    direction: rtl;
}

#equivalent-area,
#cost {
    background-color: #1a4d7a;
}

#result {
    background-color: #147565;
}

.error {
    color: red;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

@media (max-width: 600px) {
    body {
        padding: 0.8rem;
    }

    .container {
        padding: 1.5rem;
        max-width: 100%;
    }

    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    label {
        font-size: 1.1rem;
    }

    input {
        padding: 0.8rem;
        font-size: 1.1rem;
    }

    button {
        padding: 0.8rem;
        font-size: 1.1rem;
        max-width: 100%;
    }

    #equivalent-area,
    #result,
    #cost {
        font-size: 1.1rem;
        padding: 1rem;
    }

    .error {
        font-size: 1rem;
    }
}
