/* Estilos para a página de Transferência para Parceiro */

.transfer-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.transfer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.transfer-card .card-title {
    color: #495057;
    font-weight: 600;
}

.transfer-card .card-body {
    padding: 1.25rem;
}

.transfer-card .card-footer {
    padding: 0.75rem 1.25rem;
}

/* Scanner específico para transferência */
.video-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    min-height: 300px;
}

.video-container.scanning {
    border: 3px solid #28a745;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.3);
}

.scanning-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.scanning-frame {
    position: absolute;
    top: 20%;
    left: 20%;
    right: 20%;
    bottom: 20%;
    border: 2px solid #28a745;
    border-radius: 8px;
    background: rgba(40, 167, 69, 0.1);
}

.scan-line {
    position: absolute;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #28a745, transparent);
    top: 50%;
    left: 20%;
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% {
        top: 20%;
    }
    50% {
        top: 50%;
    }
    100% {
        top: 80%;
    }
}

/* Badge customizado para contagem de itens */
.badge.bg-secondary {
    background-color: #6c757d !important;
}

/* Estilo para cards de informação da transferência selecionada */
.card-header h5 {
    margin-bottom: 0;
    font-weight: 600;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .transfer-card {
        margin-bottom: 1rem;
    }
    
    .video-container {
        min-height: 250px;
    }
    
    .scanning-frame {
        top: 15%;
        left: 15%;
        right: 15%;
        bottom: 15%;
    }
    
    .scan-line {
        left: 15%;
        width: 70%;
    }
}

/* Toast personalizado */
.toast {
    min-width: 300px;
}

/* Modal customizado */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
}

/* Animação de loading */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Estilo para estado vazio */
.display-1 {
    font-size: 4rem;
    opacity: 0.3;
}

/* Botões personalizados */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
}

.btn-outline-secondary {
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    transform: translateY(-1px);
}

/* Destaque para informações importantes */
.text-primary {
    font-weight: 600;
}

/* Espaçamento consistente */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}