.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;
}

.container_roteiro.show {
    display: flex;
}

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

.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-roteiro .user-avatar img {
    border: 2px solid #1178cb;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    object-fit: cover;
}

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

.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;
}

.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);
}

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

.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;
}

.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;
}

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

.timeline-progress {
    position: absolute;
    left: 14px;
    top: 0;
    width: 3px;
    background-color: #1178cb;
    z-index: 2;
    transition: height 0.3s ease;
}

.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;
}

.timeline-dot:hover {
    background-color: #1178cb;
}

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

.timeline-dot[data-complete="1"] {
    background-color: #4CAF50;
    color: #fff;
}

.timeline-dot.active {
    background-color: #6c9ce3 !important;
    border: 2px solid #4062a4;
}

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

.timeline-dot.active[data-complete="1"] {
    background-color: #5bc75f !important;
    border: 2px solid #418f46;
}

.timeline-dot.completed {
    background-color: #4CAF50;
}

.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;
}

.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);
}

.action-section .btn-replay {
    display: none !important;
}

.action-section .btn-back {
    display: block !important;
}

#suggestions {
    display: none !important;
}

@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;
    }
}

@media (max-width: 768px) {
    .container_roteiro {
        max-width: 250px;
        left: 10px;
    }

    .container_roteiro[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;
    }
}

@media (max-width: 576px) {
    .container_roteiro {
        max-width: 220px;
        left: 5px;
        top: 50px;
    }

    .container_roteiro[data-side="right"] {
        right: 5px;
        top: 40px;
        left: auto;
    }

    .container_roteiro_header {
        padding: 8px 10px;
    }

    .user-roteiro {
        padding: 3px 6px;
        margin-top: 8px;
    }

    .user-roteiro .user-avatar img {
        width: 24px;
        height: 24px;
    }

    .user-roteiro .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;
    }
}

@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;
    }
}
