/* Enhanced Transaction Filters and Search */

.filter-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    margin-left: auto;
    min-width: 250px;
}

.filter-search i {
    color: #9ca3af;
    margin-right: 8px;
    font-size: 14px;
}

.filter-search input {
    background: none;
    border: none;
    color: #d1d5db;
    outline: none;
    width: 100%;
    font-size: 14px;
}

.filter-search input::placeholder {
    color: #6b7280;
}

.filter-search:focus-within {
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.15);
}

/* Enhanced filter buttons */
.filter-chip {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #d1d5db;
    transform: translateY(-1px);
}

.filter-chip.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: #6366f1;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.filter-select:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.08);
}

.filter-select option {
    background: #1f2937;
    color: #d1d5db;
    padding: 8px;
}

/* Enhanced transaction items */
.transaction-item-modern {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.transaction-item-modern:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.item-icon.icon-reward {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.item-icon.icon-transfer {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.item-icon.icon-withdraw {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.item-icon.icon-admin {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.item-icon.icon-home {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.item-icon.icon-shop {
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
}

.item-icon.icon-pvp {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-weight: 600;
    color: #f3f4f6;
    font-size: 15px;
    margin-bottom: 4px;
}

.item-desc {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.4;
}

.item-meta {
    text-align: right;
    flex-shrink: 0;
}

.item-amount {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.item-amount.amount-positive {
    color: #10b981;
}

.item-amount.amount-negative {
    color: #ef4444;
}

.item-date {
    font-size: 12px;
    color: #6b7280;
}

/* Enhanced empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

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

.btn-pagination {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-pagination:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-search {
        min-width: 100%;
        margin-left: 0;
        margin-top: 12px;
    }
    
    .filters-modern {
        flex-wrap: wrap;
    }
    
    .transaction-item-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .item-meta {
        align-self: flex-end;
        text-align: right;
    }
    
    .pagination-modern {
        flex-wrap: wrap;
    }
}

/* Loading animations */
.loading-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #9ca3af;
    gap: 12px;
}

.loading-modern i {
    font-size: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
