/* ========================================
   TRANSACTIONS STYLES
   Стили списка транзакций и фильтров
   ======================================== */

/* === TRANSACTIONS LIST === */

.list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-direction: column;
    gap: 16px;
}

.list li {
    display: flex;
    background-color: #182027;
    border-radius: 20px;
    padding: 20px 24px;
    justify-content: space-between;
    color: white;
}

.list li .left,
.list li .right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.list li .right {
    gap: 22px;
}

.list li .left .icon {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(41, 96, 135, 0.6) url("../images/exchange.svg") center / 24px no-repeat;
}

.list li .left .info .title {
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
}

.list li .left .info .date {
    font-weight: 700;
    font-size: 12px;
    line-height: 100%;
    color: var(--grey-text);
}

.list li .right .sum {
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    text-align: right;
}

/* === COMPACT LIST (for dashboard) === */

.list-compact li { padding: 16px 20px; }
.list-compact .icon { width: 36px; height: 36px; }
.list-compact .title { font-size: 14px; }
.list-compact .date { font-size: 11px; }
.list-compact .sum { font-size: 14px; }

/* === FILTERS === */

.transactions-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

/* Filter button base */
.filter-btn {
    position: relative;
    width: 260px;
    height: 60px;
    border-radius: 20px;
    background: #1A232B;
    border: 1px solid #2B2F3B;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-btn:hover { border-color: #3B4F5B; }

.filter-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: white;
}

.filter-chevron {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.filter-btn.active .filter-chevron {
    transform: rotate(180deg);
}

/* Date filter input */
.filter-input-wrap {
    width: 260px;
    height: 60px;
    border-radius: 20px;
    background: #1A232B;
    border: 1px solid #2B2F3B;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    transition: border-color 0.2s ease;
}

.filter-input-wrap:hover,
.filter-input-wrap:focus-within {
    border-color: #3B4F5B;
}

.filter-date-text {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: white;
}

.filter-date-text::placeholder {
    color: var(--muted2, #A8B2BD);
}

/* === CURRENCY DROPDOWN === */

.currency-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 280px;
    max-height: 272px;
    border-radius: 20px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)),
                linear-gradient(0deg, rgba(24, 32, 39, 0.9), rgba(24, 32, 39, 0.9));
    border: 1px solid rgba(41, 96, 135, 0.4);
    padding: 24px;
    display: none;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.filter-btn.active .currency-dropdown {
    display: flex;
}

.currency-dropdown-scroll {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 200px;
}

/* Scrollbar */
.currency-dropdown-scroll::-webkit-scrollbar { width: 6px; }
.currency-dropdown-scroll::-webkit-scrollbar-track {
    background: #303B45;
    border-radius: 100px;
}
.currency-dropdown-scroll::-webkit-scrollbar-thumb {
    background: #5A6A75;
    border-radius: 100px;
}

.currency-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.currency-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.currency-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.currency-option span {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: white;
}

.currency-option.selected span {
    color: var(--blue);
}


/* === PAGINATION === */

.transactions-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(41, 96, 135, 0.4);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s ease;
}

.pagination-btn:hover {
    background: rgba(41, 96, 135, 0.6);
    color: white;
}

.pagination-info {
    font-weight: 400;
    font-size: 14px;
    color: var(--grey-text);
}

.txn-count {
    font-weight: 400;
    font-size: 14px;
    color: var(--grey-text);
}

/* === NO TRANSACTIONS STATE === */

.no-transactions {
    opacity: 0.6;
}

.no-transactions .title {
    color: var(--grey-text);
}
