* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
@media (min-width: 768px) {
    .px-md-5 {
        padding-right: 0rem !important;
        padding-left: 0rem !important;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
    body {
        padding-left: 0px
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    /*padding-top: 56px;*/  
    /*padding-left: 20px;*/  
    padding-right: 20px;
    margin-bottom: 60px; 
}

/* Topbar */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background: linear-gradient(to right, #000000, #ff6a00);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1050;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

    .topbar .title {
        font-size: 18px;
        font-weight: 500;
    }

    .topbar .user-menu {
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .topbar .user-menu i {
            font-size: 18px;
        }

/* Sidebar */
.sidebar {
    position: fixed;
    height: 100vh;
    top: 50;
    left: 0;
    width: 220px;
   /* background: rgba(0, 44, 89, 0.9);
    background-size: 200% 200%;*/
    animation: gradientBG 6s ease infinite;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);  
    z-index: 1000;
    min-height: 100vh;
    backdrop-filter: blur(4px);
   /* color: #ffffff;*/
}

    .sidebar .logo {
        font-size: 26px;
        font-weight: bold;
        color: #ff6a00;
        margin-bottom: 40px;
    }

    .sidebar .menu-group {
        width: 100%;
        padding: 0 20px;
        margin-bottom: 30px;
    }

        .sidebar .menu-group h6 {
            font-size: 0.9rem;
            letter-spacing: 1px;
            padding: 0.75rem 1rem;
            background-color: #2c2c3e;
            color: #bbb;
            margin-bottom: 0;
            text-transform: uppercase;
            cursor: pointer;
            user-select: none;
        }

            .sidebar .menu-group h6 .chevron {
                transition: transform 0.3s;
            }

            .sidebar .menu-group h6[aria-expanded="true"] .chevron {
                transform: rotate(180deg);
            }

    .sidebar a {
        padding: 6px 10px;
        width: 100%;        
        text-decoration: none;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 1rem;
        transition: background 0.2s ease, color 0.2s ease;
    }

        .sidebar a:hover {
            background-color: #ffffff;
            color: cornflowerblue;
        }

    .sidebar i {
        width: 20px;
        text-align: center;
    }
    .sidebar a.nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
    }
.menu-group .collapse .ps-3 {
    padding-left: 1.5rem !important;
}



/* Sidebar collapsed styling (optional, for smoother look) */

#sidebar.collapsed {
    width: 50px; /* Smaller width when collapsed */
    text-align: center;
    transition: all 0.3s ease;
}

#sidebar.collapsed .nav-link {
    text-align: center; /* Align icons to center */
}

#sidebar.collapsed .sidebar-heading {
    text-align: center;
}

/* Optional: to hide text when collapsed */
#sidebar.collapsed .sidebar-text {
    display: none;
}

#sidebar .nav-link, #sidebar .sidebar-heading {
    text-align: left; /* Align text to left when expanded */
}

.sidebar-text {
    white-space: nowrap; /* Prevent text from wrapping */   
    width: 100%;
}



/* Content Section */
.content {
    /*padding: 40px;
    padding-top: 60px;*/
}


/*#mainContent {
    padding: 40px;
    padding-top: 60px;
    transition: margin-left 0.3s;
}*/

/* Landing Section */
.landing-container {
/*    padding: 60px 30px;
    background: linear-gradient(to right, #4facfe, #00f2fe);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);*/
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
    text-align: center;
    padding: 10px 0;
    color: #6c757d;
    z-index: 999;
}



/* Animation */
@keyframes gradientBG {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

/* Icons */
.icon {
    width: 64px;
    height: 64px;
    background-image: url('/images/SignIn.png');
    background-size: cover;
    display: inline-block;
}
.row {
    margin-left: calc(1 * var(--bs-gutter-x));
    margin-top: calc(.25 * var(--bs-gutter-x)); 
    margin-right: calc(.25 * var(--bs-gutter-x))
}

.dashboard-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.dashboard-card-container {
    /*white-space: nowrap;*/
    padding: 1rem 0;
    min-width: max-content;
}

/* Only inner task card hover effect */
.hover-shadow-lg {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

    .hover-shadow-lg:hover {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        transform: translateY(-5px);
    }



/*Dashboard tooltip===========================================*/
.tooltip-inner { /* Customize Bootstrap tooltip appearance */
    max-width: 320px; /* wider */
    padding: 10px 15px;
    color: #f8f9fa; /* light text */
    background-color: #343a40; /* dark bg */
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    font-size: 0.9rem;
    text-align: left;
    white-space: normal; /* wrap text */
    line-height: 1.4;
}
.tooltip-inner strong {
    color: #ffc107; /* highlight label */
    margin-right: 5px;
}
.tooltip-arrow::before {
    border-top-color: #343a40 !important; /* match tooltip background */
}
/*Dashboard tooltip===========================================*/

