
/* AsaanTax.pk - Currency Converter Design */

#currency-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

#currency-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #14283f;
    margin-top: 5px;
}

#currency-form input,
#currency-form select {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid #d5dfe7;
    border-radius: 9px;
    background: #ffffff;
    color: #14283f;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#currency-form input:focus,
#currency-form select:focus {
    outline: none;
    border-color: #079b80;
    box-shadow: 0 0 0 3px rgba(7, 155, 128, 0.12);
}

#currency-form button {
    width: 100%;
    min-height: 50px;
    margin-top: 12px;
    padding: 14px 20px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(135deg, #079b80, #078779);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#currency-form button:hover {
    background: #067563;
}

#currency-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#currency-result {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: #078779;
    line-height: 1.3;
    margin: 18px 0;
    overflow-wrap: anywhere;
}

#currency-rate {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
}

#currency-updated {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

.calc-card:has(#currency-form) {
    padding: 30px;
    gap: 30px;
    border-radius: 16px;
    margin-bottom: 35px;
}

.calc-result:has(#currency-result) {
    padding: 25px;
    border-radius: 12px;
    background: linear-gradient(135deg, #edf9f5, #eef5fa);
    border: 1px solid #d7e9e4;
}

.calc-table:has(#currency-rates) {
    margin-top: 30px;
    margin-bottom: 20px;
}

.calc-table:has(#currency-rates) h2 {
    margin-bottom: 20px;
}

#currency-rates td {
    padding: 15px 18px;
    font-size: 14px;
}

#currency-rates tr:nth-child(even) {
    background: #f7fafc;
}

#currency-rates tr:hover {
    background: #eaf7f2;
}

#currency-rates td:last-child {
    font-weight: 600;
    color: #078779;
    font-variant-numeric: tabular-nums;
}

#rates-source {
    margin-top: 12px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .calc-card:has(#currency-form) {
        display: flex;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .calc-result:has(#currency-result) {
        padding: 20px;
    }

    #currency-form input,
    #currency-form select {
        font-size: 16px;
    }

    #currency-rates td {
        padding: 12px 10px;
        font-size: 13px;
    }

    #currency-result {
        font-size: 28px;
    }
}
