.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem !important;
    width: 100%;
    padding: 0 3rem;
    border-bottom: 1px solid var(--color-divider-subtle);

    .title-search {
        display: flex;
        align-items: center;
        position: relative;

        .title {
            font-size: 24px;
            font-weight: 400;
            letter-spacing: -0.02em;
            line-height: 1.2;
            color: var(--white);
            padding: 0 !important;
            margin: 0 !important;
            display: flex;
            align-items: center;
            position: relative;

            .flows-prefix {
                color: rgba(255, 255, 255, 0.6);
                cursor: pointer;
                transition: all 0.2s ease;
                display: flex;
                align-items: center;
                gap: 0.5rem;
                position: relative;

                .back-arrow {
                    margin-top: 3px;
                    opacity: 1;
                    transform: translateX(0);
                    transition: all 0.3s ease;
                }

                span {
                    line-height: 1;
                }

                &:hover {
                    color: rgba(255, 255, 255, 0.9);
                }
            }
        }

        .slash {
            color: #999;
            margin: 0 0.5rem;
            font-size: 24px;
            font-weight: 400;
            letter-spacing: -0.02em;
            line-height: 1.2;
        }

        .graph-name {
            font-size: 24px;
            font-weight: 400;
            letter-spacing: -0.02em;
            line-height: 1.2;
            color: var(--white);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 500px;
            min-width: 0;
        }
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 12px;

        button {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0 0.75rem;
            height: 36px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 400;
            cursor: pointer;
            transition: all 0.2s ease-in-out;

            &:disabled {
                cursor: not-allowed;
                opacity: 0.7;
            }

            i.ti-spin {
                animation: spin 1s linear infinite;
            }

            @keyframes spin {
                0% {
                    transform: rotate(0deg);
                }
                100% {
                    transform: rotate(360deg);
                }
            }
        }

        .sessions-button {
            background-color: transparent;
            color: var(--accent-color);
            border: none;

            &:hover {
                background-color: rgba(154, 115, 175, 0.1);
            }
        }

        .get-curl-button {
            background-color: transparent;
            color: var(--accent-color);
            border: 1px solid var(--accent-color);

            &:hover {
                background-color: rgba(154, 115, 175, 0.1);
            }
        }

        .save-button {
            background-color: transparent;
            color: var(--accent-color);
            border: 1px solid var(--accent-color);

            &:hover {
                background-color: rgba(154, 115, 175, 0.1);
            }
        }

        .run-button {
            background-color: var(--accent-color);
            color: white;
            border: 1px solid var(--accent-color);

            &:active {
                background-color: var(--accent-color);
            }
        }
    }
}
.graph-name.project-link {
    cursor: pointer;
    transition: text-decoration 0.2s;
}
.graph-name.project-link:hover {
    text-decoration: underline;
}
.unsaved-indicator {
    position: absolute;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    color: #685fff;
    font-size: 14px;
    white-space: nowrap;

    i {
        font-size: 10px;
        margin-right: 6px;
        color: #685fff;
    }

    .unsaved-text {
        font-size: 12px;
        font-weight: 500;
        color: #685fff;
    }
}
