/* ============================================
   TOPUP PAGE - MODERN DESIGN
   ============================================ */

/* Animation Keyframes */
@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 92, 65, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(255, 92, 65, 0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container Styling */
#containers-topup {
    animation: fadeInUp 0.5s ease-out;
}

#containers-topup .card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#containers-topup .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Rotated icon for expanded state */
.rotated {
    transform: rotate(180deg) !important;
}

/* Form Controls */
#containers-topup input.form-control {
    transition: all 0.3s ease;
}

#containers-topup input.form-control:focus {
    border-color: #ff5c41 !important;
    box-shadow: 0 0 0 4px rgba(255, 92, 65, 0.15) !important;
    outline: none;
}

#containers-topup input.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Button Hover Effects */
#containers-topup .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 92, 65, 0.5);
}

#containers-topup .btn:active {
    transform: translateY(0);
}

/* Quick Amount Buttons */
#containers-topup .row.g-2 .btn:hover {
    background: rgba(255, 92, 65, 0.4) !important;
    border-color: #ff5c41 !important;
    transform: scale(1.05);
}

/* Table Styling */
#containers-topup .table {
    color: rgba(255, 255, 255, 0.8);
}

#containers-topup .table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#containers-topup .table tbody tr:hover {
    background: rgba(34, 197, 94, 0.1);
}

#containers-topup .table td {
    padding: 15px 20px;
    vertical-align: middle;
    border: none;
}

/* Scrollbar Styling */
#containers-topup ::-webkit-scrollbar {
    width: 8px;
}

#containers-topup ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

#containers-topup ::-webkit-scrollbar-thumb {
    background: rgba(255, 92, 65, 0.3);
    border-radius: 4px;
}

#containers-topup ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 92, 65, 0.5);
}

/* Responsive Design */
@media (max-width: 992px) {
    #containers-topup .col-lg-6 {
        margin-bottom: 20px;
    }
    
    #containers-topup .card-header h4 {
        font-size: 1.1rem !important;
    }
    
    #containers-topup .payment-header-content {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    #containers-topup .row.g-2 .col-3 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 10px;
    }
    
    #containers-topup .card-header {
        padding: 15px !important;
    }
    
    #containers-topup .card-body {
        padding: 15px !important;
    }
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ff5c41;
    animation: spin 1s ease-in-out infinite;
}

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

/* Success/Error States */
.status-success {
    color: #22c55e !important;
    background: rgba(34, 197, 94, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.status-pending {
    color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.status-failed {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Glow Effect */
.glow-effect {
    animation: pulse 2s infinite;
}

/* Card Slide Animation */
#truemoney-body,
#promptpay-body,
#history-body {
    animation: fadeInUp 0.3s ease-out;
}
