    /* Loader styling */
    .loader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;

        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999; /* High z-index to overlay all content */
    }
    
    .loader img {
        width: 200px; /* Adjust size as needed */
        height: 200px; /* Adjust size as needed */
    }
    
    .top-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: #ffffff;
        padding: 10px 20px;
        height: 70px; /* Increase height for top-nav to accommodate larger search box */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1001;
        border-bottom: 1px solid #ddd;
    }
    .top-nav img {
        height: 60px;
    }
    .search-box {
        flex: 1;
        max-width: 800px;
        padding: 10px 20px;
        border-radius: 30px;
         border: 1px solid #ddd;
        background-color: #f1f3f4;
           box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .notification-icon {
        margin-left: 10px; /* Space between search box and notification icon */
        font-size: 1.5rem;
        color: #333;
        position: relative;
    }
    
    .notification-icon .badge {
        position: absolute;
        top: -5px;
        right: -5px; /* Adjusted to avoid touching the edge */
        background-color: red;
        color: white;
        padding: 1px 5px; /* Smaller badge size */
        font-size: 0.8rem; /* Slightly smaller text */
        border-radius: 50%;
    }
    
/*================================*/
/* START Styles for the login page */
/*================================*/

:root {
  --main-bg-color: #FFFFFF;
  --main-text-color: #2e7d32; /* Sidebar green */
  --main-text-color-contrast: #FFFFFF;
  --border-bg-color: #e0f7df;
  --gradient-from-color: #66bb6a;
  --gradient-to-color: #2e7d32;
  --gradient-from-color-hover: #43a047;
  --gradient-to-color-hover: #1b5e20;
}

body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--main-bg-color);
    margin: 0;
}

@media (max-height: 600px) {
  body {
    align-items: flex-start;
    padding-top: 20px;
  }
}

.login-container {
    width: 100%;
    max-width: 400px;
    margin: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
    background-color: var(--main-bg-color);
    padding: 20px;
}

.login-heading {
    font-size: 24px;
    font-weight: bold;
    margin: 5px 0;
    color: var(--main-text-color);
}

.center-logo {
    width: 150px;
    margin: 10px auto;
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    text-align: left;
    color: var(--main-text-color);
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #a5d6a7; /* Light green border */
    background-color: #f1f8f4; /* Soft background */
    border-radius: 4px;
    box-sizing: border-box;
}

.loginType-container label {
    color: var(--main-text-color);
}

.login-button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(to right, var(--gradient-from-color), var(--gradient-to-color));
    color: var(--main-text-color-contrast);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.3s ease;
}

.login-button:hover {
    background: linear-gradient(to right, var(--gradient-from-color-hover), var(--gradient-to-color-hover));
}

/*================================*/
/* END Styles for the login page */
/*================================*/



    @media (max-width: 768px) {
        .top-nav {
            padding-left: 10px;
            padding-right: 10px;
        }
    
        .search-box {
            margin: 0 10px; /* Add margin on left and right for small screens */
            max-width: 100%; /* Full width with margin */
        }
    
        .notification-icon {
            margin-left: 5px; /* Adjust spacing on small screens */
        }
    
        .notification-icon .badge {
            right: 0; /* Align badge correctly without going off-screen */
            padding: 1px 4px; /* Slightly smaller padding */
        }
    }

     /* Sidebar styling */
    .sidebar {
    position: fixed;
    z-index: 1000;
    top: 60px; /* Adjusted to fit below the fixed top-nav */
    left: 0;
    width: 250px;
    min-height: calc(100vh - 60px); /* Adjust height to fit below the top-nav */
    background-color: #ffffff;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    }
    
    .sidebar.active {
    transform: translateX(0); /* Show sidebar when active */
    }
    
    .sidebar .nav-link {
    color: #333;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 0 25px 25px 0; /* Rounded on the right side */
    margin-bottom: 5px;
    transition: background-color 0.3s, color 0.3s, border-left 0.3s;
    text-decoration: none; /* Remove underline on links */
    }
    
    .sidebar .nav-link i {
    margin-right: 8px; /* Space between icon and text */
    font-size: 1.1rem;
    }
    
    .sidebar .nav-link.active,
    .sidebar .nav-link:hover {
    background-color: #e0f7df; /* Light green background for active and hover link */
    color: #2e7d32; /* Dark green for text in active and hover link */
    border-left: 4px solid #2e7d32; /* Green border on the left side */
    }
    
    .sidebar .nav-link.active i,
    .sidebar .nav-link:hover i {
    color: #2e7d32; /* Icon color for active and hover */
    }
    /* Main content styling */
    .content {
        margin-left: 250px;
        padding-top: 80px;
        padding-left: 20px;
        padding-right: 20px;
        overflow-y: auto;
        height: calc(100vh - 60px);
        background-color: #f8f9fa;
    }
    @media (max-width: 768px) {
        .content {
            margin-left: 0;
        }
    }
    
     .page-heading {
        font-size: 1.5rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 20px;
    }

    /* Hamburger menu for mobile */
    .hamburger-menu {
        display: none;
        font-size: 1.5rem;
        cursor: pointer;
        margin-right: 20px;
    }
    @media (max-width: 768px) {
        .hamburger-menu {
            display: block;
        }
    }

    /* Override sidebar on large screens */
    @media (min-width: 768px) {
        .sidebar {
            transform: translateX(0);
        }
    }

    /* Card styling */
    .box-container {
        background-color: #ffffff;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
    }
    .learning-path {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        padding: 10px 0;
    }
    .learning-path-card {
        background-color: #e8efff;
        border-radius: 10px;
        padding: 20px;
        min-width: 150px;
        text-align: center;
    }
    .learning-path-card:nth-child(2n) {
        background-color: #d0e8ff;
    }
    .learning-path-card:nth-child(3n) {
        background-color: #fff5e1;
    }

    

    /* Grid Layout for Classes */
    .classes-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 cards per row on large screens */
        gap: 20px;
    }
    
    /* Card Styling */
    /* Card Styling */
    .class-card {
        border-radius: 10px;
        padding: 20px;
        text-align: center;
        transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        cursor: pointer; /* Add this to show hand pointer */
    }
    
    /* Hover Effect */
    .class-card:hover {
        transform: scale(1.05);
        box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
    }
    
    /* Background colors for cards */
    .class-card:nth-child(2n) {
        background-color: #d0e8ff; /* Light Blue */
    }
    
    .class-card:nth-child(3n) {
        background-color: #fff5e1; /* Light Yellow */
    }
    
    .class-card:not(:nth-child(2n)):not(:nth-child(3n)) {
        background-color: #e8efff; /* Default Light Blue */
    }
    
    .class-card:hover {
        transform: scale(1.05);
        box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
    }
    
    /* Icon Styling */
    .class-icon {
        font-size: 2rem;
        color: #4caf50; /* Green color for icons */
        margin-bottom: 10px;
    }
    
    /* Responsive Design */
    @media (max-width: 768px) {
        .classes-grid {
            grid-template-columns: repeat(2, 1fr); /* 2 cards per row on medium screens */
        }
    }
    
    @media (max-width: 576px) {
        .classes-grid {
            grid-template-columns: 1fr; /* 1 card per row on small screens */
        }
    }





/* 404 Error Page Styling */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(to bottom, #f1f3f4, #e0f7df);
    text-align: center;
    overflow: hidden;
}

.error-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
}

.error-content h1 {
    font-size: 100px;
    color: #ff6b6b;
    margin: 10px 0;
    animation: pulse 1.5s infinite;
}

.error-content p {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.go-home-btn {
    display: inline-block;
    background: #2e7d32;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.go-home-btn:hover {
    background: #1b5e20;
}

/* Keyframe Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Design for 404 Page */
@media (max-width: 768px) {
    .error-content {
        padding: 20px;
        max-width: 90%; /* Adjust width for smaller screens */
    }

    .error-content h1 {
        font-size: 80px; /* Scale down heading */
    }

    .error-content p {
        font-size: 16px; /* Adjust paragraph font size */
    }
    
    .go-home-btn {
        font-size: 14px; /* Adjust button size */
        padding: 8px 15px; /* Adjust padding */
    }
}

@media (max-width: 576px) {
    .error-content h1 {
        font-size: 60px; /* Further reduce heading size for very small screens */
    }

    .error-content p {
        font-size: 14px; /* Smaller text for paragraphs */
        margin-bottom: 15px;
    }

    .go-home-btn {
        font-size: 12px; /* Make button text smaller */
        padding: 6px 10px;
    }
}


.page-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #198754;
  margin: 0;              /* Remove default margin */
  line-height: 1.2;       /* Match input height if needed */
  padding-left: 15px;     /* Optional spacing from logo */
  display: flex;
  align-items: center;    /* 🔥 Align text vertically */
}


/*Lessons Styles  */
/* General Content Wrapper */
.content-wrapper {
    padding: 5px;
}

/* Progress Bar Styling */
.lesson-progress {
    margin-bottom: 20px;
}
.progress-bar {
    background: #f0f0f0;
    border-radius: 5px;
    height: 10px;
    width: 100%;
    overflow: hidden;
}
.progress {
    background: #4caf50;
    height: 100%;
    transition: width 0.3s;
}

/* Lesson Grid Layout */
.lesson-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.lesson-category {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    background-color: #fff;
}
.lesson-category h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #333;
}

/* Lessons in each Category */
.lessons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.lesson-card {
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    text-align: center;
    background-color: #f9f9f9;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lesson-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
.lesson-card p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

/* Lesson Status */
.status {
    font-size: 0.9rem;
    margin-top: 5px;
    color: #777;
}
.status.completed {
    color: #4caf50;
    font-weight: bold;
}



















    /* User Info styling */
    .user-info {
        position: absolute;
        bottom: 20px;
        left: 20px;
        cursor: pointer;
        text-align: center;
        display: flex;
        align-items: center;
        gap: 5px; /* Add spacing between elements */
    }
    .user-info img {
        border-radius: 50%;
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    .user-details {
        display: flex;
        flex-direction: column;
    }
    
    .user-info {
        display: flex;
        align-items: center;
        
    }
    
    #chevronIcon {
        margin-left: 12px; /* Adjust this as needed for more spacing */
    }

    .profile-dropdown {
        position: absolute;
        bottom: 80px;
        left: 20px;
        width: 200px;
        display: none;
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
        padding: 10px;
        z-index: 1000;
    }
    
    .profile-dropdown p {
        color: #333;
        padding: 8px 15px;
        border-radius: 0 25px 25px 0;
        margin: 0;
        cursor: pointer;
        transition: background-color 0.3s, color 0.3s, border-left 0.3s;
        display: flex;
        align-items: center;
    }
    
    .profile-dropdown p i {
        margin-right: 8px;
        color: #333;
    }
    
    .profile-dropdown p:hover {
        background-color: #e0f7df; /* Light green background on hover */
        color: #2e7d32; /* Dark green text on hover */
        border-left: 4px solid #2e7d32; /* Green border on the left side */
    }
    
    .profile-dropdown p:hover i {
        color: #2e7d32; /* Icon color on hover */
    }
    
    .footer {
        background-color: #ffffff; /* White background */
        padding: 15px 20px; /* Add padding to the top/bottom and sides */
        font-size: 0.875rem; /* Slightly smaller font size */
        color: #6c757d; /* Muted text color */
        position: fixed; /* Make it stick to the bottom */
        width: 100%;
        bottom: 0;
    }
    
    .footer .container {
        padding-left: 15px; /* Adjust this for left padding */
    }