/* Live Exchange Rates Table Styles */
.exchange-rates {
    padding: 0 1%;
}

.exchange-rates .timer-circle {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    background: conic-gradient(#0b71d0 0deg, #ddd 0deg);
    box-sizing: border-box;
    font-size: 1.2rem;
    overflow: visible;
}

.exchange-rates .timer-circle::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    z-index: 1;
}

.exchange-rates .timer-circle span,
.timer-circle {
    position: relative;
    z-index: 2;
}

.exchange-rates .table-wrapper {
    border: 1px solid #cccccc;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
}

.exchange-rates thead th {
    padding: 10px 12px;
    text-align: left;
    font-size: 13px;
    color: #333;
    border: none !important;
}

.exchange-rates tbody td {
    padding: 20px 14px;
    white-space: nowrap;
    border-bottom: 1px solid #cccccc;
    font-size: calc(12px + (6 * ((100vw - 320px) / 1600)));
}

.exchange-rates .change{
    text-align: center !important;
}
.exchange-rates .change.plus {
    color: #198754;
    font-weight: 600
}

.exchange-rates .change.minus {
    color: #dc3545;
    font-weight: 600
}

.exchange-rates .change.zero {
    color: #6c757d;
    text-align: center;
}

.exchange-rates .search-item {
    padding: 10px 8px;
    border-radius: 6px;
    cursor: pointer;
}

.exchange-rates .search-item:hover {
    background: #f4f8ff;
}

.exchange-rates .small-muted {
    font-size: 12px;
    color: #6c757d;
}

.exchange-rates ::-webkit-scrollbar-button {
    display: none;
}

.exchange-rates ::-webkit-scrollbar {
    width: 8px;
    height: 12px;
    background-color: #fff;
    scrollbar-width: thin;
}

.exchange-rates ::-webkit-scrollbar-thumb {
    background-color: #d7d5d5b1;
    border-radius: 4px;
}

.exchange-rates .theme-bg-color {
    background-color: #0c5596;
}

.exchange-rates .theme-color {
    color: #0c5596;
}

.exchange-rates .text1 {
    font-size: calc(14px + (6 * ((100vw - 320px) / 1600)));
    font-weight: 400 !important;
}

.exchange-rates .text2 {
    font-size: calc(12px + (6 * ((100vw - 320px) / 1600)));
    font-weight: 500;
}

.exchange-rates .btn-delete {
    padding: 3px 6px 5px 6px;
    border-radius: 50px;
    border: 1px solid #0c5596;
}

.exchange-rates .dropdown-toggle::after {
    display: none !important;
}

.exchange-rates .dropdown-toggle {
    border: none !important;
}

.exchange-rates .btn-group.dropup .dropdown-menu {
    display: block !important;
    width: 320px;
    border-radius: 20px !important;
    position: absolute;
    bottom: 100%;
    left: 0;
    z-index: 1000;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.exchange-rates .btn-group.dropup .dropdown-menu.show {
    visibility: visible;
    transform: translateY(-4px);
    pointer-events: auto;
}

.exchange-rates .country-search-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    z-index: 1000;
    width: 320px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 16px;
    transition: opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}

.exchange-rates .country-search-dropdown.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.exchange-rates .currency-cell {
    max-width: 200px;
    white-space: nowrap;
}

@media (max-width:640px) {
    .exchange-rates .top-row {
        flex-direction: column-reverse;
        align-items: flex-start
    }
}

#ratesTable th:nth-child(5),
#ratesTable td:nth-child(6) {
    display: none !important;
}
