﻿
/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.wrapper {
    display: flex;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #e3e3e3;
    color: #000000;
    transition: all 0.3s;
    height: 100vh;
    overflow-y: auto;
}

    /* Hide scrollbar for Chrome, Safari and Opera */
    #sidebar::-webkit-scrollbar {
        display: none;
    }

/* Hide scrollbar for IE and Edge */
#sidebar {
    -ms-overflow-style: none;
}

#sidebarCollapse.active {
    position: absolute;
    left: 6rem;
    font-size: 10px;
    width: 1rem;
    height: 1.6rem;
    border-radius: 0px 5px 5px 0px;
    padding-left: 0.2rem;
    background-color: #d7d7d7;
    top: 0.5rem;
    z-index: 99;
}


#sidebarCollapse {
    position: absolute;
    left: 15.4rem;
    font-size: 10px;
    width: 1rem;
    height: 1.6rem;
    border-radius: 0px 5px 5px 0px;
    padding-left: 0.2rem;
    background-color: #d7d7d7;
    top: 0.5rem;
    z-index: 99;
}

button#sidebarCollapse:focus {
    box-shadow: none;
}

#sidebar.active {
    min-width: 100px;
    max-width: 100px;
    text-align: center;
}

    #sidebar.active .sidebar-header h3,
    #sidebar.active .CTAs {
        display: none;
    }

    #sidebar.active .sidebar-header strong {
        display: block;
    }

#sidebar ul li a {
    text-align: left;
    color: #000;
}

#sidebar.active ul li a {
    padding: 10px 10px;
    text-align: center;
    font-size: 0.85em;
}

    #sidebar.active ul li a i {
        margin-right: 0;
        display: block;
        font-size: 1.8em;
        margin-bottom: 5px;
    }

#sidebar.active ul ul a {
    padding: 10px 5px !important;
}

#sidebar.active .dropdown-toggle::after {
    top: auto;
    bottom: 10px;
    right: 50%;
    -webkit-transform: translateX(50%);
    -ms-transform: translateX(50%);
    transform: translateX(50%);
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #d7d7d7;
}

    #sidebar .sidebar-header strong {
        display: none;
        font-size: 1.8em;
    }

#sidebar ul.components {
    padding: 20px 0;
    /*border-bottom: 1px solid #000;*/
}

#sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
}

    #sidebar ul li a:hover {
        color: #000000;
        background: #d7d7d7;
    }

    #sidebar ul li a i {
        margin-right: 10px;
    }

#sidebar ul li.active > a,
a[aria-expanded="true"] {
    color: #000;
    /*background: #d7d7d7;*/
}

a[data-toggle="collapse"] {
    position: relative;
}

/*.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}*/

#sidebar ul ul a {
    font-size: 0.8em !important;
    padding-left: 20px !important;
    background: #d7d7d7;
}

ul.CTAs {
    padding: 20px;
}

    ul.CTAs a {
        text-align: center;
        font-size: 0.9em !important;
        display: block;
        border-radius: 5px;
        margin-bottom: 5px;
    }

a.download {
    background: #fff;
    color: #d7d7d7;
}

a.article,
a.article:hover {
    background: #d7d7d7 !important;
    color: #000 !important;
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

#content {
    width: 100%;
    /*padding-left: 10px;
    padding-top: 5px;
    padding-right: 5px;*/
    /*min-height: 100vh;*/
    min-height: 100vh;
    transition: all 0.3s;
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

@media (max-width: 768px) {
    #sidebar {
        min-width: 100px;
        max-width: 100px;
        text-align: center;
        margin-left: -100px !important;
    }
        /*.dropdown-toggle::after {
        top: auto;
        bottom: 10px;
        right: 50%;
        -webkit-transform: translateX(50%);
        -ms-transform: translateX(50%);
        transform: translateX(50%);
    }*/
        #sidebar.active {
            margin-left: 0 !important;
        }

        #sidebar .sidebar-header h3,
        #sidebar .CTAs {
            display: none;
        }

        #sidebar .sidebar-header strong {
            display: block;
        }

        #sidebar ul li a {
            padding: 20px 10px;
        }

            #sidebar ul li a span {
                font-size: 0.85em;
            }

            #sidebar ul li a i {
                margin-right: 0;
                display: block;
            }

        #sidebar ul ul a {
            padding: 10px !important;
        }

        #sidebar ul li a i {
            font-size: 1.3em;
        }

    #sidebar {
        margin-left: 0px;
    }

    #sidebarCollapse span {
        display: none;
    }

    #sidebarCollapse {
        position: absolute;
        left: 0rem;
        font-size: 10px;
        width: 1rem;
        height: 1.6rem;
        border-radius: 0px 5px 5px 0px;
        padding-left: 0.2rem;
        background-color: #d7d7d7;
        top: 0.5rem;
        z-index: 99;
    }


        #sidebarCollapse.active {
            position: absolute;
            left: 6rem;
            font-size: 10px;
            width: 1rem;
            height: 1.6rem;
            border-radius: 0px 5px 5px 0px;
            padding-left: 0.2rem;
            background-color: #d7d7d7;
            top: 0.5rem;
            z-index: 99;
        }
}



/* NEW MENU  */

ul.navbar-nav li a span {
    display: inline-block;
    width: 100%;
    margin-top: 8px;
    color: #fff;
    color: rgba(255, 255, 255, 0.8);
    -o-transition: all .3s;
    -moz-transition: all .3s;
    -webkit-transition: all .3s;
    -ms-transition: all .3s;
    transition: all .3s;
    color: #A3A3A3;
}

a.nav-link > i {
    font-size: 18px;
    color: #A3A3A3;
}

a.nav-link > span {
    display: block;
}

a.dropdown-item > i {
    color: #A3A3A3;
    margin-right: 10px;
}

a.dropdown-item > span {
    color: #A3A3A3;
}

.nav-item.dropdown > .dropdown-menu {
    background-color: #4D4D4D;
}

a.nav-link:focus {
    /*background-color: #4D4D4D;*/
}

.navbar-nav {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}    

@media screen and (max-width: 992px) {
    a.nav-link > i {
        font-size: 18px;
    }

    ul.navbar-nav li a span {
        display: block;
    }
    /*a.nav-link > span {
        display: none !important;
    }*/
    .navbar-nav {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }    
}

/* On screens that are 600px wide or less, make the columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
    a.nav-link > i {
        font-size: 18px;
    }

    ul.navbar-nav li a span {
        display: block;
    }
    /*a.nav-link > span {
        display: none;
    }*/

    .navbar-nav {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }   
}




/*/////////////// switch ////////////////////*/
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 42px /*34px;  if is inside nav-link change in 42px */
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #F5D13F; /*#2196F3;*/
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }