/**
 * ========================================
 * PIX Modal - Estilos CSS
 * ========================================
 * 
 * Estilos para o modal de pagamento PIX
 */

.pix-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: pixModalFadeIn 0.3s ease-out;
}

@keyframes pixModalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.pix-modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: pixModalSlideIn 0.3s ease-out;
}

@keyframes pixModalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pix-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pix-modal-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #1f2937;
    font-weight: 600;
}

.pix-modal-amount {
    margin: 0.5rem 0;
    color: #059669;
    font-size: 1.25rem;
    font-weight: 700;
}

.pix-modal-id {
    margin: 0.5rem 0 0 0;
    color: #9ca3af;
    font-size: 0.75rem;
}

.pix-modal-qrcode {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pix-qrcode-container {
    display: inline-block;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
}

.pix-modal-instruction {
    margin-top: 0.75rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.pix-modal-code {
    margin-bottom: 1.5rem;
}

.pix-modal-code label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.pix-code-input-group {
    display: flex;
}

.pix-code-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px 0 0 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    background: #f9fafb;
    color: #1f2937;
}

.pix-code-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.pix-copy-btn {
    padding: 0.75rem 1.5rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
}

.pix-copy-btn:hover {
    background: #1d4ed8;
}

.pix-copy-btn:active {
    background: #1e40af;
}

.pix-copy-btn.pix-copy-success {
    background: #10b981;
}

.pix-modal-warning {
    padding: 1rem;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.pix-modal-warning p {
    margin: 0.25rem 0;
    color: #92400e;
    font-size: 0.875rem;
}

.pix-modal-warning p:first-child {
    font-weight: 600;
}

.pix-modal-instructions {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.pix-modal-instructions p {
    margin: 0.25rem 0;
}

.pix-modal-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.pix-concluido-btn {
    flex: 1;
    padding: 0.875rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}

.pix-concluido-btn:hover {
    background: #059669;
}

.pix-concluido-btn:active {
    background: #047857;
}

.pix-concluido-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.pix-close-btn {
    flex: 1;
    padding: 0.875rem;
    background: #e5e7eb;
    color: #374151;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.2s;
}

.pix-close-btn:hover {
    background: #d1d5db;
}

.pix-close-btn:active {
    background: #9ca3af;
}

.pix-error {
    color: #dc2626;
    padding: 1rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Responsividade */
@media (max-width: 640px) {
    .pix-modal-content {
        padding: 1.5rem;
    }

    .pix-modal-header h3 {
        font-size: 1.25rem;
    }

    .pix-code-input {
        font-size: 0.7rem;
        padding: 0.625rem;
    }

    .pix-copy-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .pix-modal-buttons {
        flex-direction: column;
    }

    .pix-concluido-btn,
    .pix-close-btn {
        width: 100%;
    }
}

