.bookmarks-card {
    grid-column: span 2;
    grid-row: span 4;
}

#bookmarks-container::-webkit-scrollbar {
    width: 6px;
}

#bookmarks-container::-webkit-scrollbar-track {
    background: transparent;
}

#bookmarks-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

#bookmarks-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

.bookmark-folder {
    margin-bottom: 15px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.01);
    transition: all 0.2s;
}

.bookmark-folder.dragging-folder {
    opacity: 0.5;
    border: 1.5px dashed var(--accent) !important;
}

.bookmark-folder.drag-over-folder {
    border-color: var(--accent) !important;
    background: rgba(59, 130, 246, 0.02) !important;
}

.bookmark-folder.drag-over {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.03);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.btn-folder-rename {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    opacity: 0.2;
    transition: all 0.2s;
    margin-left: 6px;
}

.bookmark-folder-header:hover .btn-folder-rename {
    opacity: 0.7;
}

.btn-folder-rename:hover {
    color: var(--primary) !important;
    background: rgba(0, 0, 0, 0.05);
    opacity: 1 !important;
}

.quick-links-section {
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 15px;
}

.quick-links-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-links-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 80px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.quick-links-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.quick-link-pill {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.78rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.quick-link-pill:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.bookmark-folder-header {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    user-select: none;
    transition: background 0.2s;
}

.btn-folder-add {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    transition: all 0.2s;
}

.btn-folder-add:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
}

.bookmark-folder-header:hover {
    background: rgba(0, 0, 0, 0.04);
}

.bookmark-folder-header i.chevron {
    transition: transform 0.2s;
    margin-left: auto;
}

.bookmark-folder.collapsed .bookmark-folder-header i.chevron {
    transform: rotate(-90deg);
}

.bookmark-folder-content {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bookmark-folder.collapsed .bookmark-folder-content {
    display: none;
}

.bookmark-row {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    transition: background 0.2s;
    position: relative;
}

.bookmark-row:hover {
    background: rgba(59, 130, 246, 0.05);
}

.bookmark-row.dragging {
    opacity: 0.4;
    background: rgba(0, 0, 0, 0.05);
}

.bookmark-row.drag-over-top {
    border-top: 2px solid var(--accent) !important;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.bookmark-row.drag-over-bottom {
    border-bottom: 2px solid var(--accent) !important;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.bookmark-icon {
    color: var(--accent);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.bookmark-details {
    flex: 1;
    min-width: 0;
}

.bookmark-title {
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bookmark-title:hover {
    color: var(--accent);
    text-decoration: underline;
}

.bookmark-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 1px;
}

.bookmark-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.bookmark-row:hover .bookmark-actions {
    opacity: 1;
}
