/* ========================= SPLASH SCREEN ========================= */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000; 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.6s ease-in-out;
}

.splash-content {
    text-align: center;
    animation: fadeUp 1s ease-out;
}

.splash-logo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 0 25px rgba(16,185,129,0.5);
}

.splash-title {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 700;
}

.splash-tagline {
    color: #10b981;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Loader bar */
.loader-bar {
    width: 160px;
    height: 4px;
    background: #1a1a1a;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.loader-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: #10b981;
    animation: slide 1.6s infinite linear;
}

/* Animations */
@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(300%); }
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}



/*set the background color of the whole page*/
body{
    background-color: #F2F3F7;
   
}

/*set the stylings for the whole sidebar*/
.side-bar {
    padding: 1% 1% 1% 0.8%;
    font-size: 15;
    width: 240px;
    height: 100vh;
    position: fixed; /*fix sidebar*/
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: #212529;
    display: flex;
    flex-direction: column;
    transition: 1s;
}

/*each item in the sidebar containing both image and text*/
.nav-item{
    padding: 1%;
}

/*inside the nav-item containing both image and text*/
.nav-link{
    display: flex;
    align-items: center;
}

/*text in each nav-link item*/
.nav-text{
    margin-left: 10px;
}

/*represents each nav-item which is needed when toggling the sidebar*/
.nav-item-hover {
position: relative;
}

/* Default sidebar styling for each item*/
.nav-pills .nav-link {
    color: rgb(255, 255, 255);
    transition: 1s;
}

/* Active link */
.nav-pills .nav-link.active {           /* Text color on active */
    background-color: rgba(0, 132, 66, 0.576);
    border-radius: 5px;
}

/* Hover effect for non-active links */
.nav-pills .nav-link:hover {
    background-color: #03653493; /* Slightly darker green */
}

/*fixing the logout button to the bottom*/
.logout{
    position: fixed-bottom;
}


/*the top bar of the page which contains the search bar and other details*/
.topbar-main{
    transition: 1s;
    padding: 0.5% 2% 0.5% 2%;
    
    background-color: white;
    color: #015129e4;
    position: fixed;
    top:0;
    left: 240px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 240px);
    box-shadow: 0 0px 5px 1px rgba(0, 0, 0, 0.2);
}

.topbar-left{
    width: 50%;
    justify-content: space-between;
}

/*the name of the page in the top bar*/

/* .page-name {
font-size: 15px;
font-weight: 500;
color:#1e293b;
} */

/* PAGE TITLE IMPROVEMENTS */

.page-name{
    font-size:16px;
    font-weight:600;
    color:#1e293b;
}

.page-divider{
    margin:0 6px;
    color:#94a3b8;
}

.page-current{
    color:#015129e4;
}

/* PROFILE SECTION */

.profile-wrapper{
    gap:10px;
    padding:4px 10px;
    border-radius:8px;
    transition:0.2s;
}

.profile-wrapper:hover{
    background:#f1f5f9;
}

.profile-img{
    width:34px;
    height:34px;
}

.profile-text{
    display:flex;
    flex-direction:column;
    line-height:1.1;
}

.profile-name{
    font-size:13px;
    font-weight:700;
}

.profile-role{
    font-size:11px;
    color:#64748b;
}

/* NOTIFICATION ICON */

.notification-wrapper{
    position:relative;
    cursor:pointer;
}

.notification-icon{
    width:22px;
    height:22px;
}

.notification-dot{
    position:absolute;
    top:-3px;
    right:18px;
    width:8px;
    height:8px;
    background:red;
    border-radius:50%;
}

/*the sidebar toggle icon*/
.sidebar-toggle {
    font-size: 22px;
    cursor: pointer;
    color: #212529;
}

/***this section handles the css when the side bar is toggled***/

/*reduce the width of the side bar*/
.sidebar-collapsed .side-bar {
    width: 4.5rem;
    transition: 1s;
}

/*hide all the text in the sidebar*/
.sidebar-collapsed .nav-text,
.sidebar-collapsed .side-bar-hd span {
    display: none;
    
}

/*center the icon items in the sidebar*/
.sidebar-collapsed .nav-link {
    justify-content: center;
    align-items: center;
    padding: 10px;
}

/*adjust the topbar with the side bar*/
.sidebar-collapsed .topbar-main {
    left: 4.5rem;
    width: calc(100% - 4.5rem);
    transition: 1s;
}

/*adjust the main content section with the sidebar*/
.sidebar-collapsed .main-content {
    margin-left: 4.5rem;
}

/*display the text in the sidebar on hover*/
.sidebar-collapsed .nav-items-hover:hover .nav-text {
    display: block;
    position: absolute;
    left: 90%;
    width: 200px;
    margin-left: 12px;
    background-color: #212529; 
    padding: 28% ;
    font-size: 14px;
    font-weight: 500; 
    transition: 1s;   
}

/*change color of the navpill text on hover*/
.sidebar-collapsed .nav-pills .nav-item-hover:hover .nav-text{
    background-color: #012f18e4;        
} 

/************/

/*margin for the notification icon*/

.notification-icon{
    margin-right: 20;
    width: 25px;
    height: 25px;
}

/*the profile section in the topbar*/
.profile{
    margin-right: 10;
    font-size: 12px;
    color: #015129e4;
}

/* Main content shifted to the right due to sidebar*/
.main-content {
    margin-left: 240px;
    margin-top: 7vh;
}

/*stylings for the name "saveonix admin" in the side bar*/
.side-bar-hd{
    padding: 2% 1% 2% 1%;
    align-items: center;
}


@media screen and (max-width: 992px)  {
    /* Sidebar collapses */

    /*reduce the width of the side bar*/
    .side-bar {
        width: 4.5rem;  
    }

    /* Hide text */
    .nav-text,
    .side-bar-hd span {
        display: none;
    }

    /* Center icons in the sidebar*/
    .nav-link {
        justify-content: center;
        align-items: center;
        padding: 10px;
    }

    /*display the text in the sidebar on hover*/
    .nav-items-hover:hover .nav-text {
        display: block;
        position: absolute;
        left: 90%;
        width: 200px;
        margin-left: 12px;
        background-color: #212529; 
        padding: 25% ;
        font-size: 14px;
        font-weight: 500;
        transition: 1s;        
    }

    /*change color of the navpill text on hover*/
    .nav-pills .nav-item-hover:hover .nav-text{
        background-color: #012f18e4;        
    } 

    /* Topbar shifts left */
    .topbar-main {
        left: 4.5rem;
        width: calc(100% - 4.5rem);
    }

    /* Main content shifts left */
    .main-content {
        margin-left: 4.5rem;
        margin-top: 5.6vh;
    }

    .profile{
        font-size: 12px;
    }

    .notification-icon{
        width: 20px;
        height: 20px;
    }

}

@media screen and (max-width: 680px)  {
    .main-content {
        margin-top: 6.3vh;
    }

    .page-name{
        font-size: 2.5vw;
        
    }
    
    .profile{
        font-size: 10px;
    }
}

@media (max-width:620px){
    .page-name{
        display: none;
    }
}





