/* --- Navbar (Top) --- */
        .navbar {
            background-color: #ffffff;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            padding: 15px 0;
            position: fixed; /* Make it sticky */
            width: 100%;
            top: 0;
            left: 0;
            z-index: 1030; /* Below sidebar, above content */
        }

        .navbar-brand {
            display: flex;
            align-items: center;
        }

        .navbar-brand img {
            max-height: 60px; /* Increased size for better visibility */
            filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
            transition: transform 0.3s ease;
            margin-right: 10px; /* Space between logo and text */
        }

        .navbar-brand img:hover {
            transform: scale(1.08); /* Slightly more pronounced hover effect */
        }

        .navbar-brand .brand-text {
            font-size: 1.8em;
            font-weight: 800;
            color: #1a2a3a;
            line-height: 1;
        }

        .navbar-nav .nav-link {
            color: #555;
            font-weight: 500;
            margin: 0 15px;
            position: relative;
        }

        .navbar-nav .nav-link::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -5px;
            width: 0;
            height: 2px;
            background-color: #3498db;
            transition: width 0.3s ease;
        }

        .navbar-nav .nav-link:hover::after,
        .navbar-nav .nav-link.active::after {
            width: 100%;
        }

        /* --- Sidebar (Left) --- */
        .sidebar {
            height: 100%;
            width: 0; /* Initially closed */
            position: fixed;
            z-index: 1040; /* Above main content, below overlay */
            top: 0;
            left: 0;
            background-color: #2c3e50; /* Dark background */
            overflow-x: hidden;
            transition: width 0.5s cubic-bezier(0.7, 0, 0.3, 1); /* Smoother animation */
            padding-top: 20px;
            box-shadow: 2px 0 15px rgba(0, 0, 0, 0.4);
            display: flex;
            flex-direction: column;
            color: #ecf0f1;
        }

        .sidebar.open {
            width: 280px; /* Open width */
        }

        .sidebar-closebtn {
            position: absolute;
            top: 15px;
            right: 25px;
            font-size: 36px;
            color: #ecf0f1;
            text-decoration: none;
            cursor: pointer;
            transition: 0.3s;
        }

        .sidebar-closebtn:hover {
            color: #e74c3c;
        }

        .sidebar-header {
            text-align: center;
            padding: 20px;
            margin-bottom: 30px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .sidebar-logo-container img {
            max-width: 180px; /* Size of logo in sidebar */
            height: auto;
            margin-bottom: 15px;
            filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
            border-radius: 10px;
        }

        .sidebar-header h3 {
            color: #ecf0f1;
            margin-bottom: 5px;
            font-weight: 700;
            font-size: 1.5em;
        }

        .sidebar-header p {
            color: #bdc3c7;
            font-size: 0.9em;
            margin-bottom: 0;
        }

        .sidebar-nav {
            flex-grow: 1; /* Allow nav to take available space */
            padding: 0 20px;
        }

        .sidebar-nav a {
            padding: 15px 25px;
            text-decoration: none;
            font-size: 1.1em;
            color: #ecf0f1;
            display: flex; /* Use flex for icon and text alignment */
            align-items: center;
            transition: 0.3s;
            border-radius: 8px;
            margin-bottom: 8px;
        }

        .sidebar-nav a i {
            margin-right: 15px;
            font-size: 1.2em;
            color: #3498db; /* Icon color */
        }

        .sidebar-nav a:hover {
            color: #ffffff;
            background-color: #34495e; /* Darker background on hover */
            transform: translateX(5px);
        }

        /* Overlay for main content when sidebar is open */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.4);
            z-index: 1035; /* Between navbar and sidebar */
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.5s;
        }

        .overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Main content wrapper */
        #main-content {
            transition: margin-left 0.5s cubic-bezier(0.7, 0, 0.3, 1);
            padding-top: 90px; /* Space for fixed navbar */
        }

        /* Adjust main content when sidebar is open */
        body.sidebar-active #main-content {
            margin-left: 280px;
        }

        /* Hamburger Icon (to open sidebar) */
        .hamburger {
            font-size: 2em;
            cursor: pointer;
            color: #3498db;
            position: fixed; /* Fixed position */
            top: 20px;
            left: 20px;
            z-index: 1050; /* Above everything */
            background-color: #ffffff;
            padding: 5px 10px;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            transition: 0.3s;
        }

        .hamburger:hover {
            color: #2980b9;
            transform: scale(1.05);
        }


 .overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0,0,0,0.3); /* dark transparent background */
  z-index: 998;
  display: none;
}

.overlay.active {
  display: block;
}
