/* Bookmarks and sidebar layout */
.bookmarks-container {
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  text-align: left;
  padding: 0;
}

/* Desktop: no border or rounded corners for edge-to-edge sidebars */
@media (min-width: 769px) {
  .bookmarks-container {
    border: none;
    border-radius: 0;
  }
}

.bookmarks-container .view-mode-controls {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid var(--color-border);
  background: transparent;
  border-radius: 0;
}

.bookmarks-container .bookmarks-list {
  padding: 0.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.sidebar-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}

/* Mobile: add borders and rounded corners */
@media (max-width: 768px) {
  .sidebar-header-bar {
    border: 1px solid var(--color-border);
    border-radius: 12px 12px 0 0;
  }
}

.sidebar-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

/* Mobile hamburger button now uses Tailwind utilities in ThreePaneLayout */

.mobile-close-btn {
  display: none;
}

@media (max-width: 768px) {
  .sidebar-header-bar .toggle-sidebar-btn { display: none; }
  .mobile-close-btn { display: flex; }
  
  /* Keep icon sizes consistent to prevent blurriness */
  .sidebar-header-bar svg {
    width: 1em;
    height: 1em;
  }
}

.view-mode-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.view-mode-left,
.view-mode-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-avatar {
  min-width: 33px;
  min-height: 33px;
  width: 33px;
  height: 33px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-subtle);
  flex-shrink: 0;
  color: var(--color-text);
  box-sizing: border-box;
  padding: 0;
}

.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar svg { font-size: 1rem; }

.sidebar-header-bar .toggle-sidebar-btn {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-subtle);
  padding: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.sidebar-header-bar .toggle-sidebar-btn:hover { background: var(--color-bg-elevated); color: var(--color-text); }
.sidebar-header-bar .toggle-sidebar-btn:active { transform: translateY(1px); }

.bookmarks-container.collapsed {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  background: transparent;
  border: none;
}

.bookmarks-container.collapsed .toggle-sidebar-btn {
  background: var(--color-bg-elevated);
  color: var(--color-text);
  border: none;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 36px;
  flex-shrink: 0;
}

.bookmarks-container.collapsed .toggle-sidebar-btn:hover { background: var(--color-border); color: var(--color-text); }
.bookmarks-container.collapsed .toggle-sidebar-btn:active { transform: translateY(1px); }
.bookmarks-container.collapsed .toggle-sidebar-btn.with-icon { width: auto; padding: 0 0.5rem; gap: 0.5rem; }
.bookmarks-container.collapsed .toggle-sidebar-btn .glow-blue { color: var(--color-primary); filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.6)); }

.user-info { margin: 0.5rem 0 0 0; color: var(--color-text-secondary); font-size: 0.9rem; font-family: monospace; }
.bookmark-count { color: var(--color-text-muted); font-size: 0.9rem; margin: 0.5rem 0; }
.event-link { color: var(--color-primary); text-decoration: none; font-weight: 500; }
.event-link:hover { text-decoration: underline; }

.bookmark-urls { margin: 0.75rem 0; }
.bookmark-url { display: block; margin: 0.25rem 0; color: var(--color-primary); text-decoration: none; word-break: break-all; background: none; border: none; padding: 0; font: inherit; cursor: pointer; text-align: left; width: 100%; }
.bookmark-url:hover { text-decoration: underline; }

.url-row { display: flex; align-items: center; gap: 0.5rem; }
.read-inline-btn { background: rgb(34 197 94); /* green-500 */ color: white; border: none; padding: 0.25rem 0.5rem; border-radius: 4px; cursor: pointer; }
.read-inline-btn:hover { background: rgb(22 163 74); /* green-600 */ }

/* Bookmark filters */
.bookmark-filters {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.bookmark-filters .filter-btn {
  background: transparent;
  color: var(--color-text-secondary);
  border: none;
  padding: 0.375rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  min-width: 32px;
  min-height: 32px;
}

.bookmark-filters .filter-btn:hover {
  color: var(--color-text);
  background: var(--color-bg-elevated);
}

.bookmark-filters .filter-btn.active {
  color: var(--color-primary);
  background: transparent;
}

