/*
    DEMO STYLE
*/
@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";


body {
    /* Inter is the brand typeface (brand-tokens.css); Poppins stays in the
       stack as the transition fallback for surfaces not yet swept. */
    font-family: var(--font-sans, 'Inter', 'Poppins', sans-serif);
    background: #fafafa;
}

p {
    font-family: var(--font-sans, 'Inter', 'Poppins', sans-serif);
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.7em;
    color: #999;
}

a, a:hover, a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.navbar {
    padding: 15px 10px;
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 40px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    /* `perspective: 1500px;` removed 2026-06-03 — it was originally added to
       support the 3D sidebar rotate effect at `#sidebar.active` (see the
       commented-out `transform: rotateY(100deg)` on line ~71). That effect has
       been disabled for years, but the orphaned perspective was silently
       creating a new containing block for every `position: fixed` descendant.
       Bootstrap modals nested inside `.wrapper` were having their `height: 100%`
       resolve to 100% of the wrapper (= entire scrollable body) instead of 100%
       of the viewport. On pages with many appointments (DriverCheckin, Hanzo
       with 14 cards → 3578px body) the modal-dialog ballooned to 3521px tall,
       `align-items: center` placed the form at y≈1483 — far below the visible
       viewport — and users saw "the Check In button doesn't work" because the
       form was off-screen. A previous dev (ConnectorDetails.cshtml:8278)
       already hit this and worked around it by re-parenting their panel to
       <body>; this root fix makes the workaround unnecessary going forward.
       Verified: no 3D-transform inside .wrapper depends on this perspective;
       FontAwesome's rotate3d icons use their own inline 3D and don't need it. */
}


#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #000000;
    color: #fff;
    transition: all 0.6s cubic-bezier(0.945, 0.020, 0.270, 0.665);
    transform-origin: bottom left;
}

    #sidebar.active {
        margin-left: -250px;
        /*transform: rotateY(100deg);*/
    }

    #sidebar .sidebar-header {
        padding: 20px;
        background: #000000;
    }

    #sidebar ul.components {
        padding: 20px 0;
        border-bottom: 1px solid #47748b;
    }

    #sidebar ul p {
        color: #fff;
        padding: 10px;
    }

    #sidebar ul li a {
        padding: 10px;
        font-size: 1.1em;
        display: block;
        text-decoration: none;
        color: white;
    }

        #sidebar ul li a:hover {
            color: #000000;
            background: #fff;
        }

    #sidebar ul li.active > a {
        color: #fff;
        background: #6d7fcc;
        background: linear-gradient(91.59deg, #70C059 0%, #72CAC8 100%);
        text-decoration: none;
    }

a[aria-expanded="true"] {
    color: #fff;
    background: #303030;
    /*background: linear-gradient(91.59deg, #70C059 0%, #72CAC8 100%);*/
}

a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #303030;
}

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: #7386D5;
}

a.article, a.article:hover {
    background: #6d7fcc !important;
    color: #fff !important;
}



/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */
#content {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
    background-color: #F5F5F5;
}

/* Enhanced calendar expansion when sidebar is collapsed */
#sidebar.active ~ #content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#sidebar.active ~ #content #calendar {
    width: 100% !important;
    max-width: 100% !important;
    transition: all 0.3s ease;
}

#sidebar.active ~ #content .main-hero-content {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transition: all 0.3s ease;
}

#sidebar.active ~ #content .container-fluid {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

#sidebarCollapse {
    width: 40px;
    height: 40px;
    /*background: #f5f5f5;*/
    background: transparent !important;
    cursor: pointer;
}

    #sidebarCollapse span {
        width: 80%;
        height: 2px;
        margin: 0 auto;
        display: block;
        background: #555;
        transition: all 0.8s cubic-bezier(0.810, -0.330, 0.345, 1.375);
        transition-delay: 0.2s;
    }

        #sidebarCollapse span:first-of-type {
            transform: rotate(45deg) translate(2px, 2px);
        }

        #sidebarCollapse span:nth-of-type(2) {
            opacity: 0;
        }

        #sidebarCollapse span:last-of-type {
            transform: rotate(-45deg) translate(1px, -2px);
        }


    #sidebarCollapse.active span {
        transform: perspective(10px);
        opacity: 1;
        margin: 5px auto;
    }

.main-hero-content {
    border: 1px solid #D0D5DD;
    box-shadow: 0px 4px 6px -2px rgba(16, 24, 40, 0.03), 0px 12px 16px -4px rgba(16, 24, 40, 0.08);
    border-radius: 4px;
    padding: 10px !important;
    margin-top: 15px;
    background-color: #fff;
}

.gradient {
    color: #fff !important;
}

.container-fluid {
    padding: 0 15px !important;
}
/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */
@media (max-width: 768px) {
    /* Mobile: hide sidebar off-canvas, turn it into overlay when active */
    #sidebar {
        margin-left: -250px;
        transform: none;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1050;
        overflow-y: auto;
    }

        #sidebar.active {
            margin-left: 0;
            transform: none;
        }

    #sidebarCollapse span:first-of-type,
    #sidebarCollapse span:nth-of-type(2),
    #sidebarCollapse span:last-of-type {
        transform: none;
        opacity: 1;
        margin: 5px auto;
    }

    #sidebarCollapse.active span {
        margin: 0 auto;
    }

        #sidebarCollapse.active span:first-of-type {
            transform: rotate(45deg) translate(2px, 2px);
        }

        #sidebarCollapse.active span:nth-of-type(2) {
            opacity: 0;
        }

        #sidebarCollapse.active span:last-of-type {
            transform: rotate(-45deg) translate(1px, -1px);
        }
}
