
.selected-label-item {
    display: inline-flex;
    align-items: center;
    background: #8b5cf6;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    gap: 6px;
}

.label-icon {
    font-size: 14px;
}

.label-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.label-remove {
    cursor: pointer;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 2px;
    transition: background-color 0.2s;
    font-size: 10px;
}

.label-remove:hover {
    background: rgba(255, 255, 255, 0.2);
}

.labels-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.apply-labels-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    flex: 1;
}

.apply-labels-btn:hover {
    background: #059669;
}

.clear-labels-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    flex: 1;
}

.clear-labels-btn:hover {
    background: #4b5563;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 18px;
    font-weight: 500;
}

.auth-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.custom-context-menu {
    position: fixed;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 200px;
    z-index: 10000;
    display: none;
    font-size: 14px;
}

.context-menu-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    color: #374151;
}

.context-menu-item:hover {
    background-color: #f3f4f6;
}

.context-menu-item.primary {
    color: #ef4444;
    font-weight: 500;
}

.context-menu-item.primary:hover {
    background-color: #fef2f2;
}

.context-menu-separator {
    height: 1px;
    background-color: #e5e7eb;
    margin: 4px 0;
}

.context-menu-item.disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

.context-menu-item.disabled:hover {
    background-color: transparent;
}

.text-highlight {
    background-color: #fef3c7;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.text-highlight.added {
    background-color: #dcfce7;
    animation: addedToBlacklist 0.5s ease;
}

@keyframes addedToBlacklist {
    0% {
        background-color: #fef3c7;
    }

    50% {
        background-color: #bbf7d0;
        transform: scale(1.05);
    }

    100% {
        background-color: #dcfce7;
        transform: scale(1);
    }
}

.toast-container {
    position: fixed;
    top: 60px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 350px;
    pointer-events: none;
}

.toast-item {
    background: #10b981;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 500;
    word-wrap: break-word;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 100%;
}


