/* Custom styles from index.html */

body {
    font-family: 'Inter', sans-serif;
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Button Animations --- */

/* Option 1: Pulse Scale */
@keyframes pulse-scale {
    0% { transform: scale(1); box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.2); }
    50% { transform: scale(1.05); box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.3); }
    100% { transform: scale(1); box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.2); }
}

.btn-anim-pulse {
    animation: pulse-scale 2s infinite ease-in-out;
}

/* Option 2: Running Border */
.btn-anim-border {
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none !important; /* Override default borders */
}

/* The spinning gradient background */
.btn-anim-border::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 90deg,
        #3b82f6 180deg, /* Blue tail */
        #60a5fa 270deg, /* Light blue head */
        transparent 360deg
    );
    animation: border-spin 4s linear infinite;
    z-index: -2;
}

/* The inner background to cover the center and create the "border" effect */
.btn-anim-border::after {
    content: '';
    position: absolute;
    inset: 3px; /* Thickness of the border */
    background: #0f172a; /* Matches slate-900 */
    border-radius: inherit; /* Inherit rounded-2xl */
    z-index: -1;
}

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

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

/* Effect for active Yape tab (Purple/Pink usually for Yape, but using Argentina's styles as base) */
/* Argentina used Blue for Mercado Pago. Yape is purple. Plin is blue/cyan. */
/* I will stick to the existing colors in CSS but rename classes if needed, or just reuse mp styles for Yape */
.tab-active-yape {
    background-color: #742284; /* Yape purple */
    color: white;
    box-shadow: 0 4px 12px -2px rgba(116, 34, 132, 0.4);
    border: 2px solid #5b1a69;
}

/* Effect for active Bank tab */
.tab-active-bank {
    background-color: #1e293b;
    /* Slate-800 */
    color: white;
    box-shadow: 0 4px 12px -2px rgba(30, 41, 59, 0.4);
    border: 2px solid #0f172a;
}

.tab-inactive {
    color: #64748b;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
}

.tab-inactive:hover {
    background-color: #f8fafc;
    color: #334155;
    border-color: #cbd5e1;
}

/* --- Added Styles for Blur Effect (from arg-old) --- */

.transfer-info-container {
    transition: all 0.4s ease;
}

.transfer-info-container.blurred .transfer-content {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

.transfer-info-container.show .transfer-content {
    filter: none;
    pointer-events: auto;
    user-select: auto;
}

/* Blur overlay for bank details */
.bank-details-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6); /* More transparent white background */
    backdrop-filter: blur(3px); /* Slightly stronger blur */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    z-index: 20;
    border-radius: 1.5rem; /* Matches rounded-3xl of parent */
}

.bank-details-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.overlay-message {
    text-align: center;
    padding: 16px 24px;
    /* Semi-transparent blue gradient */
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
    backdrop-filter: blur(8px); /* Glass effect inside the bubble */
    color: white;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
    box-shadow: 0 10px 30px -5px rgba(37, 99, 235, 0.4);
    font-weight: 500;
    font-size: 13px; /* Smaller font size */
    max-width: 85%;
    line-height: 1.5;
    letter-spacing: 0.01em;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* QR Modal Styles (Adapted) */
.qr-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
}

.qr-modal-content {
    position: relative;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    background-color: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.qr-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.qr-close:hover {
    color: #333;
}

.qr-modal-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}