:root { --background-color: linear-gradient(to bottom, #25476a 30%, #eef2f6 30%) ; --text-color: #25476a ; --nav-background: #ffffff; --sidebar-background: #ffffff; --link-color: #ba0c0c; --hover-background: #63707b ; --submenu-background: #ecf0f1; --highlight-color: #e74c3c; --border-color: #dfe4ea; --notification-badge-color: #e74c3c; --hover-image: url('../images/'); } /* Dark mode styles */ .dark-theme-variables { --background-color: #183149; --text-color: #ffffff; --nav-background: #073a82; --sidebar-background: #2b3f51; --link-color: #4cd137; --hover-background: #63707b; --submenu-background: #353b48; --highlight-color: #e1b12c; --border-color: #404552; --notification-badge-color: #e84118; } @font-face { font-family: 'Poppins'; src: url('Poppins-Regular.ttf') format('truetype'); font-weight: normal; font-style: normal; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins'; } body{ background: var(--background-color); background-repeat: no-repeat; filter: brightness(95%); min-height: 100vh; max-height: 170vh; } .navigation { position: fixed; /* Keep navbar fixed on top */ width: 80rem; margin-left:15rem; z-index: 1000; /* Ensure it stays above other elements */ border-bottom-right-radius: 1rem; height: 5rem; } nav { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; /* Padding for spacing */ height: 5rem; } nav a { text-decoration: none; color: var(--text-color); /* Darker text color for contrast */ margin: 0 15px; /* Spacing between links */ display: flex; align-items: center; /* Center align text and icons */ font-size: 1rem; } nav a.active, nav a:hover { color: #ffffff; /* Highlight color for active and hover state */ } nav a h3 { margin-left: 10px; /* Spacing between icon and text */ font-size: 18px; /* Adjust font size */ transition: color 0.3s; /* Smooth color transition */ } .uline{ width: 100%; height: 0.1rem; background-color: #777777e7; margin-left: 10px; } .icon { width: 25px; /* Icon size */ height: 23px; /* Maintain aspect ratio */ transition: transform 0.3s; /* Smooth icon hover effect */ } .notification, .dropdown, .theme-toggle { position: relative; /* For positioning dropdowns */ cursor: pointer; /* Add pointer cursor on hover */ } .notification .bell { width: 22px; /* Icon size */ height: 22px; /* Maintain aspect ratio */ } .setting{ width: 22px; height: 22px; } .dropdown-content { display: none; /* Hidden by default */ position: absolute; /* Position relative to parent */ background-color: var(--nav-background); /* White background */ min-width: 150px; /* Minimum width */ box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Shadow for dropdown */ z-index: 1; /* Above other elements */ } .dropdown-content a { color: #333; /* Dark text color */ padding: 10px 15px; /* Padding for clickable area */ text-decoration: none; display: block; /* Block display for full width */ transition: background-color 0.3s; /* Smooth background transition */ } .dropdown-content a:hover { background-color: #f1f1f1; /* Light background on hover */ } .notification:hover .dropdown-content, .dropdown:hover .dropdown-content { display: block; /* Show dropdown on hover */ } .theme-toggle { display: flex; /* Flexbox for theme toggles */ align-items: center; /* Center align */ } .theme-toggle img { width: 24px; /* Icon size */ height: 24px; /* Maintain aspect ratio */ margin: 0 5px; /* Spacing between icons */ cursor: pointer; /* Add pointer cursor on hover */ } .theme_toggler span { width: 75%; height: 50%; display: flex; align-items: center; justify-content: center; } .theme_toggler span.active { display: none; } /* Responsive Design */ @media (max-width: 768px) { nav { flex-direction: column; /* Stack items vertically on small screens */ } nav a { margin: 10px 0; /* Adjust margin for vertical layout */ } } /*--------------------CONTAINER BEGINS--------------------------*/ .container { display: flex; /* Adjust if necessary to account for fixed navbar */ } /* Sidebar styling */ .sidebar { width: 15rem; height: 100%; padding-top: 20px; padding-bottom: 200px; position: fixed; box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); overflow: hidden; /* Ensure content doesn't overflow */ transition: height 0.3s; /* Smooth height transition */ background: var(--sidebar-background); /* Semi-transparent white background */ backdrop-filter: blur(10px) saturate(180%); /* Blur and saturation for glassmorphism effect */ border-top-right-radius: 1.5rem; border-bottom-right-radius: 1.5rem; border: 1px solid rgba(255, 255, 255, 0.2); /* Optional border to enhance the effect */ } .uline_dash{ width: 80%; height: 0.1rem; background-color: #777777e7 ; margin-left: 1rem; } .sidebar-logo { width: 190px; /* Adjust logo size */ cursor: pointer; /* Add pointer cursor on hover */ padding-left: 15px; } .sidebar a { display: flex; align-items: center; /* Center align icons and text */ text-decoration: none; color: var(--text-color); /* Dark text color for contrast */ padding: 15px 20px; /* Padding for clickable area */ transition: background-color 0.3s, color 0.3s; /* Smooth transitions */ height:2.7rem ; margin-bottom: 0.5rem; } .sidebar a h3 { margin-left: 10px; /* Spacing between icon and text */ font-size: 16px; /* Adjust font size */ } .sidebar a:hover { background-color: #25476a; color: #ffffff; margin-left: 0.3rem; margin-right: 0.3rem; border-radius: 0.8rem; height: 2.7rem; box-shadow: 2px 0 5px rgba(80, 78, 78, 0.57); box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5); } .sidebar a:hover h3 { color: #ffffff; } .sidebar a h3:hover { color: #ffffff; } .sidebar .icon { width: 22px; /* Icon size */ height: 20px; /* Maintain aspect ratio */ transition: transform 0.3s; /* Smooth icon hover effect */ } .submenu { display: none; /* Hidden by default */ flex-direction: column; /* Stack submenu items vertically */ } .submenu a { padding-left: 40px; /* Indent submenu items */ color: var(--text-color); } .submenu a.disable { color: var(--hover-background); /* White text for contrast */ } .submenu a:hover{ color: var(--hover-background); } .submenu_span { display: inline-block; /* Inline block to separate icon and text */ } .sidebar a.active, .submenu a.active { color: var(--text-color); /* Default active color */ } .sidebar a.active1, .submenu a.active1 { background-color: #25476a; color: #ffffff; margin-top: 0.3rem; margin-left: 0.3rem; margin-right: 0.3rem; border-radius: 1.1rem; height: 2.7rem; box-shadow: 2px 0 5px rgba(80, 78, 78, 0.57); box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5); } .submenu a.disable{ color: #63707b; } .sidebar .submenu.active { display: flex; /* Show submenu when active */ } .sidebar .submenu.disable { color: #63707b; /* Gray color for disabled state */ cursor: not-allowed; /* Show a not-allowed cursor */ pointer-events: none; /* Disable click events */ } /* Styling for disabled items */ .disable { color: #d5e9e9f2; /* Gray color for disabled state */ cursor: not-allowed; /* Show a not-allowed cursor */ pointer-events: none; /* Disable click events */ } /* Optional: Change background to indicate disabled state */ .disable:hover { background-color: #e0e0e0; /* Light gray background */ color: #b1c3c9; /* Ensure text color is consistent */ }