/* Timeline Customizada para Histórico de Propostas */
.timeline-container {
    position: relative;
    padding: 20px 0;
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    padding-left: 0;
}

/* Conector vertical entre itens */
.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50px;
    width: 2px;
    height: calc(100% - 50px + 30px);
    background: linear-gradient(to bottom, #0dcaf0, #d3d3d3);
}

/* Círculo do timeline */
.timeline-marker {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: white;
    border: 3px solid #0dcaf0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
}

/* Diferentes cores de marcador por tipo */
.timeline-marker.status-novo {
    border-color: #ffc107;
    color: #ffc107;
}

.timeline-marker.status-visualizado {
    border-color: #0dcaf0;
    color: #0dcaf0;
}

.timeline-marker.status-contato_feito {
    border-color: #0d6efd;
    color: #0d6efd;
}

.timeline-marker.status-negociado {
    border-color: #198754;
    color: #198754;
}

.timeline-marker.status-fechado {
    border-color: #28a745;
    color: #28a745;
    background: #28a745;
    color: white;
}

.timeline-marker.status-recusado {
    border-color: #dc3545;
    color: #dc3545;
}

.timeline-marker.created {
    border-color: #6c757d;
    color: #6c757d;
}

/* Conteúdo do timeline */
.timeline-content {
    flex: 1;
    background: white;
    border-left: 3px solid #0dcaf0;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.timeline-content.status-novo {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.timeline-content.status-visualizado {
    border-left-color: #0dcaf0;
    background: #f0f8ff;
}

.timeline-content.status-contato_feito {
    border-left-color: #0d6efd;
    background: #f0f6ff;
}

.timeline-content.status-negociado {
    border-left-color: #198754;
    background: #f0fdf4;
}

.timeline-content.status-fechado {
    border-left-color: #28a745;
    background: #f0fdf4;
}

.timeline-content.status-recusado {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.timeline-content.created {
    border-left-color: #6c757d;
    background: #f8f9fa;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.timeline-title {
    font-weight: 600;
    color: #333;
    margin: 0;
    font-size: 14px;
}

.timeline-date {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    margin-left: 10px;
}

.timeline-user {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.timeline-user strong {
    color: #333;
}

.timeline-observations {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.timeline-observations em {
    color: #999;
    font-style: italic;
}

/* Badge para tipo de movimento */
.movement-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-top: 8px;
}

.movement-badge.proposal {
    background: #e7f3ff;
    color: #0d6efd;
}

.movement-badge.status-update {
    background: #f8f9fa;
    color: #6c757d;
}

/* Responsivo */
@media (max-width: 576px) {
    .timeline-item {
        gap: 15px;
    }

    .timeline-marker {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .timeline-content {
        padding: 12px;
    }

    .timeline-header {
        flex-direction: column;
    }

    .timeline-date {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }

    .timeline-title {
        font-size: 13px;
    }

    .timeline-item:not(:last-child)::before {
        left: 12px;
    }
}

/* Container vazio */
.timeline-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.timeline-empty i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.timeline-empty p {
    margin: 0;
    font-size: 14px;
}
