/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;  /* Prevent horizontal scroll */
}

.progress-bar {
    margin-bottom: 20px;
}


#video-player {
    width: 100%;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    font-size: 16px;
}

/* Flexbox layout */
.container-fluid {
    display: flex;
    width: 100%;
}

.sidebar {
    width: 400px;
    position: fixed;
    top: 0;
    left: -250px; /* Initially hidden */
    bottom: 0;
    background-color: #fbfbfc;
    color: rgb(17, 17, 17);
    padding: 20px;
    transition: left 0.3s ease-in-out;
    z-index: 1;
    overflow-y: auto;
}

.main-content {
    margin-left: 0;
    width: 100%; /* By default, use full width */
    transition: margin-left 0.3s ease-in-out;
    padding: 20px;
}

/* Sidebar toggle button styles */


/* Mobile styles */

#closeSidebarBtn {
    display: block; /* Show the close button */
}



.main-content.active {
    margin-left: 250px; /* Main content shifts when sidebar is visible */
}

/* Close Button Styles */
#closeSidebarBtn {
    background-color: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
}
/* Floating Menu Styles */
.floating-menu {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #007bff;
    color: white;
   
    border-radius: 25px;
    cursor: pointer;
    text-align: center;
    font-size: 18px;
    z-index: 1000;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.floating-menu span {
    display: block;
}

.floating-menu:hover {
    width: 200px;
}

.floating-menu:hover #floatingMenuText {
    opacity: 1;
}

#floatingMenuText {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Sidebar */
.sidebar {
    width: 300px;
    position: fixed;
    top: 0;
    left: -300px; /* Initially hidden */
    bottom: 0;
    background-color: #ffffff;
    color: rgb(15, 15, 15);
    padding: 20px;
    transition: left 0.3s ease-in-out;
    z-index: 1;
    overflow-y: auto;
}

.sidebar.active {
    left: 0; /* Sidebar visible */
}

.main-content {
    margin-left: 0;
    width: 100%;
    transition: margin-left 0.3s ease-in-out;
    padding: 20px;
}

.main-content.active {
    margin-left: 300px; /* Main content shifts when sidebar is visible */
}

/* Close button inside sidebar */
#closeSidebarBtn {
    background-color: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
}

/* Pop-up Icon (Mobile) */
#popupIcon {
    display: none;
    position: fixed;
    top: 10px;
    left: 20px;
    background-color: #f3f7fa;
    color: rgb(24, 23, 23);
    padding: 10px;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
}

@media (max-width: 768px) {
    #popupIcon {
        display: block;
    }

    #closeSidebarBtn {
        display: none;
    }
}
/* Floating Menu Styles */
.floating-menu {
    position: fixed;
    left: 0px;
    top: 30%;
    transform: translateY(-50%);
    background-color: #ffffff;
    color: rgb(8, 44, 252);
    padding: 10px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center; /* Align icon and text vertically */
    gap: 8px; /* Space between the icon and the text */
    z-index: 1000;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.floating-menu i {
    font-size: 20px;
    transition: transform 0.3s ease;

}

/* Initially hide the text */
.floating-menu span {
    display: none; /* Hide the text by default */
}

/* Show the text when hovering */
.floating-menu:hover span {
    display: inline-block; /* Show text when hovered */
    opacity: 1;
    transition: opacity 0.3s ease;
    color: #ffffff;
}

.floating-menu:hover {
    width: 200px; /* Expand the width to fit the text */
}

.floating-menu:hover i {
    transform: translateX(10px); /* Slightly move the icon when hovered */
}

/* Add hover effect on icon */
.floating-menu:hover {
    background-color: #4542f5;
    color: #ffffff;
}
