/* ================= RESET ================= */ * { margin: 0; padding: 0; box-sizing: border-box; font-family: "Segoe UI", sans-serif; } body { background-color: #f4f7f6; display: flex; } /* ================= NAVBAR ================= */ .navbar { width: 100%; height: 60px; background-color: #007bff; display: flex; align-items: center; padding: 0 20px; position: fixed; top: 0; left: 0; color: white; z-index: 1000; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); } .nav-left { display: flex; align-items: center; gap: 15px; } .nav-logo { height: 46px; filter: brightness(0) invert(1); } .toggle-btn { font-size: 26px; cursor: pointer; display: none; /* hidden on desktop */ } /* ================= SIDEBAR ================= */ .sidebar { width: 250px; background: #ffffff; height: calc(100vh - 60px); position: fixed; top: 60px; left: 0; padding-top: 20px; overflow-y: auto; border-right: 1px solid #e5d1be; transition: 0.3s; display: flex; flex-direction: column; } .sidebar h2 { color: #007bff; text-align: center; margin-bottom: 20px; font-size: 22px; } /* Menu buttons */ .menu-btn { padding: 14px 20px; font-size: 17px; color: #007bff; cursor: pointer; border-bottom: 1px solid #f0d6c6; transition: 0.2s; } .menu-btn:hover { background: #88ccfa; } /* Submenu */ .submenu { display: none; background: #ffffff; } .submenu a { display: block; padding: 12px 35px; color: #007bff; text-decoration: none; border-bottom: 1px solid #f3cab1; transition: 0.2s; } .submenu a:hover { background: #b3dbf7; } /* Logout */ .sidebar-logout { margin-top: auto; padding: 12px; background: #007bff; display: flex; justify-content: center; border-radius: 6px; } .sidebar-logout:hover { background: #a8d8f8; } .logout-icon { width: 22px; height: 22px; } /* ================= MAIN ================= */ .main { margin-left: 250px; margin-top: 60px; padding: 30px; width: calc(100% - 250px); } /* Container */ .container { background: white; padding: 40px; border-radius: 12px; max-width: 900px; margin: auto; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07); } /* ================= TABLET ================= */ @media (max-width: 992px) { .nav-left h3 { font-size: 16px; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nav-logo { height: 40px; } /* sidebar still visible */ .sidebar { width: 220px; } .main { margin-left: 220px; width: calc(100% - 220px); } } /* ================= MOBILE ================= */ @media (max-width: 768px) { body { display: block; } /* Show toggle only on mobile */ .toggle-btn { display: block; } .nav-left h3 { font-size: 14px; max-width: 160px; } .nav-logo { height: 36px; } /* Sidebar as drawer */ .sidebar { left: -100%; width: 85%; max-width: 280px; z-index: 2000; box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2); } .sidebar.show { left: 0; } /* Main content full width */ .main { margin-left: 0; width: 100%; margin-top: 70px; padding: 15px; } .container { padding: 20px; width: 100%; } } /* ================= VERY SMALL PHONES ================= */ @media (max-width: 480px) { .nav-left h3 { display: none; } }