/* ================= RESET ================= */ * { box-sizing: border-box; margin: 0; padding: 0; } /* ================= BODY ================= */ body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background-color: #f4f7f9; height: 100vh; overflow: hidden; /* no scroll desktop */ } /* ================= LINKS ================= */ a { text-decoration: none !important; color: #007bff; } /* ================= NAVBAR ================= */ .navbar { width: 100%; height: 60px; background-color: #007bff; display: flex; justify-content: space-between; 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: 70px; filter: brightness(0) invert(1); } .toggle-btn { font-size: 26px; cursor: pointer; } /* ================= SIDEBAR ================= */ .sidebar { width: 250px; background: white; height: calc(100vh - 60px); position: fixed; top: 60px; left: 0; padding-top: 20px; border-right: 1px solid #d6d6d6; display: flex; flex-direction: column; } .sidebar.hide { left: -250px; } .menu-items { flex: 1; display: flex; flex-direction: column; } .menu-btn { padding: 14px 20px; font-size: 16px; color: #007bff; font-weight: 600; cursor: pointer; border-bottom: 1px solid #e5e5e5; } .menu-btn:hover { background: #e9f3ff; } .submenu { display: none; background: #f4faff; } .submenu a { padding: 12px 35px; display: block; color: #0056b3; } /* ================= MAIN ================= */ .main { margin-left: 250px; margin-top: 60px; width: calc(100% - 250px); height: calc(100vh - 60px); display: flex; align-items: center; /* ✅ vertical center */ justify-content: center; /* ✅ horizontal center */ padding: 30px; } /* ================= CONTAINER ================= */ .container { width: 100%; max-width: 680px; /* 🔥 laptop & desktop size */ background: #ffffff; padding: 45px 55px; border-radius: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12); text-align: center; } /* ================= HEADING ================= */ .container h2 { font-size: 28px; font-weight: 700; color: #1f2d3d; margin-bottom: 25px; } /* ================= FORM ================= */ form { display: flex; flex-direction: column; align-items: center; } /* ================= FORM ELEMENTS ================= */ label { font-weight: 600; margin-bottom: 6px; color: #333; } select { width: 100%; max-width: 320px; padding: 12px 14px; border-radius: 8px; border: 1px solid #ccc; font-size: 16px; } select:focus { border-color: #007bff; outline: none; box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.18); } /* ================= BUTTON ================= */ button { margin-top: 22px; width: 100%; max-width: 320px; padding: 13px; font-size: 16px; font-weight: 600; background-color: #007bff; color: white; border: none; border-radius: 8px; cursor: pointer; } button:hover { background-color: #0069d9; } /* ================= LAPTOP ================= */ @media (max-width: 1400px) { .container { max-width: 620px; padding: 40px 48px; } } /* ================= TABLET ================= */ @media (max-width: 992px) { body { overflow-y: auto; } .main { margin-left: 0; width: 100%; height: auto; padding: 40px 20px; } .container { max-width: 560px; } } /* ================= MOBILE ================= */ @media (max-width: 768px) { body { overflow-y: auto; } .main { margin-top: 70px; height: auto; padding: 20px 15px; } .container { max-width: 100%; padding: 28px 22px; } .container h2 { font-size: 22px; } select, button { max-width: 100%; } }