/* static/css/transactions.css */

.filter-container {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none; 
}
.filter-container::-webkit-scrollbar { display: none; }

.filter-btn {
    padding: 8px 16px;
    border-radius: 99px;
    background-color: white;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #15803d;
    background-color: #f0fdf4;
}

.filter-btn.active {
    background-color: #15803d;
    color: white;
    border-color: #15803d;
    box-shadow: 0 4px 6px -1px rgba(21, 128, 61, 0.3);
}

.transaction-card {
    background-color: white;
    border-radius: 1rem;
    padding: 1rem;
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #f3f4f6;
    margin-bottom: 0.75rem;
    transition: transform 0.1s, background-color 0.2s;
    cursor: pointer; /* Indica clicável */
}

.transaction-card:hover {
    background-color: #f9fafb; /* Efeito hover */
}

.transaction-card:active {
    transform: scale(0.98);
}

.t-icon-box {
    width: 3rem; 
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.t-icon-deposit { background-color: #dcfce7; color: #15803d; }
.t-icon-bet { background-color: #fee2e2; color: #b91c1c; }
.t-icon-win { background-color: #fef9c3; color: #ca8a04; }

.t-info {
    flex: 1;
    min-width: 0;
    margin-right: 0.5rem;
}

.t-title {
    font-weight: 700;
    color: #1f2937;
    font-size: 0.95rem;
    line-height: 1.2;
    margin-bottom: 2px;
}

.t-date {
    font-size: 0.75rem;
    color: #9ca3af;
    display: block;
}

.t-amount {
    font-weight: 800;
    font-size: 1rem;
    white-space: nowrap;
    text-align: right;
}

.amount-positive { color: #15803d; }
.amount-negative { color: #ef4444; }

.empty-history {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}