/* Right Collapsible Sidebar */ .sidebar { position: absolute; top: 50px; /* Below navbar */ right: 0; bottom: 0; width: 320px; background-color: white; z-index: 1000; box-shadow: -2px 0 5px rgba(0,0,0,0.1); transition: transform 0.3s ease-in-out; display: flex; flex-direction: column; } .sidebar.collapsed { transform: translateX(320px); } /* Toggle Button attached to sidebar */ .sidebar-toggle { position: absolute; left: -40px; top: 10px; width: 40px; height: 40px; background-color: white; border: none; border-radius: 5px 0 0 5px; box-shadow: -2px 0 5px rgba(0,0,0,0.1); cursor: pointer; font-weight: bold; color: #555; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; } .sidebar-content { padding: 0; overflow: hidden; flex: 1; display: flex; flex-direction: column; } .sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid #eee; background: #fff; flex-shrink: 0; } #sidebar-body { flex: 1; overflow-y: auto; min-height: 0; } .btn-new-pad { background-color: #007bff; color: white; border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; line-height: 1; display: flex; align-items: center; justify-content: center; } .btn-center-location { width: calc(100% - 30px); margin: 15px; padding: 10px; background-color: #17a2b8; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; flex-shrink: 0; } .btn-center-location:hover { background-color: #138496; } .btn-add-note { background-color: #28a745; color: white; border: none; padding: 5px 10px; border-radius: 4px; font-size: 0.8rem; cursor: pointer; } .btn-add-note:hover { background-color: #218838; } /* Sidebar Lists & Items */ .list-section { border-bottom: 1px solid #f0f0f0; } .list-section-header, .btn-toggle-section { width: 100%; text-align: left; background: #fff; border: none; padding: 12px 15px; cursor: pointer; font-weight: 600; font-size: 0.85rem; color: #555; text-transform: uppercase; letter-spacing: 0.5px; margin: 0; transition: background-color 0.2s; } .list-section-header:hover, .btn-toggle-section:hover { background-color: #f8f9fa; color: #333; } .notepad-item, .sidebar-note-item { padding: 10px 15px; border-bottom: 1px solid #eee; cursor: pointer; } .notepad-item:hover, .sidebar-note-item:hover { background-color: #fafafa; } /* Collaborator List in Share Modal */ .collaborator-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f0f0; } .collaborator-item:last-child { border-bottom: none; } .collaborator-item button { background: none; border: none; color: #dc3545; cursor: pointer; font-size: 0.8rem; } /* Mobile Sidebar */ @media (max-width: 600px) { .sidebar { width: 85%; max-width: 350px; top: 110px; /* Adjust for taller mobile navbar */ } .sidebar.collapsed { transform: translateX(100%); } }