// color --------------------
$main-color: #0a66c2;
$highlight-color: #ff0;

$scrape-btn-text-color: #fff;
$scrape-btn-border-color: rgb(3, 162, 88);
$scrape-btn-bg-color: rgb(3, 162, 88);

$panel-bg-color: #0a66c2;
// ---------------------------

body.linkedin-profile-scraper {
    .main-export-container.linkedin-profile-scraper-container {
        width: 350px;
        display: block;
        padding: 5px 12px;
        background: $panel-bg-color;
        margin-top: 5px;
        border: 1px solid $panel-bg-color;
        position: fixed;
        z-index: 999999;
        top: 0;
        left: 0;
        margin: 10px;
        cursor: move;
        border-radius: 5px;
        box-shadow: rgba(0, 0, 0, 0.65) 1px 3px 11px 0px;
        font-family: Arial, Helvetica, sans-serif;

        & .is-hidden {
            display: none !important;
        }

        &:hover .export-panel-close-btn {
            display: block;;
        }

        .eb-more-plugins {
            text-align: center;
            display: none;

            a {
                font-size: 13px;
                color: #ccc;
                transition: color 0.2s;
            }

            a:hover {
                color: #fff;
            }
        }

        .export-header-title {
            text-align: center;
            padding: 10px 0;
            color: #fff;
            font-weight: 400;
            font-size: 15px;
            display: none;
        }

        &.export-show-continue-btn .export-header-title,
        &.export-show-panel-title .export-header-title {
            display: block;
        }

        .export-footer {
            text-align: center;
            font-size: 12px;
            color: #ccc;
            margin: 15px 0 5px 0;
        }

        .export-footer a {
            color: #eee;
        }

        .export-footer a:hover,
        .export-footer a:visited {
            color: #fff;
            text-decoration: underline;
        }

        .export-buttons {
            margin: 5px 0;
        }

        .export-buttons > button {
            width: 100%;
            margin: 3px 0;
            border: none;
            background: none;
            outline: none;
            color: rgb(22, 24, 35);
            font-size: 13px;
            font-weight: 700;
            flex: 0 0 auto;
            cursor: pointer;
            padding: 8px 15px;
            background: #fff;
            border-radius: 5px;

            .export-btn-label,
            .export-btn-label i,
            .export-btn-label-note,
            .export-btn-label-note i {
                font-weight: 700;
            }
        }

        .export-buttons > button:active {
            color: rgb(237, 53, 75);
            background-color: #fff;
        }

        .export-buttons > button:hover {
            color: rgb(237, 53, 75);
            background-color: #fff;
        }

        .export-status {
            text-align: center;
            padding: 10px 0;
            color: #fff;
        }

        .export-status-text {
            font-size: 13px;
        }

        .export-progress-text {
            margin-top: 10px;
            font-size: 12px;

            &:empty {
                display: none !important;
            }

            color: #999;

            i {
                font-style: normal;
                color: #ccc;
                font-weight: bold;
            }

            .export-progress-done {
                color: #0f0;
                font-weight: bold;
            }

            .export-progress-error {
                color: #f00;
                font-weight: bold;
            }
        }

        .export-error-info {
            display: block;
            text-align: left;
            white-space: pre-wrap;
            font-size: 12px;
            background: rgba(255,255,255,0.08);
            padding: 8px;
            border-radius: 5px;
            margin-top: 10px;
            color: #f00;
        }

        .export-upgrade-link {
            text-transform: uppercase;
            font-weight: bold;
            color: $highlight-color;
            cursor: pointer;
            padding: 5px;
            font-size: 13px;
            display: inline-block;
            text-decoration: underline;
        }

        .export-upgrade-link:hover {
            text-decoration: underline;
        }

        .export-start-btn{
            span:nth-child(2) {
                display: none;
                color: #808080;
                margin-left: 5px;
            }

            i {
                font-style: normal;
                color: #f00;
            }
        }

        &.export-show-continue-btn {
            .export-start-btn{
                span:nth-child(2) {
                    display: inline-block;
                }
            }
        }

        .export-continue-btn {
            position: relative;
            display: none;

            span:nth-child(2) {
                color: #808080;
                margin-left: 5px;
            }

            i {
                position: absolute;
                right: 0;
                top: 0;
                margin: -5px;
                width: 22px;
                height: 22px;
                font-size: 13px;
                background: #ff0202;
                border-radius: 50%;
                display: none;
                justify-content: center;
                align-items: center;
                color: #fff;
                font-style: normal;
                cursor: help;
            }
        
            &:hover {
                i {
                    display: flex;
                }
            }
        }

        &.export-show-continue-btn .export-continue-btn {
            display: block;
        }

        .export-loading {
            position: relative;
            margin: 5px;
            top: 5px;
        }

        .export-status-logout {
            text-align: center;
            font-size: 13px;
            color: #000;
            background: #fff;
            border-radius: 5px;
            padding: 10px;
            margin: 0;
        }

        .export-panel-close-btn {
            display: none;
            position: absolute;
            top: -8px;
            right: -8px;
            padding: 5px;
            border-radius: 50%;
            background: #fff;
            font-size: 0;
            line-height: 1;
            cursor: pointer;
            box-shadow: 0px 0 8px 1px rgba(34, 34, 34, 0.13);
            transition: all 0.3s;

            &:hover {
                transform: rotate(90deg);
            }
        }

        .export-note {
            font-size: 12px;
            color: #eee;
            margin-top: 8px;
        }
    }
}

.scrape-btn.linkedin-profile-scraper.is-hidden {
    display: none !important;
}

.scrape-btn.linkedin-profile-scraper {
    display: inline-block;
    margin-left: 15px;
}

.scrape-btn.linkedin-profile-scraper button {
    color: $scrape-btn-text-color;
    background: $scrape-btn-bg-color;
    border: 2px solid $scrape-btn-border-color;
    border-radius: 20px;
    color: white;
    outline: none;
    padding: 0px 15px;
    width: auto;
    font-weight: 700;
    font-size: 14px;
    height: 34px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;

    svg {
        fill: $scrape-btn-text-color;
    }

    .eb-help-btn {
        position: absolute;
        right: 0;
        top: 0;
        margin: -10px;
        width: 20px;
        height: 20px;
        font-size: 13px !important;
        color: #fff;
        background: #222;
        border-radius: 50%;
        display: none;
        justify-content: center;
        align-items: center;
        cursor: help;
    }

    &:hover {
        background: lighten($scrape-btn-bg-color, 5%);
        border-color: lighten($scrape-btn-border-color, 5%);

        /* .eb-help-btn {
            display: flex;
        } */
    }
}

body.linkedin-profile-scraper-scrape-btn-container .scrape-btn.linkedin-profile-scraper {
    position: fixed;
    top: 0;
    right: 0;    
    z-index: 999999;
    margin: 20px 5px;
    background: rgba(0,0,0,0.3);
    padding: 8px;
    border-radius: 5px;
}

body:not(.linkedin-profile-scraper-scrape-btn-container) > .scrape-btn.linkedin-profile-scraper {
    display: none;
}

body.linkedin-profile-scraper-scrape-btn-container.linkedin-profile-scraper-hide-body-scrape-button .scrape-btn.linkedin-profile-scraper {
    display: none !important;
}

.linkedin-profile-scraper-stage-mask {
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    z-index: 999995;
}

body.linkedin-profile-scraper-scraping .linkedin-profile-scraper-stage-mask {
    display: block;
}

.eb-linkedin-profile-scraper-btn-container {
    min-width: 450px;
    display: grid;
    grid-template-columns: auto auto auto;
}

#global-nav-search:not(.eb-linkedin-profile-scraper-btn-container) {
    .scrape-btn.linkedin-profile-scraper {
        display: none;
    }
}