/* Estilos para o container do roteiro */
.container_roteiro {
    position: absolute;
    display: none;
    left: 15px;
    top: 60px;
    z-index: 1000;
    width: 90%;
    max-width: 300px;
    max-height: 80vh;
    flex-direction: column;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;

    &.show {
        display: flex;
    }

    &[data-side="right"] {
        right: 15px;
        top: 45px;
        left: auto;
    }
}

/* Estilos para o header do container */
.container_roteiro_header {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.user-roteiro {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    padding: 4px 8px;
    width: 100%;
    background: #d3e3f5;
    border-radius: 10px;

    .user-avatar {
        img {
            border: 2px solid #1178cb;
            width: 30px;
            height: 30px;
            border-radius: 100%;
            object-fit: cover;
        }
    }

    .user-name {
        font-size: 14px;
        color: #1178cb;
        max-width: calc(100% - 40px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Estilos para o botão Home */
.home-button {
    display: flex;
    align-items: center;
    color: #1178cb;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.home-button:hover {
    color: #0d5fa3;
}

.home-button .material-symbols-outlined {
    font-size: 18px;
    margin-right: 5px;
}

/* Estilos para a navegação do roteiro */
.roteiro_navigate {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    overflow-y: auto;
    max-height: calc(80vh - 45px); /* Adjusted to use viewport height */
}

.roteiro_main {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Estilo para o botão de menu */
.btn-router-navigate {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin: 0 10px;
    border-radius: 10px;
    background-color: #5296d3;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1001;
}

.btn-router-navigate:hover {
    background-color: #292c31;
    transform: scale(1.05);
}

.btn-router-navigate .material-symbols-outlined {
    font-size: 24px;
}

/* Container da timeline */
.timeline-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 15px;
    overflow-y: auto;
    max-height: 80vh;
}

/* Linha vertical da timeline */
.timeline-line {
    position: absolute;
    left: 14px;
    top: 0;
    width: 3px;
    height: 100%;
    background-color: #e0e0e0;
    z-index: 1;
}

/* Linha de progresso (preenchida) */
.timeline-progress {
    position: absolute;
    left: 14px;
    top: 0;
    width: 3px;
    background-color: #1178cb;
    z-index: 2;
    transition: height 0.3s ease;
}

/* Estilo para os pontos da timeline */
.timeline-dot {
    width: 100%;
    min-height: 28px;
    border-radius: 10px;
    background-color: #e0e0e0;
    border: 2px solid #fff;
    position: relative;
    z-index: 3;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: 0;
    padding-left: 0;

    &:hover {
        background-color: #1178cb;

        .timeline-item-title, .dot-number {
            color: #fff;
        }
    }

    &[data-complete="1"] {
        background-color: #4CAF50;
    }

    /* Estilo para os pontos ativos */
    &.active {
        background-color: #6c9ce3 !important;
        border: 2px solid #4062a4;

        .timeline-item-title, .dot-number {
            color: #fff;
        }
    }

    /* Estilo para os pontos completos */
    &.completed {
        background-color: #4CAF50;
    }
}

/* Estilo para o número dentro do ponto */
.dot-number {
    font-size: 14px;
    color: #333;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
}

/* Estilo para o título do item da timeline */
.timeline-item-title {
    margin-left: 12px;
    font-size: 12px;
    padding: 4px;
    color: #333;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 40px);
}

/* Responsividade para telas médias (tablets) */
@media (max-width: 992px) {
    .container_roteiro {
        max-width: 280px;
    }
    
    .timeline-container {
        max-width: 100%;
    }
    
    .timeline-dot {
        min-height: 26px;
    }
    
    .dot-number {
        font-size: 13px;
        width: 26px;
        height: 26px;
        min-width: 26px;
    }
    
    .timeline-item-title {
        font-size: 11px;
    }
    
    .btn-router-navigate {
        width: 38px;
        height: 38px;
    }
    
    .btn-router-navigate .material-symbols-outlined {
        font-size: 22px;
    }
}

/* Responsividade para telas menores (tablets pequenos e celulares grandes) */
@media (max-width: 768px) {
    .container_roteiro {
        max-width: 250px;
        left: 10px;
        
        &[data-side="right"] {
            right: 10px;
            left: auto;
        }
    }
    
    .roteiro_navigate {
        padding: 10px;
    }
    
    .timeline-container {
        max-width: 100%;
        gap: 12px;
    }
    
    .timeline-dot {
        min-height: 24px;
    }
    
    .dot-number {
        font-size: 12px;
        width: 24px;
        height: 24px;
        min-width: 24px;
    }
    
    .timeline-item-title {
        font-size: 11px;
        margin-left: 8px;
    }
    
    .btn-router-navigate {
        width: 36px;
        height: 36px;
    }
    
    .btn-router-navigate .material-symbols-outlined {
        font-size: 20px;
    }
}

/* Responsividade para celulares */
@media (max-width: 576px) {
    .container_roteiro {
        max-width: 220px;
        left: 5px;
        top: 50px;
        
        &[data-side="right"] {
            right: 5px;
            top: 40px;
            left: auto;
        }
    }
    
    .container_roteiro_header {
        padding: 8px 10px;
    }
    
    .user-roteiro {
        padding: 3px 6px;
        margin-top: 8px;
        
        .user-avatar {
            img {
                width: 24px;
                height: 24px;
            }
        }
        
        .user-name {
            font-size: 12px;
        }
    }
    
    .home-button {
        font-size: 12px;
    }
    
    .home-button .material-symbols-outlined {
        font-size: 16px;
    }
    
    .roteiro_navigate {
        padding: 8px;
    }
    
    .timeline-container {
        gap: 10px;
    }
    
    .timeline-line, .timeline-progress {
        left: 12px;
        width: 2px;
    }
    
    .timeline-dot {
        min-height: 22px;
    }
    
    .dot-number {
        font-size: 11px;
        width: 22px;
        height: 22px;
        min-width: 22px;
    }
    
    .timeline-item-title {
        font-size: 10px;
        margin-left: 6px;
        padding: 2px;
    }
    
    .btn-router-navigate {
        width: 32px;
        height: 32px;
        margin: 0 5px;
    }
    
    .btn-router-navigate .material-symbols-outlined {
        font-size: 18px;
    }
}

/* Responsividade para celulares muito pequenos */
@media (max-width: 375px) {
    .container_roteiro {
        max-width: 200px;
    }
    
    .timeline-dot {
        min-height: 20px;
    }
    
    .dot-number {
        font-size: 10px;
        width: 20px;
        height: 20px;
        min-width: 20px;
    }
    
    .timeline-item-title {
        font-size: 9px;
    }
    
    .btn-router-navigate {
        width: 30px;
        height: 30px;
    }
    
    .btn-router-navigate .material-symbols-outlined {
        font-size: 16px;
    }
}