/* VR Planos - Consulta de Proposta CSS */

/* Seção de consulta */
.proposal-search {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.search-form-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 82, 220, 0.1);
}

.search-header .fa-search {
    color: #0052dc;
}

/* Seção de resultado */
.proposal-result {
    background: #f8f9fa;
}

.result-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.result-header {
    border-bottom: 2px solid #0052dc;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.result-header h3 {
    color: #0052dc;
    margin-bottom: 1rem;
}

.proposal-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.info-item {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 4px solid #0052dc;
}

/* Timeline de status */
.status-timeline {
    margin-bottom: 3rem;
}

.status-timeline h4 {
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-icon {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 1;
}

.timeline-item.completed .timeline-icon {
    background: #28a745;
}

.timeline-item.rejected .timeline-icon {
    background: #dc3545;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.timeline-item.active .timeline-icon {
    background: #0052dc;
    animation: pulse 2s infinite;
}

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

.timeline-content h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #666;
    margin-bottom: 0.25rem;
}

.timeline-content small {
    color: #999;
}

/* Detalhes do plano */
.plan-details h4,
.available-actions h4,
.communications-history h4 {
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid #0052dc;
    padding-bottom: 0.5rem;
}

.detail-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.detail-card:hover {
    box-shadow: 0 5px 15px rgba(0, 82, 220, 0.1);
    border-color: #0052dc;
}

.detail-card h5 {
    color: #0052dc;
    font-weight: 600;
    margin-bottom: 1rem;
}

.plan-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.operadora-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 5px;
}

.price-value {
    font-size: 2rem;
    font-weight: bold;
    color: #28a745;
}

/* Tabela de beneficiários */
.beneficiarios-info .table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.beneficiarios-info .table thead th {
    background: #0052dc;
    color: white;
    border: none;
    font-weight: 600;
}

.beneficiarios-info .table tbody tr:hover {
    background: #f8f9fa;
}

/* Ações disponíveis */
.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.action-buttons .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-buttons .btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Histórico de comunicações */
.communication-list {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
}

.communication-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #0052dc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.communication-item:last-child {
    margin-bottom: 0;
}

.comm-date {
    font-size: 0.875rem;
    color: #666;
    font-weight: 600;
}

.comm-type {
    display: inline-block;
    background: #0052dc;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.comm-message {
    color: #333;
    margin-bottom: 0;
}

/* Modal personalizado */
.upload-areas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upload-item {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.upload-item:hover {
    border-color: #0052dc;
    background: rgba(0, 82, 220, 0.05);
}

.upload-item label {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .proposal-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        min-width: 100%;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .timeline-icon {
        left: -1.75rem;
        width: 2rem;
        height: 2rem;
    }
}

/* Animações suaves */
.result-container {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estados dos botões */
.btn-primary {
    background: #0052dc;
    border-color: #0052dc;
}

.btn-primary:hover {
    background: #003f9a;
    border-color: #003f9a;
}

.btn-success {
    background: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background: #1e7e34;
    border-color: #1e7e34;
}

.btn-danger {
    background: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

.btn-warning {
    background: #feae01;
    border-color: #feae01;
    color: #333;
}

.btn-warning:hover {
    background: #e09700;
    border-color: #e09700;
    color: #333;
}

.btn-info {
    background: #17a2b8;
    border-color: #17a2b8;
}

.btn-info:hover {
    background: #138496;
    border-color: #138496;
}

/* Documentos reprovados */
.rejection-details {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.rejection-details ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.rejection-details li {
    color: #856404;
    margin-bottom: 0.5rem;
}

.rejected-doc {
    border-color: #dc3545 !important;
    background: #f8d7da !important;
}

.rejected-doc label {
    color: #721c24 !important;
}
