﻿@charset "utf-8";

/* =========================================
   SEZIONE 1: LOADING (FILE PRIMO)
   ========================================= */

.page-loaded {
    display: none;
}

.page-loader-container {
    position: fixed;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    width: auto;
    height: auto;
    background-color: transparent;
    cursor: wait;
    z-index: 999998;
}

.page-loader-v1 {
    background-color: transparent !important;
    border: 6px solid;
    border-color: transparent #55AB26 #55AB26 transparent;
    border-radius: 50%;
    height: 140px;
    width: 140px;
    animation: page-loader-a1 2.0s linear infinite;
    position: absolute;
    left: calc(50% - 70px);
    top: calc(50% - 70px);
}

.page-loader-v2 {
    background-color: transparent !important;
    border: 6px solid;
    border-color: #014A99 #014A99 transparent transparent;
    border-radius: 50%;
    height: 120px;
    width: 120px;
    transform: rotateZ(360deg);
    animation: page-loader-a2 3.0s linear infinite;
    position: absolute;
    left: calc(50% - 60px);
    top: calc(50% - 60px);
}

.page-loader-v3 {
    border: 6px solid;
    border-color: #55AB26 transparent transparent #55AB26;
    border-radius: 50%;
    height: 100px;
    width: 100px;
    animation: page-loader-a3 4.0s linear infinite;
    position: absolute;
    left: calc(50% - 50px);
    top: calc(50% - 50px);
}

.page-loader-text {
    font-size: 1rem;
    color: black;
    animation: page-loader-a4 2.0s linear infinite alternate;
    -webkit-animation: page-loader-a4 2.0s linear infinite alternate;
    position: absolute;
    left: calc(50% - 40px);
    top: calc(50% - 40px);
    background: url(logo/azeta/logo.png) center center no-repeat;
    background-size: contain;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    z-index: -1;
    background-color: white;
}

@keyframes page-loader-a1 {
    0% {
        transform: rotateZ(0deg)
    }

    100% {
        transform: rotateZ(360deg)
    }
}

@keyframes page-loader-a2 {
    0% {
        transform: rotateZ(300deg)
    }

    100% {
        transform: rotateZ(-60deg)
    }
}

@keyframes page-loader-a3 {
    0% {
        transform: rotateZ(-120deg)
    }

    100% {
        transform: rotateZ(240deg)
    }
}

@keyframes page-loader-a4 {
    from {
        transform: scale(0.9);
        opacity: 0.2
    }

    to {
        transform: scale(1.2);
        opacity: 1.0
    }
}

/* =========================================
   SEZIONE 2: SIDEBAR & LAYOUT (FILE SECONDO)
   ========================================= */

/* SIDEBAR */
.sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    min-height: 100vh;
    transition: .3s ease-in-out;
    top: 0px;
    left: 0px;
    padding-top: 0px;
    position: fixed;
    background-color: var(--sidebar-back-color);
    color: var(--sidebar-fore-color);
    z-index: 11;
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item a {
        color: #d7d7d7;
        border-radius: 4px;
        min-height: 1em;
        display: flex;
        align-items: center;
    }

        .sidebar .nav-item a.active {
            background-color: rgba(255,255,255,0.25);
            color: white;
        }

        .sidebar .nav-item a:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }

.sidebar-button {
    position: fixed;
    z-index: 12;
    visibility: collapse;
    width: 55px;
    height: 55px;
    left: 0px;
    top: -60px;
    background-color: var(--sidebar-toggle-back-color);
    color: var(--sidebar-toggle-fore-color);
    text-align: center;
    vertical-align: middle;
    line-height: 55px;
    margin: auto;
    padding: 0px;
    transition: top .8s ease-in-out;
    cursor: pointer;
}

    .sidebar-button i {
        line-height: 55px;
        vertical-align: middle;
    }

/* MENUBAR */
.azmenubar {
    overflow: hidden;
    overflow-y: auto;
    position: absolute;
    left: 0px;
    top: 180px;
    right: auto;
    bottom: 0px;
    width: var(--sidebar-width);
    height: auto;
}

.app-bar {
    height: 3.5rem;
    display: flex;
    align-items: center;
    top: 0;
    position: sticky;
}

.app-main {
    border-top: 55px solid var(--sidebar-back-color);
    background: none;
    transition: .3s ease-in-out;
    -webkit-overflow-scrolling: touch;
}

.app-content {
    background: none;
    padding: 1em;
    padding-top: 10px;
    padding-left: 15px;
    box-sizing: border-box;
    position: absolute;
    left: var(--sidebar-width);
    top: 55px;
    right: 0px;
    bottom: 0px;
    width: auto;
    min-height: 500px;
    height: auto;
    transition: .3s ease-in-out;
}

/* MEDIA QUERIES */
@media (max-width: 1024px) {
    .sidebar {
        padding-top: 55px;
        box-shadow: 5px 5px 5px dimgray;
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }

    .sidebar-button {
        top: 0px;
        visibility: visible;
    }

    .azmenubar {
        top: 110px;
        font-size: 110%;
    }

    .sidebar-collapsed {
        left: calc(-1 * var(--sidebar-width) - 10px);
    }

    .application-logo {
        height: 110px;
        margin-top: 10px;
    }

    .app-content {
        left: 0px;
        padding: 0px;
        margin: 5px 10px;
    }
}
