/* ESTILOS DO MODAL PIX */
.pix-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.pix-modal {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: pixModalSlideIn 0.3s ease-out;
}

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

.pix-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 1px solid #eee;
}

.pix-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.pix-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.pix-modal-close:hover {
    background-color: #f5f5f5;
    color: #666;
}

.pix-modal-body {
    padding: 30px;
}

.pix-qr-container {
    text-align: center;
    margin-bottom: 30px;
}

#pixQRCode {
    display: inline-block;
    padding: 20px;
    background: white;
    border: 2px solid #eee;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pix-instructions {
    color: #666;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

.pix-copy-container {
    margin-bottom: 30px;
}

.pix-copy-container p {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.pix-copy-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pix-copy-input input {
    flex: 1;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 19.6px;
    font-family: 'Courier New', monospace;
    background-color: #f9f9f9;
    color: #333;
}

.pix-copy-input input:focus {
    outline: none;
    border-color: #F58170;
    background-color: white;
}

.pix-copy-input button {
    padding: 15px 25px;
    background: linear-gradient(45deg, #F58170, #F9AF77);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.pix-copy-input button:hover {
    background: linear-gradient(45deg, #FFA08A, #FFC09A);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 129, 112, 0.3);
}

.pix-status {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.pix-status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.pix-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ffc107;
    animation: pulse 2s infinite;
}

.pix-status-dot.success {
    background-color: #28a745;
    animation: none;
}

.pix-status-dot.expired {
    background-color: #dc3545;
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .pix-modal {
        width: 95%;
        margin: 20px;
    }

    .pix-modal-header {
        padding: 20px 20px 15px;
    }

    .pix-modal-header h3 {
        font-size: 20px;
    }

    .pix-modal-body {
        padding: 20px;
    }

    .pix-copy-input {
        flex-direction: column;
    }

    .pix-copy-input button {
        width: 100%;
    }

    #pixQRCode {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .pix-modal {
        width: 98%;
        margin: 10px;
    }

    .pix-modal-header {
        padding: 15px 15px 10px;
    }

    .pix-modal-body {
        padding: 15px;
    }

    .pix-instructions {
        font-size: 14px;
    }
}
