/* ========================================
   TRANSACTIONS - ENHANCED WITH PAYMENT ICONS
   ======================================== */

.transactions-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.transaction-section {
    background: linear-gradient(135deg, rgba(22, 22, 22, 0.8) 0%, rgba(18, 18, 18, 0.7) 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid rgba(255, 215, 0, 0.15);
}

.transaction-section h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.15);
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.5) 0%, rgba(30, 30, 30, 0.4) 100%);
    border-radius: 10px;
    border: 1.5px solid rgba(255, 215, 0, 0.12);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.transaction-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.08), transparent);
    transition: left 0.5s ease;
}

.transaction-item:hover::before {
    left: 100%;
}

.transaction-item:hover {
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateX(5px);
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.6) 0%, rgba(35, 35, 35, 0.5) 100%);
}

.transaction-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.transaction-user {
    font-weight: 600;
    color: #FFFFFF;
    font-size: 1rem;
    min-width: 100px;
}

.transaction-payment {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.payment-method-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.3));
    transition: all 0.3s ease;
}

.transaction-item:hover .payment-method-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.5));
}

.transaction-amount {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: right;
}

/* Responsive */
@media (max-width: 992px) {
    .transactions-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .transaction-section {
        padding: 1.5rem;
    }
    
    .transaction-item {
        padding: 0.8rem 1rem;
    }
    
    .transaction-left {
        gap: 1rem;
    }
    
    .transaction-user {
        min-width: 80px;
        font-size: 0.9rem;
    }
    
    .payment-method-icon {
        width: 28px;
        height: 28px;
    }
    
    .transaction-amount {
        font-size: 1.1rem;
    }
}





/* Transaction Heading Icons */
.heading-icon {
    width: 32px;
    height: 32px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.transaction-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 12px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Deposit Icon - Green Theme */
.deposit-icon {
    color: #10b981;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.6));
}

/* Withdrawal Icon - Orange Theme */
.withdrawal-icon {
    color: #f59e0b;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.6));
}

/* Background Glow Effect */
.transaction-section h3::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transform: translateY(-50%);
    transition: all 0.6s ease;
}

.transaction-section:nth-child(2) h3::before {
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.1), transparent);
}

.transaction-section:hover h3::before {
    width: 100%;
    left: 100%;
}

/* Hover Effects */
.transaction-section:hover .heading-icon {
    transform: scale(1.2) rotate(360deg);
}

.transaction-section:hover .deposit-icon {
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 1));
    color: #34d399;
}

.transaction-section:hover .withdrawal-icon {
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, 1));
    color: #fbbf24;
}

.transaction-section:hover h3 {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(245, 158, 11, 0.05));
    transform: translateX(5px);
}

/* Pulse Animation */
@keyframes depositPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

@keyframes withdrawalPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

.deposit-icon circle {
    animation: depositPulse 2s ease-in-out infinite;
}

.withdrawal-icon circle {
    animation: withdrawalPulse 2s ease-in-out infinite;
}

/* Arrow Animation */
@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.transaction-section:hover .deposit-icon path:nth-child(2) {
    animation: arrowBounce 0.6s ease-in-out infinite;
}

.transaction-section:hover .withdrawal-icon path:nth-child(2) {
    animation: arrowBounce 0.6s ease-in-out infinite reverse;
}

/* Entrance Animation */
@keyframes iconEntrance {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    60% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.heading-icon {
    animation: iconEntrance 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Responsive */
@media (max-width: 768px) {
    .heading-icon {
        width: 26px;
        height: 26px;
    }
    
    .transaction-section h3 {
        padding: 12px 15px;
        font-size: 1.1rem;
    }
}
