/* External CSS Files */
@import url('utils.css');
@import url('components.css');
@import url('auth.css');



* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--light-gray);
    font-family: 'Poppins', sans-serif;
}


/*  Sidebar */
#sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 221px;
    background-color: var(--white);
    border-right: 1px solid var(--gray);
    transition: transform 0.3s ease-in;
}

.sidebar-logo {
    padding: 20px 20px 0px 20px;
}

.sidebar-search-box {
    padding: 20px;
}

/* Sidebar search  */
#search-form .search-input-group {
    display: grid;
    grid-template-columns: 20px auto;
    border: 1px solid var(--gray);
    padding: 8px 15px;
    border-radius: 30px;
    overflow: hidden;
}

#search-form .search-input-group input {
    font-size: 14px;
    border: none;
    outline: none;
}


/* Side bar menu */
#sidebar-menu ul {
    list-style: none;
}

#sidebar-menu ul a.menu-link {
    text-decoration: none;
    font-size: 14px;
    color: #000;
    font-weight: 600;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    border-bottom: 1px solid #fff;
    border-top: 1px solid #fff;
}

#sidebar-menu ul a.menu-link.active {
    background-color: var(--light-gray);
    border-top-color: var(--gray);
    border-bottom-color: var(--gray);
    color: var(--green);
}


/* Side bar user info */
#sidebar-user-info {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 15px 20px;
}

#sidebar-user-info div:first-child {
    gap: 7px;
}

#sidebar-user-info div:first-child img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

#sidebar-user-info div:last-child {
    margin-top: 5px;
}

#sidebar-user-info div:last-child img {
    cursor: pointer;
}

#sidebar-user-menu-div {
    position: relative;
}

#sidebar-user-menu-list {
    position: absolute;
    list-style: none;
    bottom: 40px;
    right: 0px;
    width: 140px;
    border: 1px solid var(--gray);
    display: none;
}

.sidebar-user-menu-show {
    display: block !important;
}

#sidebar-user-menu-list li a {
    font-size: 14px;
    display: block;
    text-decoration: none;
    color: #000;
    padding: 3px 20px;
}

#sidebar-user-menu-list li a:hover,
#sidebar-user-menu-list li .logout-btn:hover {
    background-color: var(--green);
    color: var(--white);
}

#sidebar-user-menu-list li .logout-btn {
    border: none !important;
    display: block;
    width: 100%;
    text-decoration: none;
    color: #000;
    padding: 3px 20px;
    background-color: #fff;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

/* Main Container */
#main {
    margin-left: 221px;
    transition: all 0.3s ease-in;
}

/* Top Bar */
#top-bar {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray);
    padding: 15px 0;
} 

#top-bar div:first-child,
#top-bar div:nth-child(2),
#top-bar .top-bar-title {
    padding-left: 20px;
    font-size: 22px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
}

#top-bar div:nth-child(2) h3 {
    font-size: 22px;
}

#top-bar div:first-child h3 {
    font-size: 22px;
}

#top-bar a {
    text-decoration: none;
    color: #000;
}

.topbar-btn-div {
    padding-right: 45px;
}

.topbar-btn-div a {
    color: #fff !important;
}

.topbar-btn-div .new-round-btn {
    font-size: 20px;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}


/* Main content container */
.main-content-container {
    padding: 40px;
    height: calc(100vh - 100px);
}

.main-inner {
    overflow-x: auto;
    min-height: calc(100vh - 200px);
}

/* Custom Scroll bar */
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--green) var(--white);
}

/*  Chrome, Edge, and Safari */
*::-webkit-scrollbar {
    width: 6px;
}

*::-webkit-scrollbar:horizontal {
    width: 8px;
}

*::-webkit-scrollbar-track {
    background: var(--white);
    padding: 5px 0;
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--green);
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb:horizontal {
    border: 5px solid var(--white);
}

/* Flash messages */
.alert-div {
    padding: 10px 40px 0px 40px;
}

.alert-div .alert {
    padding: 10px 15px;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 400;
    position: relative;
}

.alert-div .alert-success {
    background-color: var(--green);
}

.alert-div button {
    position: absolute;
    right: 15px;
    top: 9px;
    border: none;
    background: white;
    font-size: 20px;
    padding: 5;
    display: inline-block;
    padding: 0px 3px;
    border-radius: 2px;
    cursor: pointer;
}

.alert-danger {
    background-color: red;
}

.alert-warning {
    background-color: rgba(255,0,0, 0.5);
    color: #fff;
}

.main-container-overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    display: none;
    transform: translateX(0);
    transition: all 0.3s ease-in;
}

.mobile-menu-btn {
    cursor: pointer;
}

.mobile-menu-btn img {
    width: 26px;
}

.hide-in-desktop {
    display: none !important;
}

.show-sidebar-menu {
    transform: translateX(0) !important;
}

.toggle-main-container-margin {
    margin-left: 221px !important;
}

.show-hide-main-overlay {
    display: block;
    z-index: 99;
}

.project-slide {
    display: block;
}


@media screen and (max-width: 767px) {
    body {
        overflow-x: hidden;
    }
    #sidebar {
        transform: translateX(-100%);
    }
    #main {
        margin-left: 0px;
        min-width: 350px;
    }
    .hide-in-small {
        display: none;
    }
    .hide-in-desktop {
        display: block !important;
    }
    #top-bar {
        background-color: var(--green);
        color: #fff;
    }
    #top-bar > div:last-child {
        min-width: 32px;
    }
    #top-bar .top-bar-title {
        padding-right: 20px;
    }
    #top-bar .top-bar-title h3 {
        font-size: 20px;
    }
    #top-bar div:nth-child(1) {
        padding-left: 10px;
    }
    #top-bar div:nth-child(2),
    #top-bar div:nth-child(2) a {
        color: #fff;
        font-size: 18px;
    }
    #top-bar div:nth-child(2) h3 {
        font-size: 20px;
    }
    .project-cotainer {
        height: calc(100% - 100px) !important;
    }
    .project-container-inner {
        height: calc(100% - 40px) !important;
    }
    .main-content-container .topbar-btn-div {
        padding: 0px;
        margin-top: 10px;
        height: 60px;
    }
    .main-content-container {
        padding: 15px;
    }
    
}