:root {
    --primary: #4a90e2;
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
}

body {
    background: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.sidebar {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    background: white;
    border-right: 1px solid #e1e8ed;
    overflow-y: auto;
    padding: 20px;
}

.main-content {
    margin-left: 280px;
    padding: 30px;
    min-height: 100vh;
}

.list-item {
    padding: 12px 16px;
    margin: 5px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item:hover {
    background: #f5f7fa;
}

.list-item.active {
    background: var(--primary);
    color: white;
}

.bookmark-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.bookmark-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.bookmark-card.favorite::before {
    content: '⭐';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
}

.bookmark-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.bookmark-list-view {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
}

.bookmark-list-view .bookmark-img {
    width: 80px;
    height: 80px;
    margin: 0;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: #e1e8ed;
    border-radius: 20px;
    font-size: 12px;
    margin: 2px;
}

.fetch-status {
    font-size: 12px;
    color: var(--secondary);
    margin-top: 10px;
}

.btn-icon {
    border: none;
    background: none;
    cursor: pointer;
    padding: 5px 10px;
    color: var(--secondary);
    transition: color 0.2s;
}

.btn-icon:hover {
    color: var(--primary);
}

.modal-header {
    background: var(--primary);
    color: white;
}

.search-bar {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.search-bar:focus {
    outline: none;
    border-color: var(--primary);
}

.progress-container {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 300px;
    display: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* LIST VIEW STYLES */

.folder-children {
    margin-left: 10px;
    border-left: 1px dotted #ccc;
    padding-left: 6px;
    display: none;
}
.folder.collapsed > .folder-children {
    display: none;
}
.folder:not(.collapsed) > .folder-children {
    display: block;
}
.list-item {
    cursor: pointer;
    padding: 3px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.list-group-item {
    border-radius: 7px !important;
}
.list-group-item.active {
    color: var(--bs-white);
    background-color: var(--bs-primary);
    border-color: var(--bs-link-hover-color);
    border-radius: 7px;
}
.folder-tree {
    user-select: none;
}

.folder-row .folder-count .ellipsis {
    display: none;
}

.folder-row:hover .folder-count:has(.ellipsis) .count {
    display: none;
}

.folder-row:hover .folder-count .ellipsis {
    display: block;
}

.folder-hover {
    background-color: #e3f2fd; /* light blue highlight */
}