/* Container chính xếp hàng ngang */
.roadmap-flex-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    padding: 20px 10px;
    box-sizing: border-box;
}

/* Khối từng trạm */
.roadmap-step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    flex-shrink: 0;
    z-index: 2;
    text-align: center;
}

/* Icon Trạm */
.step-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Hiệu ứng viền xoay cho Trạm Hiện Tại */
.step-icon-box.is-current::after {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border: 2px dashed var(--node-color, #10b981);
    border-radius: 16px;
    animation: rotateDashed 12s linear infinite;
}

@keyframes rotateDashed {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Thanh nối linh hoạt nằm giữa 2 Icon (Nối thẳng mép icon) */
.roadmap-connector {
    flex: 1; /* Tự động co giãn lấp đầy khoảng trống giữa 2 icon */
    height: 48px; /* Bằng đúng chiều cao icon để căn giữa theo chiều dọc */
    display: flex;
    align-items: center;
    margin: 0 -4px; /* Đẩy nhẹ chạm sát lề icon */
    z-index: 1;
}

.connector-bg {
    width: 100%;
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.connector-fill {
    height: 100%;
    background-color: #10b981; /* Màu xanh tiến trình */
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
}

/* Badge trạng thái */
.badge-status {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 6px;
}
.badge-passed { background-color: #d1fae5; color: #065f46; }
.badge-current { background-color: #111827; color: #ffffff; }
.badge-locked { background-color: #f3f4f6; color: #6b7280; }