
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    /* font-size: large; */
    font-weight: 500;
    font-display: swap;
}

body {
    /* display: grid; */
    height: 100%;
    display : flex;
    flex-direction: column;
    /* width: 100%; */
    /* overflow: hidden; */
}

/* *************************************************** */
/* This css serves the navbar and sidebar for the non-home htmls. */
/* *************************************************** */
/* SIDE BAR CSS */

.sidebar {
    position : relative;
    /* display: flex;
    flex-direction: column;
    align-items: center;
    gap : 1rem;*/
    /* height: 100%;  */
    width: 3vw;
    /* background: #078abe; */
    background: #06bcc1;
    /* padding: 1rem 0px;*/
    transition: all 0.75s ease; 
    grid-area:sidebar;
}

.sidebar li {
    display: inline-flex;
    position: relative;
    list-style: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.2rem 0.2rem;
    margin-top:20px;
    /* list-style: none !important; */
}

.sidebar-active .sidebar  li {
    justify-content: flex-start;
    /* border : 2px dashed #12263a;
    border-radius: 10px; */
    /* background-color: #aefcff; */

}

.sidebar li.active {
    background-color: #aefcff;
}

.sidebar li a{
    /* display: flex;
    flex-direction: column; */
    align-items: center;
    justify-content: center;
}

.sidebar-active .sidebar {
    width:10vw;
}


a:visited {
    text-decoration: none !important;
    color: #dee2e6 !important;
}

a:link {
    text-decoration: none!important;
}

.sidebar #btn:hover {
    color: #aefcff;
    pointer-events: auto;
    /* background: white; */
}

.sidebar-active .sidebar  #btn {
    left: 80%;
    transform: rotate(-180deg);
    transition: 0.5s ease-in-out;
}
.sidebar-active .sidebar a {
    align-items: center;
}

.sidebar .links_name {
    opacity: 0;
    display:none;
    pointer-events: none;
    color:#11101d;
}

.sidebar-active .sidebar .links_name {
    opacity: 1;
    pointer-events: auto;
    display: inline;
}



.sidebar li .tooltip {
    position: absolute;
    left: 100%; /* appears to the right */
    top: 50%;
    transform: translateY(-50%);
    background: rgb(133 208 221 / 95%);
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, left 0.3s ease;
    z-index: 1000;
}

.sidebar li:hover .tooltip {
    opacity: 1;
    left: 110%;
    z-index : 10000;
}

.sidebar-active .sidebar li:hover .tooltip {
    opacity: 0;

}

.sidebar li:hover {
    background-color: #aefcff;
}

/* .sidebar li a img:hover .tooltip {
    transition: all 0.5s ease;
    top: 50%;
    left: 150%;
    opacity: 1;
} */


.sidebar li a img {
    color: #11101d;
    aspect-ratio: 1 / 1;
    width : 2.5vw;
    min-width: 20px;
    max-width: 100px;
    /* background: white; */
    /* overflow: hidden; */
}


 
.sidebar #btn {
    position:relative;
    color: #12263a;
    left: 50%;
    top: 1rem;
    font-size: 1.5rem;
    height: 1rem;
    text-align: center;
    line-height: 1rem;
    transform: translateX(-50%)
}
    
.sidebar #btn:hover {
    color: #aefcff;
    pointer-events: auto;
    /* background: white; */
}
    



.sidebar .profile_content {
    position: absolute;
    color: white;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1d1b31;
}

.sidebar .profile_content .profile {
    position: relative;
    /* padding: 10px 6px; */
    height: 60px;
    display: grid;
    align-items: center;
}

.sidebar .profile_content .profile .profile_details {
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

.sidebar.active .profile .profile_details {
    opacity: 1;
    pointer-events: auto;
}

.profile .profile_details {
    margin-left: 10px;
}

.profile .profile_details .name {
    /* font-size: 15px; */
    font-weight: 500;
}

.profile .profile_details .job {
    /* font-size: 15px; */
    font-weight: 500;
}

/* .sidebar.active~.home_content { */
    /* width: calc(100% - 150px); */
    /* left: 150px; */
    /* width: 80vw;
    left: 20vw; */
/* } */

/* *************************************************** */
/* *************************************************** */
/* TOTAL AREA is called sidebarNavMain */

.sidebarNavMain {
    display:grid;
    height:100vh;
    
    /* background: grey; */
    grid-template-columns: 0.4fr 10fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "nav nav"
        "sidebar homeContent"
        "footer footer";
    /* grid-gap: 0.2rem; */
}

/* *************************************************** */
/* *************************************************** */
/* NAVBAR CSS */

.navbar {
    grid-area:nav;
    width: 100%;
    background-color: #12263a;
    /* background-color: #274673; */
}

/* sidebar toggle btn */

.home_content {
    grid-area: homeContent;
    /* display: flex; */
    /* min-height: 0; */
    /* flex-direction: column;
    height: 100%;
    width: 100%; calc(100% - 78px); */
    margin-top: 10px;
    margin-left: 10px;
    margin-bottom: 20px;
    transition: all 0.5s ease;
}

/* *************************************************** */
/* *************************************************** */
/* LOGO CSS */

.logo-svg {
  height: 70px;
  width: auto;
  margin-left: 2rem;
}


/* *************************************************** */
/* *************************************************** */
.asteriskField {
    display: none;
}

/* mb3 */
.mb-3 {
    align-items: center;
}

.form-check {
    display:inline-block !important;
}

a.disabled {
  pointer-events: none;
  cursor: default;
}

span.disabled {
pointer-events: none;
cursor: default;
}


/* Dark theme */
body.dark {
    background-color: #2a2a2a;
    color: #696767;
}

/* Button styling */
.theme-toggle {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    transition: background-color 0.3s;
}

.theme-toggle:hover {
    background-color: #0056b3;
}

.navbar-right {
    position:absolute;
    right: 1rem;
    display:flex
}

.iframe {
  background-color: #06bcc1 !important;
}

.user-select-none {
    user-select: text!important;
}

.navbar-nav a{
    font-size : 1.5rem;
}

/* Footer */
.site-footer {
    grid-area:footer;
    display: flex;
    flex-direction: row-reverse;
    gap : 2rem;

    background: #12263a;
    color: #fff;
    text-align: center;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.9rem;
    margin-top: auto;
    z-index: 1000;
}
.site-footer a { color: #aefcff; }
.site-footer a:hover { text-decoration: none; }


/* ############################################################################### */
/* ############################################################################### */
/* Mobile Version */
/* Mobile layout (stacked) */
@media (max-width: 768px) {
    .sidebarNavMain {
        grid-template-columns: 1fr; /* single column */
        grid-template-rows: auto auto 1fr auto; /* stack items */
        grid-template-areas:
            "nav"
            "sidebar"
            "homeContent"
            "footer";
    }
    .sidebar {
        display : flex;
        flex-direction: row;
        width : 100%;
    }

    .sidebar #btn {
        display:none;
    }
}