/* Styles for the bookmark button in content area */
.add-bookmark-btn {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
    color: var(--sidebar-text, #1f2937);
}

.add-bookmark-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--sidebar-active, #3b82f6);
}

.dark .add-bookmark-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Bookmark button in the "bookmarked" state */
.add-bookmark-btn.active {
    color: var(--sidebar-active, #3b82f6);
}

/* Bookmark items in the sidebar */
.bookmark-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
    transition: background-color 0.2s;
}

/* Theme-aware hover. The previous `var(--sidebar-hover, #f3f4f6)` fell
 * through to a near-white color in dark mode, making bookmarks unreadable
 * (white text on white background). Use the warm-carbon surfaces. */
.bookmark-item:hover {
    background-color: var(--bg-2);
    color: var(--text-0);
}

.bookmark-link {
    flex-grow: 1;
    text-decoration: none;
    color: var(--text-1);
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bookmark-delete {
    background: transparent;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s;
}

.bookmark-delete:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.1);
}

.dark .bookmark-delete:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Notification styles */
.sidebar-notification {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 0.75rem;
    background-color: var(--sidebar-active, #3b82f6);
    color: white;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    text-align: center;
    opacity: 0;
    transform: translateY(1rem);
    animation: notification-show 2s ease forwards;
    z-index: 100;
}

@keyframes notification-show {
    0% {
        opacity: 0;
        transform: translateY(1rem);
    }
    15% {
        opacity: 1;
        transform: translateY(0);
    }
    85% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-1rem);
    }
}