@import url('https://byjaris.com/code/fonts/poppins.css');
@import url('https://byjaris.com/code/fonts/roboto.css');
*,
html {
    scroll-behavior: smooth;
}

th {
    width: max-content !important;
    white-space: nowrap !important;
}


/* :root {
    scrollbar-color: rgb(210, 210, 210) rgb(46, 54, 69) !important;
    scrollbar-width: thin !important;
}

::-webkit-scrollbar {
    height: 12px;
    width: 8px;
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: gray;
    -webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.75);
}

::-webkit-scrollbar-corner {
    background: var(--dark);
} */

body {
    overflow-x: hidden;
    font-family: Poppins;
    margin: 0;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 250px;
    background: #ffffff;
    padding: 6px 14px;
    box-sizing: border-box;
    z-index: 99;
    transition: all 0.5s ease;
}


/* For laptop - Sidebar collapses to 78px */

.sidebar.open {
    width: 78px;
}

#menu-btn {
    visibility: hidden;
}


/* Default state for mobile - sidebar is hidden */

@media (max-width: 720px) {
    #menu-btn {
        visibility: visible;
    }
    .container-fluid {
        padding-left: 5px;
        padding-right: 5px;
    }
    .sidebar {
        margin-left: -100%;
        /* Hide sidebar on mobile */
        transition: margin-left 0.5s ease;
        /* Smooth sliding animation */
    }
}

.sidebar .logo-details {
    height: 60px;
    display: flex;
    align-items: center;
    position: relative;
}

.sidebar .logo-details .complogo {
    width: 175px;
    opacity: 1;
    transition: all 0.5s ease;
}

.sidebar .logo-details .icon {
    opacity: 1;
    transition: all 0.5s ease;
}

.sidebar .logo-details .logo_name {
    color: #229ad5;
    font-size: 20px;
    font-weight: 600;
    opacity: 1;
    transition: all 0.6s ease-in;
}

.sidebar.open .logo-details .icon,
.sidebar.open .logo-details .logo_name,
.sidebar.open .logo-details .complogo {
    opacity: 0;
    transition: all 0.3s ease-in;
}

.sidebar.open .profile .name {
    display: none;
}

.sidebar.open~#header {
    padding: 0px 75px 0px 0px;
}

.sidebar .logo-details #btn {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 22px;
    transition: all 0.4s ease;
    font-size: 23px;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s ease;
    color: #1f3472;
}

.sidebar.open .logo-details #btn {
    text-align: center;
}


/* Sidebar opened on mobile */

.sidebar i {
    color: #575c6a;
    height: 60px;
    min-width: 50px;
    font-size: 28px;
    text-align: center;
    line-height: 60px;
}

.sidebar .nav-list {
    margin-top: 20px;
    padding-left: 0;
    height: 100%;
}

.sidebar .nav-list {
    left: -300px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sidebar .nav-list::-webkit-scrollbar {
    display: none;
}

.sidebar li {
    position: relative;
    margin: 8px 0;
    list-style: none;
}

.sidebar li .tooltip {
    position: absolute;
    top: -20px;
    left: calc(100% + 15px);
    z-index: 9;
    background: #fff;
    color: #575c6a;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    box-sizing: border-box;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 400;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    transition: 0s;
    display: none;
}

.sidebar li:hover .tooltip {
    opacity: 1;
    pointer-events: auto;
    transition: all 0.4s ease;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar.open li .tooltip {
    display: block;
}

.sidebar input {
    font-size: 15px;
    color: #FFF;
    font-weight: 400;
    outline: none;
    height: 50px;
    width: 100%;
    border: none;
    border-radius: 12px;
    transition: all 0.1s ease;
    background: #dfe7ff;
    padding: 0 15px 0 60px;
    box-sizing: border-box;
}

.sidebar.open input {
    width: 50px;
    padding: 0;
    transition: all 1.2s ease;
}

.sidebar .bx-search {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 22px;
    background: #1d3066;
    color: #FFF;
}

.sidebar.open .bx-search:hover {
    background: #1d3066;
    color: #FFF;
}

.sidebar .bx-search:hover {
    background: #1d3066;
    color: #fff;
}

.sidebar li a {
    display: flex;
    height: 100%;
    width: 100%;
    border-radius: 12px;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s ease;
    background: #dfe7ff;
}

.sidebar li a:hover {
    background: #d5defa;
}

.sidebar li a .links_name {
    color: #575c6a;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 1;
    pointer-events: none;
    transition: all ease-in 0.3s;
}

.sidebar.open li a .links_name {
    opacity: 0;
    pointer-events: auto;
    transition: all ease-in 0.3s;
}

.sidebar li a:hover .links_name,
.sidebar li a:hover i {
    transition: all 0.5s ease;
    color: #1d3066;
}

.sidebar li i {
    height: 50px;
    line-height: 50px;
    font-size: 18px;
    border-radius: 12px;
}

.sidebar li.profile {
    position: fixed;
    height: 60px;
    width: 250px;
    left: 0;
    bottom: -8px;
    padding: 10px 14px;
    box-sizing: border-box;
    background: #1d3066;
    transition: all 0.5s ease;
    overflow: hidden;
}

.sidebar.open li.profile {
    width: 78px;
}

.sidebar li .profile-details {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.sidebar li img {
    height: 45px;
    width: 45px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 10px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #fff;
}

.sidebar li.profile .name {
    font-size: 15px;
    font-weight: 400;
    color: #fff;
    white-space: nowrap;
}

.sidebar li.profile .job {
    font-size: 13px;
    font-weight: 400;
    color: #fddb00;
    white-space: nowrap;
}

.sidebar .profile #branch_switch {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: #d5defa;
    height: 60px;
    line-height: 60px;
    border-radius: 0px;
    transition: all 0.5s ease;
}

.sidebar.open .profile #branch_switch {
    width: 78px;
    background: none;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: #d5defa;
    max-width: 100%;
    transition: all 0.5s ease;
}

@media(max-width:720px) {
    .sidebar li.profile {
        margin-left: -100%;
    }
}

.home-section {
    position: relative;
    background: #E4E9F7;
    min-height: 100%;
    top: 0;
    left: 250px;
    width: calc(100% - 250px);
    transition: all 0.5s ease;
    z-index: 2;
}

.sidebar.open~.home-section {
    left: 78px;
    width: calc(100% - 78px);
}

@media (max-width: 420px) {
    .sidebar li .tooltip {
        display: none;
    }
}


/*
*************************************************

---   #HEADER // TOP NAVBAR
   
*************************************************
*/

#header {
    width: 100%;
    height: 72px;
    position: fixed;
    padding: 0 36px 0 270px;
    box-sizing: border-box;
    top: 0;
    left: 0;
    background: #FFF;
    color: #fff;
    z-index: 999;
    transition: all ease-in-out 0.3s;
    font-family: Roboto;
}

#header.open {
    padding: 0 36px 0 111px;
    box-sizing: border-box;
    transition: all 0.5s ease;
}

#header.shrink {
    height: 60px;
    background: #fff;
    box-shadow: 3px 3px 6px #d5defa;
    -webkit-backdrop-filter: saturate(180%) blur(3px);
    backdrop-filter: saturate(180%) blur(3px);
}

.header-space {
    height: 72px;
}

#header .header {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

#header .header .menu-toggle {
    margin-bottom: 13px;
    font-size: 26px;
    text-align: center;
    cursor: pointer;
    transition: all 0.5 ease;
    color: #1f3472;
}

#header .header ul {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    list-style: none;
    padding-left: 0;
}

#header .header .logo {
    width: 70px;
    height: 55px;
    margin-top: 6px;
    margin-left: 10px;
    float: left;
}

#header .header .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all ease-in-out 0.3s;
}

#header .header .menu {
    max-width: 210px;
    float: right;
}

#header .header .menu img:last-child {
    width: 70px;
    transition: all ease-in-out 0.3s;
}


/* ::::::::::::::::::::::::::: ANIMATIONS */

@keyframes dropdown {
    0% {
        opacity: 0;
        transform: scaleY(0.98) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}


/*
-------------------------------------------------

---   MEDIA QUERIES   --->   #HEADER

-------------------------------------------------
*/

@media (max-width: 780px) {
    #header {
        width: 100%;
        height: 66px;
        padding: 0px 0px 0px 9px;
    }
    .header-space {
        height: 66px;
    }
    #header .header .menu {
        max-width: 210px;
        float: right;
    }
    #header .header .menu img {
        width: 70px;
        transition: all ease-in-out 0.3s;
    }
    #header .header .menu img:last-child {
        width: 70px;
        transition: all ease-in-out 0.3s;
    }
    .home-section {
        left: 0px;
        width: 100%
    }
    #header.open {
        padding: 0 10px 0 80px;
    }
}

@media(max-width:360px) {
    #header {
        padding: 0px 0px 0px 9px;
    }
}


/*
*************************************************

---   #HEADER // TOP NAVBAR
   
*************************************************
*/

.main {
    max-width: 100%;
    padding: 14px 14px 0px 265px;
    box-sizing: border-box;
    transition: padding 0.3s ease;
    background: whitesmoke;
    height: 100%;
}

.sidebar.open~.main {
    padding: 14px 14px 0px 90px;
    /* Adjust this to match the collapsed sidebar width */
}

@media (max-width: 768px) {
    .sidebar.expand~.main {
        padding: 10px;
    }
    .main {
        padding: 10px;
    }
}

.main img {
    width: 100%;
    height: 100%;
    border-radius: 9px;
    object-fit: cover;
}

@media (max-width: 599px) {
    .main img {
        max-width: 100%;
        height: 210px;
    }
}

@media (min-width: 600px) and (max-width: 767px) {
    .main {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 180px);
    }
    .main img:nth-of-type(1) {
        grid-column: 1 / span 2;
    }
    .main img:nth-of-type(2) {
        grid-column: 3 / span 2;
    }
    .main img:nth-of-type(3) {
        grid-column: 1 / 1;
        grid-row: 2 / span 2;
    }
    .main img:nth-of-type(4) {
        grid-column: 2 / span 2;
        grid-row: 2 / 2;
    }
    .main img:nth-of-type(5) {
        grid-column: 2 / 2;
        grid-row: 3 / 3;
    }
    .main img:nth-of-type(6) {
        grid-column: 4 / 4;
        grid-row: 2 / 4;
    }
    .main img:nth-of-type(7) {
        grid-column: 3 / 3;
        grid-row: 3 / 3;
    }
}

@media (min-width: 768px) {
    .main {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 180px);
    }
    .main img:nth-of-type(2) {
        grid-column: 2 / span 2;
    }
    .main img:nth-of-type(3) {
        grid-column: 4 / 4;
        grid-row: 1 / span 3;
    }
    .main img:nth-of-type(4) {
        grid-column: 1 / 1;
        grid-row: 2 / span 2;
    }
    .main img:nth-of-type(5) {
        grid-column: 2 / 2;
        grid-row: 2 / 2;
    }
    .main img:nth-of-type(6) {
        grid-column: 3 / 3;
        grid-row: 2 / 2;
    }
    .main img:nth-of-type(7) {
        grid-column: 2 / span 2;
        grid-row: 3 / 3;
    }
}

.container-fluid {
    margin-bottom: 75px;
}


/* Style for the message container */

#message-container {
    position: fixed;
    bottom: 20px;
    right: -300px;
    z-index: 99999 !important;
    width: 300px;
    transition: right 0.5s ease-in-out;
    /* Smooth slide-in transition */
}


/* Base style for the messages */

.message {
    background-color: #fff;
    color: #333;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    /* Hidden by default */
}


/* Success message */

.success {
    background-color: #3bb858e2;
    color: white;
}


/* Error message */

.error {
    background-color: #df717cd9;
    color: white;
}


/* Loading message */

#loading-message {
    background-color: #f2bf26e3;
    color: white;
}


/* Make the message appear smoothly */

.message.show {
    display: block;
    animation: slide-in 0.5s forwards;
}


/* Slide-in animation */

@keyframes slide-in {
    from {
        right: -300px;
    }
    to {
        right: 20px;
    }
}

.easy-login img {
    width: 100%;
    height: 250px;
    object-fit: contain;
}

.easy-login p {
    color: #333;
    margin: 15px 10px;
    font-size: 12px;
}

.easy-login a {
    font-size: 14px;
    font-weight: 500;
    color: #229ad5;
    padding: 10px;
    text-align: center;
    border-radius: 7px;
    margin-top: 10px;
    text-decoration: none;
}