//*****************************************************************************
//*****************************************************************************
// Job Flights Styles
//*****************************************************************************
//*****************************************************************************
.job-flights {
    .job-flight {

        .progress-container {
            border-radius: 5px;
            position: relative;
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            flex-direction: column;

        }

        &.is-job-flight {
            .progress-container {
                background: #f7f7f7;
                border: 1px #FEEFCA solid;
                border-radius: 5px;
                padding: 5px;
            }
        }

        .progress-wrapper {
            width: 100%;
            position: relative;
            padding: 0 0px 0px 0px;
            text-align: center;
            height: 35px;
            overflow: hidden;
            &.done,
            &.completed {
                .progress-bar {
                    border-color: #9E9E9E;
                }
                .plane {
                    left: calc(100% - 16px) !important;
                    color: #9E9E9E;
                }
            }
            &.in-progress {
                .progress-bar {
                    border-color: #21BA45;
                }
                .plane-wrapper {
                    left: -15px;
                }
                .plane {
                    color: #21BA45;
                }
            }
            &.scheduled {
                .progress-bar {
                    border-color: #31CCEC;
                }
                .plane-wrapper {
                    left: 0;
                }
                .plane {
                    color: #31CCEC;
                }
            }
            &.cancelled {
                .progress-bar {
                    background: linear-gradient(90deg, #C10015 0%, #FFCDD2 100%);
                    border-color: #C10015;
                }
                .plane-wrapper {
                    left: -31px;
                }
                .plane {
                    color: #C10015;
                }
            }
            &.diverted {
                .progress-bar {
                    background: linear-gradient(90deg, #F2C037 0%, #FFE0B2 100%);
                    border-color: #F2C037;
                }
                .plane {
                    color: #F2C037;
                }
            }
            &.no-flight {
                opacity: 0.5;
                .progress-bar {
                    border-color: #9E9E9E;
                    background: transparent;
                }
                .plane {
                    color: #9E9E9E;
                }
            }
        }
        .progress-bar {
            height: 2px;
            width: 100%;
            border-top: 3px dashed;
        }
        .plane-wrapper {
            position: relative;
            z-index: 1;
            width: 100%;
            left: -15px;
        }
        .plane {
            background: #fff;
            transform: rotate(90deg);
            position: absolute;
            top: 6px;
            transition: left 0.5s ease;
        }
        .timeline-bar {
            position: relative;
            top: 13px;
        }
        .points {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            .time-container {
                text-align: center;
                text-wrap: nowrap;
            }
        }
        .status-container {
            margin-top: -10px;
            .in-progress {
                color: #21BA45;
            }
            .scheduled {
                color: #31CCEC;
            }
            .done {
                color: #9E9E9E;
            }
            .cancelled {
                color: #C10015;
            }
            .diverted {
                color: #F2C037;
            }
        }
        .stops-badge {
            padding: 2px 5px;
            cursor: pointer;
            animation: pulse 2s infinite;
            transition: transform 0.2s;

            &:hover {
                animation: none;
                transform: scale(1.1);
            }
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4);
            }
            70% {
                box-shadow: 0 0 0 6px rgba(255, 0, 0, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
            }
        }

        .text-weight-bold {
            a {
                color: inherit;
                text-decoration: none;

                &:hover {
                    color: #1976D2;
                    text-decoration: underline;
                }
            }
        }
    }
}
