﻿
:root {
    --smash-primary-color: #f37021;
    --smash-secondary-color: #ff8c00;
}


.loader {
    width: 100%;
    height: 50px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .loader:before {
        content: '';
        position: absolute;
        width: 40px;
        height: 40px;
        border: 4px solid var(--gray-light);
        border-radius: 50px;
        border-right: 4px solid black;
        -webkit-animation: loaderAnimation .6s linear infinite;
        -moz-animation: loaderAnimation .6s linear infinite;
        animation: loaderAnimation .6s linear infinite;
    }

@-moz-keyframes loaderAnimation {
    100% {
        -moz-transform: rotate(360deg);
    }
}

@-webkit-keyframes loaderAnimation {
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes loaderAnimation {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* width */
::-webkit-scrollbar {
    width: 7px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--secondary);
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: gray;
    }


    /*INPUTS*/


.form-section {
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
    vertical-align: top;
    width: 100%;
}

    .form-section > label {
        font-size: 1rem;
        color: var(--primary-font-color-lighter-1);
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
        transform: none;
    }

    .form-section > span {
        font-size: 12px;
        color: var(--primary-font-color-lighter-1);
    }

    .form-section > .form-input {
        font-family: Poppins;
        font-weight: 400;
        font-size: 1rem;
        line-height: 1.4375em;
        color: rgba(0,0,0,.87);
        box-sizing: border-box;
        cursor: text;
        display: inline-flex;
        align-items: center;
        position: relative;
        padding: 0;
        margin-bottom: .5rem;
    }

        .form-section > .form-input:focus-within:after {
            -webkit-transform: scaleX(1);
            -moz-transform: scaleX(1);
            -ms-transform: scaleX(1);
            transform: scaleX(1);
        }

        .form-section > .form-input:before {
            border-bottom: 1px solid rgba(0, 0, 0, 0.42);
            left: 0;
            bottom: 0;
            content: "\00a0";
            position: absolute;
            right: 0;
            -webkit-transition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
            transition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
            pointer-events: none;
        }

        .form-section > .form-input:after {
            left: 0;
            bottom: 0;
            content: "";
            position: absolute;
            right: 0;
            -webkit-transform: scaleX(0);
            -moz-transform: scaleX(0);
            -ms-transform: scaleX(0);
            transform: scaleX(0);
            -webkit-transition: -webkit-transform 200ms cubic-bezier(0,0,.2,1) 0ms;
            transition: transform 200ms cubic-bezier(0,0,.2,1) 0ms;
            pointer-events: none;
            border-bottom: 2px solid var(--primary-color);
        }

        .form-section > .form-input input {
            padding: 10px 0;
            border: 0;
            box-sizing: content-box;
            background: none;
            margin: 0;
            display: block;
            min-width: 0;
            width: 100%;
            font-size: 1.1rem;
            font-family: Poppins;
        }

            .form-section > .form-input input:-webkit-autofill,
            .form-section > .form-input input:-webkit-autofill:hover,
            .form-section > .form-input input:-webkit-autofill:focus,
            .form-section > .form-input input:-webkit-autofill:active {
                -webkit-box-shadow: 0 0 0 30px white inset !important;
            }

            .form-section > .form-input input:focus {
                outline: 0;
            }

            .form-section > .form-input input:disabled {
                color: rgba(0, 0, 0, 0.38);
                cursor: default;
            }


.form-end-button {
    position: relative;
}

.form-section > .form-input.form-end-button input {
    padding-right: 40px;
}

.form-end-button > button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    outline: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    text-align: center;
    line-height: 0;
    cursor: pointer;
    transition-duration: 200ms;
    z-index: 10;
}

    .form-end-button > button:focus {
        outline: none;
    }

    .form-end-button > button:hover {
        color: var(--primary-color-higher-1);
    }

.form-select-options {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    background: white;
    box-shadow: 0px 3px 6px #00000029;
    border-radius: 0 0 1rem 1rem;
    padding: .5rem;
    z-index: 10;
}

.form-select-selected {
    display: block;
    padding: 10px 0;
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    outline: none;
    position: relative;
    cursor: pointer;
}

.form-select-option {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    color: var(--primary-font-menu-color);
    padding: .2rem .5rem;
    transition-duration: 200ms;
    border-radius: 5px;
    cursor: pointer;
    min-height: 30px;
}

    .form-select-option:hover {
        background: var(--primary-hover-color);
    }

.form-select-selected i {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-font-color-lighter-1);
    font-size: 18px;
}

.form-select-selected:focus {
    outline: none;
}


.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
    margin: 10px;
}

    .toggle-switch .toggle-input {
        display: none;
    }

    .toggle-switch .toggle-label {
        position: absolute;
        top: 0;
        left: 0;
        width: 40px;
        height: 24px;
        background-color: rgba(0, 0, 0, 0.3);
        border-radius: 34px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

        .toggle-switch .toggle-label::before {
            content: "";
            position: absolute;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            top: 2px;
            left: 2px;
            background-color: #fff;
            box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
            transition: transform 0.3s;
        }

    .toggle-switch .toggle-input:checked + .toggle-label {
        background-color: #f37021;
    }

        .toggle-switch .toggle-input:checked + .toggle-label::before {
            transform: translateX(16px);
        }

    .toggle-switch.light .toggle-label {
        background-color: #BEBEBE;
    }

    .toggle-switch.light .toggle-input:checked + .toggle-label {
        background-color: #9B9B9B;
    }

        .toggle-switch.light .toggle-input:checked + .toggle-label::before {
            transform: translateX(6px);
        }

    .toggle-switch.dark .toggle-label {
        background-color: #4B4B4B;
    }

    .toggle-switch.dark .toggle-input:checked + .toggle-label {
        background-color: #717171;
    }

        .toggle-switch.dark .toggle-input:checked + .toggle-label::before {
            transform: translateX(16px);
        }
