/* PIX Collaboration Styles */
.pix-collaboration {
    display: block;
    position: relative;
    float: left;
    width: 100%;
    margin-bottom: 45px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid #28a745;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.1);
    transition: all 0.3s ease;
}

.pix-collaboration:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.15);
}

.title-collaboration {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.collaboration-description {
    text-align: center;
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.pix-header-small {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.pix-text {
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
    margin: 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pix-input-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    border: 2px solid rgba(40, 167, 69, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.input-group-pix {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border: 2px solid #28a745;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}

.input-group-pix:focus-within {
    border-color: #20c997;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.currency-symbol {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 15px 18px;
    font-weight: 700;
    font-size: 16px;
    border-right: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-control-pix {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 18px;
    font-size: 18px;
    font-weight: 600;
    background: transparent;
    color: #495057;
}

.form-control-pix::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.pix-hint {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 20px;
    text-align: center;
    font-style: italic;
}

.btn-generate-pix {
    width: 100%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-generate-pix:hover {
    background: linear-gradient(135deg, #218838 0%, #1fa387 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-generate-pix:active {
    transform: translateY(0);
}

.btn-generate-pix:disabled {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pix-result-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
    border: 2px solid rgba(40, 167, 69, 0.3);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.1);
    backdrop-filter: blur(10px);
}

.pix-qr-section {
    text-align: center;
}

.pix-qr-code {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.pix-qr-code canvas {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.pix-code-section {
    margin-bottom: 25px;
}

.pix-code-label {
    font-weight: 700;
    margin-bottom: 12px;
    color: #495057;
    font-size: 16px;
}

.pix-code-container {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.pix-code-text {
    flex: 1;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    resize: none;
    height: 90px;
    background: #f8f9fa;
    transition: border-color 0.3s ease;
    line-height: 1.4;
}

.pix-code-text:focus {
    border-color: #28a745;
    outline: none;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.btn-copy-pix {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.btn-copy-pix:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.pix-info-section {
    margin-bottom: 25px;
    background: rgba(40, 167, 69, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.pix-info {
    margin: 8px 0;
    font-size: 15px;
    color: #495057;
    font-weight: 500;
}

.pix-info span {
    font-weight: 700;
    color: #28a745;
}

.btn-new-pix {
    width: 100%;
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-new-pix:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pix-collaboration {
        padding: 20px 15px;
        margin-bottom: 30px;
    }
    
    .title-collaboration {
        font-size: 18px;
    }
    
    .pix-text {
        font-size: 16px;
    }
    
    .pix-input-section {
        padding: 20px 15px;
    }
    
    .currency-symbol {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .form-control-pix {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .btn-generate-pix {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .pix-code-container {
        flex-direction: column;
    }
    
    .btn-copy-pix {
        width: 100%;
        margin-top: 10px;
    }
    
    .pix-qr-code {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .pix-collaboration {
        padding: 15px 10px;
    }
    
    .pix-header-small {
        padding: 15px 10px;
    }
    
    .pix-text {
        font-size: 18px;
    }
    
    .pix-input-section {
        padding: 15px 10px;
    }
    
    .pix-result-container {
        padding: 15px 10px;
    }
}

/* Loading Animation */
.pix-loading {
    position: relative;
    overflow: hidden;
}

.pix-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: pixSpin 1s linear infinite;
}

@keyframes pixSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Animation */
.pix-success {
    animation: pixSuccess 0.5s ease-out;
}

@keyframes pixSuccess {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .pix-collaboration {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        border-color: #48bb78;
        color: #e2e8f0;
    }
    
    .collaboration-description {
        color: #a0aec0;
    }
    
    .pix-header-small {
        background: rgba(45, 55, 72, 0.8);
    }
    
    .pix-input-section {
        background: rgba(45, 55, 72, 0.95);
        border-color: rgba(72, 187, 120, 0.3);
    }
    
    .form-control-pix {
        color: #e2e8f0;
    }
    
    .pix-result-container {
        background: rgba(45, 55, 72, 0.95);
        border-color: rgba(72, 187, 120, 0.3);
    }
    
    .pix-code-text {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .pix-info-section {
        background: rgba(72, 187, 120, 0.1);
    }
    
    .pix-qr-code {
        background: #2d3748;
        border-color: #4a5568;
    }
} 