/* Tag Browser Styles - Swedish Minimal Design */

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 2px;
    /* Minimal rounding */
    font-size: 11px;
    font-weight: 500;
    /* Less bold, cleaner */
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.tag-pill:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.tag-pill-active {
    background: #111827;
    border-color: #111827;
    color: white;
    font-weight: 600;
}

.tag-pill-active:hover {
    background: #000000;
    border-color: #000000;
}

.tag-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 16px;
    padding: 0 5px;
    font-size: 9px;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: 0.02em;
}

.tag-pill-active .tag-count {
    color: rgba(255, 255, 255, 0.7);
}

.tag-category {
    margin-bottom: 24px;
}

.tag-category:last-child {
    margin-bottom: 0;
}

/* Category headers - more minimal */
.tag-category>div:first-child {
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f3f4f6;
}

/* Dark mode */
.dark .tag-pill {
    background: transparent;
    border-color: #374151;
    color: #d1d5db;
}

.dark .tag-pill:hover {
    background: #1f2937;
    border-color: #4b5563;
}

.dark .tag-pill-active {
    background: #f9fafb;
    border-color: #f9fafb;
    color: #111827;
    font-weight: 600;
}

.dark .tag-pill-active:hover {
    background: white;
    border-color: white;
}

.dark .tag-count {
    color: #6b7280;
}

.dark .tag-pill-active .tag-count {
    color: rgba(0, 0, 0, 0.6);
}

.dark .tag-category>div:first-child {
    border-bottom-color: #1f2937;
}

/* Animation */
#tagBrowserContent {
    transition: opacity 0.2s ease, max-height 0.2s ease;
}

#tagBrowserContent.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}