.currency-converter {
    max-width: 400px;
    margin: 50px auto;
    background: #1e1e1e;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    color: black;
    font-family: Arial, sans-serif;
}

.currency-converter .buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.currency-converter .buttons button {
    background-color: white;
    color: black;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    flex: 1;
    margin: 0 5px;
    font-weight: bold;
    min-width: 100px;
}

.currency-converter .buttons button.active {
    background-color: #f6a623;
    color: white;
}

.currency-box {
    display: flex;
    align-items: center;
    background:white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #555;
}

#currencySelect {
    width: 120px; /* کوچکتر شدن عرض برای قرارگیری بهتر */
    font-size: 14px;
    padding-left: 45px; /* فضای کافی برای پرچم */
    background-position: left center;
    background-repeat: no-repeat;
    height: 40px;
    font-family: Arial, sans-serif, "Segoe UI Emoji", "Noto Color Emoji";
}

#currencySelect option {
    font-size: 16px;
    display: flex;
    align-items: center;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

#selectedCurrencyFlag img {
    width: 35px; /* افزایش اندازه پرچم */
    height: auto;
    margin-right: 10px;
}

.exchange-rate {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #f6a623;
}

#result {
    color: black; /* رنگ متن مشابه Exchange Rate */
    font-weight: bold;
    font-size: 18px;
}

.currency-table-container {
    max-width: 700px;
    margin: 20px auto;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

#searchInput {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f6a623;
    color: white;
}
