.main-sidebar { background: #222; color: #fff; width: 250px; height: 100vh; overflow-y: auto; position: fixed; top: 0; left: 0; z-index: 10; transition: all 0.3s ease; padding-top: 150px; } .sidebar-header { padding: 15px; background: #333; color: #fff; margin-bottom: 15px; display: flex; align-items: center; } .sidebar-header .nav-icon { margin-right: 10px; } .nav-link { display: flex; align-items: center; color: #fff; padding: 10px; border-radius: 5px; transition: background-color 0.3s ease; text-decoration: none; opacity: 0.5; } .nav-link:hover { background-color: #F8BE12; } .toggle-section { display: none; /* Initially hidden */ } .nav-item a i { margin-right: 5px; margin-top: -10px; } #addnewcompany{ margin-left: 25%; max-width: 800px; } @media screen and (max-width: 1030px) { .main-sidebar { display: none; } #add, #logout { font-size: 12px !important; } #addnewcompany{ margin-left: 15px; } } @media screen and (max-width: 990px) { .logo { display: none; } } @media screen and (max-width: 530px) { .title { font-size: 18px; } #title { display: none; } }