/* Global Body Styling */

body {
    background-color: #f8f9fa;
    font-family: Arial, sans-serif;
    margin: 0;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background-color: #DA4D15;
    color: #fff;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    padding: 15px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    /* Enable scrolling */
    max-height: 100vh;
    /* Prevent overflow beyond viewport */
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #fff;
}

.sidebar-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* .sidebar-menu li {
    margin: 10px 0;
} */

.sidebar-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sidebar-menu a:hover {
    background-color: #900701;
}

/* Close Button */
.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

#sidebarBtn {
    margin: 0px;
    padding: 5px 10px;
    cursor: pointer;
}

/* Main Content */
.main-content {
    transition: margin-left 0.3s ease-in-out;
}

.sidebar.active+.main-content {
    margin-left: 250px;
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: #333;
}

.nav-link.active {
    color: #6c63ff;
    font-weight: bold;
}

.nav-link:hover {
    color: #4a47e0;
}

.btn-outline-primary {
    border-color: #6c63ff;
    color: #6c63ff;
}

.btn-outline-primary:hover {
    background-color: #6c63ff;
    color: #fff;
}

.btn-primary {
    background-color: #6c63ff;
    border: none;
}

.btn-primary:hover {
    background-color: #4a47e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .sidebar-menu a {
        font-size: 14px;
    }

    .navbar-brand img {
        height: 30px;
    }

    .btn-outline-primary {
        font-size: 14px;
        padding: 5px 10px;
    }

    .btn-primary {
        font-size: 14px;
        padding: 5px 10px;
    }
}

.banner {
    width: 100%;
    height: 250px;
    /* Adjust the height as needed */
    background: linear-gradient(to right, #900701, #900701);
    /* Gradient background */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    /* Adds spacing below the banner */
}

.banner h1 {
    margin: 0;
    font-family: Arial, sans-serif;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    /* Optional shadow effect */
}

.required {
    color: red;
}

.main-footer {
    margin-top: 20px;
    font-size: 14px;
}

.main-footer {
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    color: #869099;
    padding: 1rem;
}

/* ============ 21-01-2025 ========= */

/* .sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
} */

.sidebar-menu .menu-item {
    position: relative;
}

.sidebar-menu>li {
    padding: 10px;
    /* border-bottom: 1px solid #ddd; */
}

.sidebar-menu>li>a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    font-weight: bold;
}

.sidebar-menu .submenu {
    display: none;
    list-style: none;
    padding-left: 10px;
    background-color: #2a2a8f;
    margin: 5px 0;
    border-left: 3px solid #4a47e0;
}

.sidebar-menu .submenu li {
    border-bottom: 1px solid #444;
}

.sidebar-menu .submenu li a {
    padding: 8px 15px;
    color: #ffffff;
    display: block;
    text-decoration: none;
    font-size: 14px;
}

.sidebar-menu .submenu li a:hover {
    background-color: #4a47e0;
    color: #fff;
}

.sidebar-menu .menu-item:hover .submenu {
    display: block;
}

/* Ensure Sidebar Scrolling */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #4a47e0;
    border-radius: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: #000066;
}

.sidebar-menu>li {
    padding: 10px;
}

.sidebar-menu>li>a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    font-weight: bold;
    cursor: pointer;
}

.sidebar-menu .menu-item:hover>.submenu {
    display: block;
}

/*sign out*/
.navbar-custom {
    background-color: #1A2A62;
    padding: 0px;
}

.dropdown-toggle img {
    border: 1px solid black;
}

.dropdown-menu {
    width: 240px;
    text-align: center;
    /* background-color: #1A2A62; */
}

.dropdown-menu img {
    margin: 10px auto;
    border: 1px solid black;
}

.dropdown-item {
    padding: 5px;
}


/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.dark-mode .navbar {
    background-color: #1f1f1f !important;
    border-bottom: 1px solid #333;
}

.dark-mode .sidebar {
    background-color: #1f1f1f;
    color: #ffffff;
}

.dark-mode .sidebar-menu a {
    color: #ffffff;
}

.dark-mode .card {
    background-color: #1f1f1f;
    color: #ffffff;
    border: 1px solid #333;
}

.dark-mode .dropdown-menu {
    background-color: #1f1f1f;
    color: #ffffff;
}

.dark-mode .dropdown-item {
    color: #ffffff;
}

.dark-mode .dropdown-item:hover {
    background-color: #333;
    color: #ffffff;
}

/* Marquee animation for the welcome text */
.marquee {
    overflow: hidden;
    position: relative;
    background: transparent;
    /* margin: 20px 0; */
    width: 100%;
    height: 210px;
    background: linear-gradient(to right, #DA4D15, #900701);

}

.marquee h1 {
    display: inline-block;
    white-space: nowrap;
    font-size: 2rem;
    color: rgb(255, 255, 255);
    animation: marquee 10s linear infinite;
    padding-top: 100px;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.thumbnail {
      width: 60px;
      height: 60px;
      cursor: pointer;
      transition: transform 0.3s ease;
      object-fit: cover;
    }
    .thumbnail:hover {
      transform: scale(1.1);
    }
    /* Modal styles */
    #popup-modal {
      display: none;
      position: fixed;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      background: white;
      border: 1px solid #ccc;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
      z-index: 1000;
      padding: 10px;
      max-width: 90%; max-height: 90%;
      overflow: auto;
    }
    #popup-modal img {
      display: block;
      margin: 0 auto;
      max-width: 100%;
      height: auto;
      transition: transform 0.3s ease;
    }
    #popup-modal img:hover {
      transform: scale(1.2);
      cursor: zoom-in;
    }
    #overlay {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.7);
      z-index: 999;
    }