/* Flexbox utility */
@import 'scss/flexbox';

/* Preview Loader */
@import 'scss/loader';

/* Default */
body{
    background-color: #edf8ff;
}
.gs-instagram-settings {
    margin-right: -20px;
    margin-left: -22px;

    p {
        margin: 0;
    }

    * {
        box-sizing: border-box;
    }

    a {
        text-decoration: none;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

/* Header style */
.gs-settings-header {
    background: #0070af;
    background: -webkit-linear-gradient(left,  #0070af 0%, #4a66bc 100%);
    background: linear-gradient(to right,  #0070af 0%, #4a66bc 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0070af', endColorstr='#4a66bc',GradientType=1 );
    padding: 40px 30px 90px 35px;

    p.h1 {
        color: #fff;
        font-weight: 500;
        font-size: 25px;
    }

    p.h3 {
        font-size: 15px;
        color: #fff;
        background-color: rgba(0, 0, 0, 0.1);
        padding: 3px 13px;
        border-radius: 30px;
    }
}

/* Card */
.gs-settings-card-wrapper {
    padding: 0 30px 0 35px;
    margin-top: -50px;
}
.gs-settings-card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(0,0,0, 0.12);
}
.gs-settings-card-body {
    padding: 25px 30px 30px 30px;
}

/* Menu */
.gs-settings-menubar {
    border-bottom: 2px solid #dbe2e6;
    padding: 13px 15px 12px 15px;
}
.gs-settings-mainmenu {
    margin: 0;

    li {
        display: inline-block;
        padding: 0 15px;
        margin: 0;

        a {
            display: inline-block;
            color: #6a8190;
            font-size: 16px;
            text-decoration: none;
            position: relative;

            &:hover {
                color: #3b5261;
            }

            &:focus {
                outline: 0 none;
                box-shadow: none;
            }

            &.active {
                color: #3b5261;

                &:after {
                    position: absolute;
                    content: " ";
                    height: 2px;
                    width: 100%;
                    left: 0;
                    background-color: #3b5261;
                    bottom: -17px;
                }
            }
        }
    }
}

/* Page title */
.gs-instagram-page-heading {
    padding-bottom: 25px;
    border-bottom: 1px solid #dbe2e6;
    margin-bottom: 30px;

    p.gs-title {
        font-size: 22px;
        margin-bottom: 5px;
    }

    p.gs-subtitle {
        font-size: 15px;
        color: #717171;
    }
}

.gs-instagram-support-body {
    p {
        font-size: 16px;
        margin-bottom: 15px;
    }
}

/* Button */
a.gs-instagram-button, button.gs-instagram-button {
    padding: 10px 16px;
    display: inline-block;
    background-color: #4a66bc;
    font-size: 16px;
    color: #fff;
    border-radius: 3px;

    &:focus {
        outline: 0 none;
        box-shadow: none;
    }
}
button.gs-instagram-button {
    border: 0 none;
    cursor: pointer;
}
a.gs-instagram-button.heading-link {
    font-size: 14px;
    padding: 4px 10px;
    margin-left: 30px;
}
button.gs-instagram-button.danger-button {
    background-color: #f3f5f6;
    color: #b52727;
    border: 1px solid #b52727;
}

/* Settings page */
.gs-instagram-settings-field {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #dbe2e6;
    padding-bottom: 25px;

    .gs-label{
        flex: 0 0 30%;
        max-width: 30%;

        label {
            font-size: 17px;
            font-weight: 500;
            margin-bottom: 8px;
            display: block;
        }
        p {
            font-size: 14px;
            color: #717171;
        }
    }

    .gs-input{
        flex: 0 0 70%;
        max-width: 70%;
        padding-left: 100px;
    }
    .default-input {
        width: 60%;
        background-color: #dbe2e6;
        box-shadow: none;
        height: 34px;
        padding: 3px 10px;
        border-radius: 3px;
        border: 1px solid #bbc3c7;
        font-size: 14px;

        &:focus {
            outline: 0 none;
            box-shadow: none;
            border-color: #bbc3c7;
        }
    }
}

/* Form loader */
.gs-form-spinner.spinner{
    float: none;
    margin: 0 0 0 30px;
}

/* Themes table */
.gs-instagram-table {
    width: 100%;
    text-align: left;
    border-spacing: 0;
    color: #808d9b;

    thead th {
        color: #728398;
        background-color: #e7ecf1;
        padding: 15px 22px;
        font-weight: 600;
        font-size: 14px;
    }

    tbody td {
        padding: 18px 22px;
        border-bottom: 1px solid #d2dce6;
    }

    tbody tr:nth-child(even) td {
        background-color: #f7f7f7;
    }

    .gs-tcol-name a {
        color: #4a66bc;
        font-size: 14px;
        font-weight: 600;
    }

    .gs-tcol-shortcode {
        span {
            color: #545454;
        }
        button {
            cursor: pointer;
            color: #728398;
            background-color: #d9e4ef;
            font-size: 11px;
            border: 0 none;
            margin-left: 10px;
            padding: 3px 8px;
            border-radius: 20px;
            &:focus {
                outline: 0 none;
                box-shadow: none;
                background-color: #b4cbe2;
            }
        }
    }

    .gs-tcol-action a {
        color: #808d9b;

        & + a {
            margin-left: 20px;
        }

        &:hover {
            color: #4a66bc;
        }
    }
}

/* Theme settings form */
.theme-settings-form > h3 {
    font-size: 17px;
    font-weight: 500;
    margin: 0 0 20px 0;
    color: #444;
}
.theme-appearance-form {
    flex: 0 0 25%;
    max-width: 25%;
    background-color: #38393A;
    padding: 20px;

    .gs-field {
        margin-bottom: 20px;

        label {
            display: block;
            color: #bbc0c5;
            margin: 0 0 8px 0;
            font-size: 14px;
        }
        input, select {
            display: block;
            background-color: #22282d;
            color: #fff;
            border: 1px solid #9ea3a8;
            box-shadow: none;
            width: 100%;
            height: 32px;
            border-radius: 3px;
            padding: 3px 8px 4px 8px;
            font-size: 14px;
        }
    }
}
.theme-appearance-output {
    flex: 0 0 75%;
    max-width: 75%;
    background-color: #F7F7F7;
    padding: 20px;
    position: relative;

    .preview-text {
        text-align: center;
        font-size: 20px;
        padding-bottom: 30px;
        text-decoration: underline;
        color: #383939;
    }
}
.theme-create-submit {
    padding-top: 25px;
}

/* Notification Toaster */
#notification-wrapper .toast-notification {
    font-size: 14px;
}

/**
 * Theme style default
 */
.gs-instagram-theme-container {
    width: 100%;
    padding-right: 10px;
    padding-left: 10px;
    margin-right: auto;
    margin-left: auto;
}
.gs-instagram-theme-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}
.gsip-theme-columns {
    position: relative;
    width: 100%;
    padding-right: 10px;
    padding-left: 10px;
    margin-bottom: 20px;

    a {
        display: block;
        line-height: 1;
    }
}
.gsip-columns-4 {
    flex: 0 0 25%;
    max-width: 25%;
}
.gsip-columns-3 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

/**
 * Preview alert
 */
.theme-appearance-alert-warning {
    padding: 13px 20px;
    border-radius: 4px;
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    font-size: 15px;
    margin-bottom: 20px;
}
.gs-instagram-alert-info {
    padding: 13px 20px;
    border-radius: 4px;
    color: #0c5460;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    font-size: 15px;
    margin-bottom: 20px;
}

/**
 * switch icon
 */
.react-switch-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 15px;
    color: #fff;

    &.right-icon {
        padding-right: 10px;
    }

    &.left-icon {
        padding-left: 10px;
    }
}

/**
 * Auth form
 */
.gs-instagram-auth-field {
    margin-bottom: 25px;
    max-width: 500px;

    label, input {
        display: block;
        width: 100%;
    }

    label {
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 8px;
    }

    input {
        height: 36px;
        padding: 3px 10px;

        &:disabled {
            background-color: #dbe2e6;
            border: 1px solid #bbc3c7;
        }
    }
}
