/* General */
body {
    padding-top: 50px; /* Height of navbar */
    padding-bottom: 10px; /* Height of footer */
}

.navbar {
    /* background-color: #000000; */
    /* width: 100%; */
    height: 50px;
    /* position: fixed; */
    /* top: 0; */
    padding: 0;
}


/*lab name animate*/
.brand-wrapper {
    font-style: italic;
    font: bolder;
    font-family: 'Arial Black';
    position: relative;
    overflow: hidden;
}

.animated-brand {
    display: inline-block;
    white-space: nowrap;
    animation: slideText 20s linear infinite alternate;
}

.animated-brand:hover {
    animation-play-state: paused;
    cursor: pointer;
}

/* Sidebar */
#sidebar {
    transition: all 0.3s ease;
    height: 100vh;
    top: 50px; /* Height of navbar */
    position: fixed;
    left: 0;
    overflow-y: auto;
    width: 170px;
    padding: 0;
    background-color: #002142;
    z-index: 1000;
}

#sidebar .nav-link {
    color: #ffffff;
    padding: 10px 15px;
}

#sidebar .nav-link:hover {
    background-color: #007bff;
    color: #fff;
}

.logout_btn {
    color: white;
    background-color: rgba(255, 0, 0, 0.479);
}

.logout_btn:hover {
    color: white;
    background-color: rgba(71, 3, 3, 0.719);
}

.sidebar-hidden {
    transform: translateX(-100%);
}

.sidebar-shown {
    transform: translateX(0);
}


/* Dropdown in sidebar */
.dropdown-menu {
    background-color: #02b1cff1;
    /* width: 150px; */
}

.dropdown-menu .dropdown-item {
    color: #000000;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #1100aca9;
    color: white;
}

.spc_btwn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;  /* Push top & bottom apart */
    min-height: 100vh;                   /* Full screen height */
    /* background-color: #58595a;       Sidebar Color */
    /* padding-bottom: 10px; */
}


/* Main Content */
main {
    margin-left: 175px; /* Sidebar width */
    margin-top: 56px;  /* Navbar height */
    /* padding: 20px; */
    transition: margin-left 0.3s ease;
}

.sidebar-hidden + main {
    margin-left: 0;
}

/* Footer */
footer {
    position: static;
    bottom: 0;
    width: 100%;
    background-color: #073d34;
    color: white;
    margin-top: 20px;
    padding: 0;
    padding-left: 175px;
    padding-top: 16px;
    padding-bottom: 16px;
}

footer h4 {
    text-transform: uppercase;
    margin-bottom: 12px;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline; /* Add underline on hover for links */
}

footer i {
    font-size: 24px;
    /* padding-left: 12px; */
}

footer .social_media_icons .fab{
    margin-right: 15px; /* Add spacing between icons */
    font-size: 24px;
}

/* Responsive Design */
@media (max-width: 991px) {

    /* Small Screen - No Animation */
    .brand-wrapper {
        width: auto;
        overflow: visible;
    }

    .animated-brand {
        animation: none;
    }

    #sidebar {
        transition: all 0.3s ease;
        height: 100vh;
        top: 50px; /* Height of navbar */
        position: fixed;
        left: 0;
        overflow-y: auto;
        width: 175px;
        padding: 0;
        background-color: #002142;
        z-index: 1000;
    }
    
    .spc_btwn {
        height: auto;
        justify-content: flex-start;  /* Remove space-between */
    }

    .spc_btwn ul:last-child { 
        margin-top: 20px;  /* Optional spacing for Logout button */
    }
    
    /*.logout_area {*/
    /*    margin-top: auto; */
    /*}*/
    
    /*logout_btn {*/
    /*    margin-bottom: 200px;*/
    /*}*/


    .sidebar-shown {
        transform: translateX(0);
    }

    main {
        margin-left: 0;
    }


    /* Footer */
    footer {
        padding-left: 0;
    }
    footer .row .col-md-3 {
        border-bottom: 0.5px solid #9c9c9c;
        padding-top: 15px;
    }

    footer .row .col-md-3:last-child {
        border-bottom: none;
    }
}


/* Keyframes for sliding within container */
@keyframes slideText {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% + 100vw)); }
}

